public interface IMultiset<T> extends IMemory<T>
IMemory that always contains values with a nonnegative multiplicity.
In case a write operation caused underflow, an IllegalStateException is thrown.
| Modifier and Type | Method and Description |
|---|---|
boolean |
addPositive(T value,
int count)
Adds the given number of occurrences to the memory.
|
addOne, addSigned, clear, clearAllOf, removeOne, removeOneOrNopasMap, asStream, containsNonZero, containsNonZeroUnsafe, distinctValues, entriesWithMultiplicities, equals, forEachEntryWithMultiplicities, fromMap, getCount, getCountUnsafe, hashCode, isEmpty, size, theContainedVersionOf, theContainedVersionOfUnsafeboolean addPositive(T value, int count)
count - the number of occurrences