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.
|
boolean addPositive(T value, int count)
count
- the number of occurrences