E - The element type of the ObservableMultiset.public static class MultisetListenerHelper.ElementarySubChange<E>
extends java.lang.Object
Multiset.| Constructor and Description |
|---|
ElementarySubChange(E element,
int removeCount,
int addCount)
Constructs a new elementary sub-change with the given values.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAddCount()
Returns the number of occurrences that have been added for the
respective element as part of this elementary sub-change.
|
E |
getElement()
Returns the element that has been altered by this elementary
sub-change.
|
int |
getRemoveCount()
Returns the number of occurrences that have been removed for the
respective element as part of this elementary sub-change.
|
java.lang.String |
toString() |
public ElementarySubChange(E element, int removeCount, int addCount)
element - The element that was added or removed.removeCount - The number of occurrences that were removed.addCount - The number of occurrences that were added.public int getAddCount()
public E getElement()
public int getRemoveCount()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright (c) 2014 itemis AG and others. All rights reserved.