public interface IDeltaBag<T> extends IMemory<T>
IMemory that represents the difference between two states of a set or IMultiset, and therefore
may contain values with a negative multiplicity.| Modifier and Type | Method and Description |
|---|---|
default boolean |
removeOneOrNop(T value)
Removes one occurrence of the given value from the memory, if possible.
|
addOne, addSigned, clear, clearAllOf, removeOneasMap, asStream, containsNonZero, containsNonZeroUnsafe, distinctValues, entriesWithMultiplicities, equals, forEachEntryWithMultiplicities, fromMap, getCount, getCountUnsafe, hashCode, isEmpty, size, theContainedVersionOf, theContainedVersionOfUnsafedefault boolean removeOneOrNop(T value)
IMemory Memory is unchanged and false is returned if
IMultiset or ISetMemory and value had no occurrences in the memory
removeOneOrNop in interface IMemory<T>IDeltaBag) is the first negative occurrence of the value