public class EclipseCollectionsMultiset<T> extends EclipseCollectionsBagMemory<T> implements IMultiset<T>
Constructor and Description |
---|
EclipseCollectionsMultiset() |
Modifier and Type | Method and Description |
---|---|
boolean |
addOne(T value)
Adds one value occurrence to the memory.
|
boolean |
addPositive(T value,
int count)
Adds the given number of occurrences to the memory.
|
boolean |
addSigned(T value,
int count)
Adds the given number of occurrences to the memory.
|
boolean |
removeOne(T value)
Removes one occurrence of the given value from the memory.
|
clearAllOf, containsNonZero, getCount, iterator, toString
addToValue, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, asSynchronized, asUnmodifiable, average, clear, collect, compact, contains, containsAll, containsAll, containsKey, containsValue, count, detectIfNone, each, equals, forEach, forEachKey, forEachKeyValue, forEachValue, get, getIfAbsent, getIfAbsentPut, getIfAbsentPut, getIfAbsentPutWith, getIfAbsentPutWithKey, getOrThrow, hashCode, injectInto, intIterator, isEmpty, keySet, keysView, keyValuesView, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, newMap, newWithKeysValues, newWithKeysValues, newWithKeysValues, newWithKeysValues, noneSatisfy, notEmpty, put, putAll, readExternal, reject, reject, remove, removeKey, removeKeyIfAbsent, select, select, size, sum, toArray, toBag, toImmutable, toList, toSet, toSortedArray, toSortedList, updateValue, values, withKeysValues, withKeysValues, withKeysValues, withKeyValue, withoutAllKeys, withoutKey, writeExternal
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
clear, clearAllOf, containsNonZero, getCount, isEmpty, keySet, size
public boolean addOne(T value)
IMemory
public boolean addPositive(T value, int count)
IMultiset
addPositive
in interface IMultiset<T>
count
- the number of occurrencespublic boolean addSigned(T value, int count)
IMemory
Precondition if IMultiset
: at least the given amount of occurrences exist, if count is negative.