/*
- * Sone - ListNotification.java - Copyright © 2010–2016 David Roden
+ * Sone - ListNotification.java - Copyright © 2010–2019 David Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* The new element
*/
public void add(T element) {
- elements.add(element);
- touch();
+ if (!elements.contains(element)) {
+ elements.add(element);
+ touch();
+ }
}
/**