Class MultisetListenerHelper.ElementarySubChange<E>
- java.lang.Object
-
- org.eclipse.gef.common.collections.MultisetListenerHelper.ElementarySubChange<E>
-
- Type Parameters:
E- The element type of theObservableMultiset.
- Enclosing class:
- MultisetListenerHelper<E>
public static class MultisetListenerHelper.ElementarySubChange<E> extends java.lang.ObjectAn elementary change related to a single element of aMultiset.
-
-
Constructor Summary
Constructors Constructor Description ElementarySubChange(E element, int removeCount, int addCount)Constructs a new elementary sub-change with the given values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAddCount()Returns the number of occurrences that have been added for the respective element as part of this elementary sub-change.EgetElement()Returns the element that has been altered by this elementary sub-change.intgetRemoveCount()Returns the number of occurrences that have been removed for the respective element as part of this elementary sub-change.java.lang.StringtoString()
-
-
-
Constructor Detail
-
ElementarySubChange
public ElementarySubChange(E element, int removeCount, int addCount)
Constructs a new elementary sub-change with the given values.- Parameters:
element- The element that was added or removed.removeCount- The number of occurrences that were removed.addCount- The number of occurrences that were added.
-
-
Method Detail
-
getAddCount
public int getAddCount()
Returns the number of occurrences that have been added for the respective element as part of this elementary sub-change.- Returns:
- The number of added occurrences.
-
getElement
public E getElement()
Returns the element that has been altered by this elementary sub-change.- Returns:
- The changed element.
-
getRemoveCount
public int getRemoveCount()
Returns the number of occurrences that have been removed for the respective element as part of this elementary sub-change.- Returns:
- The number of removed occurrences.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-