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>
An elementary change related to a single element of a
Multiset
.-
Constructor Summary
ConstructorsConstructorDescriptionElementarySubChange
(E element, int removeCount, int addCount) Constructs a new elementary sub-change with the given values. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the number of occurrences that have been added for the respective element as part of this elementary sub-change.Returns the element that has been altered by this elementary sub-change.int
Returns the number of occurrences that have been removed for the respective element as part of this elementary sub-change.toString()
-
Constructor Details
-
ElementarySubChange
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 Details
-
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
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
-