Interface IDeltaBag<T>
- All Superinterfaces:
Clearable, IMemory<T>, IMemoryView<T>, Iterable<T>
- All Known Implementing Classes:
EclipseCollectionsDeltaBag
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanremoveOneOrNop(T value) Removes one occurrence of the given value from the memory, if possible.Methods inherited from interface IMemoryView
asMap, asStream, containsNonZero, containsNonZeroUnsafe, distinctValues, entriesWithMultiplicities, forEachEntryWithMultiplicities, getCount, getCountUnsafe, isEmpty, size, theContainedVersionOf, theContainedVersionOfUnsafeMethods inherited from interface Iterable
forEach, iterator, spliterator
-
Method Details
-
removeOneOrNop
Description copied from interface:IMemoryRemoves one occurrence of the given value from the memory, if possible.Memory is unchanged and false is returned if
IMultisetorISetMemoryand value had no occurrences in the memory- Specified by:
removeOneOrNopin interfaceIMemory<T>- Returns:
- true if this was the the last occurrence of the value, or
(in case of
IDeltaBag) is the first negative occurrence of the value
-