Interface XReplacingBag<E>
-
- All Superinterfaces:
CapacityCarrying,Copyable,ExtendedCollection<E>,Iterable<E>,ReleasingCollection<E>,Sized,XGettingCollection<E>,XIterable<E>,XJoinable<E>,XReplacingCollection<E>
- All Known Subinterfaces:
XBasicTable.Values<K,V>,XChart.Values<K,V>,XDecreasingList<E>,XIncreasingList<E>,XList<E>,XReference<E>,XSettingList<E>,XTable.Values<K,V>
- All Known Implementing Classes:
ArrayAccessor,ArrayCollector,BulkList,EqBulkList,EqHashTable.Values,FixedList,HashTable.Values,LimitList,LinkReference.Default,ListAccessor,LockedList,Single,Singleton,SubList,SubListAccessor,SubListProcessor,SynchList
public interface XReplacingBag<E> extends XGettingCollection<E>, XReplacingCollection<E>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceXReplacingBag.Factory<E>-
Nested classes/interfaces inherited from interface one.microstream.typing.Copyable
Copyable.Static
-
Nested classes/interfaces inherited from interface one.microstream.collections.types.XGettingCollection
XGettingCollection.Creator<E>
-
Nested classes/interfaces inherited from interface one.microstream.collections.types.XIterable
XIterable.Executor<E>
-
-
Method Summary
Modifier and Type Method Description XReplacingBag<E>copy()Creates a true copy of this collection which references the same elements as this collection does at the time the method is called.longreplace(E element, E replacement)longreplace(Predicate<? super E> predicate, E replacement)longreplaceAll(XGettingCollection<? extends E> elements, E replacement)booleanreplaceOne(E element, E replacement)booleanreplaceOne(Predicate<? super E> predicate, E replacement)longsubstitute(Predicate<? super E> predicate, Function<E,E> mapper)-
Methods inherited from interface one.microstream.collections.interfaces.CapacityCarrying
isFull, maximumCapacity, remainingCapacity
-
Methods inherited from interface one.microstream.collections.interfaces.ExtendedCollection
nullAllowed
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface one.microstream.collections.types.XGettingCollection
applies, contains, containsAll, containsId, containsSearched, copyTo, count, countBy, distinct, distinct, equality, equals, equals, equalsContent, except, filterTo, get, hashCode, hasVolatileElements, immure, intersect, intSize, iterator, join, max, min, nullContained, old, search, seek, size, toArray, toArray, union, view
-
Methods inherited from interface one.microstream.collections.types.XReplacingCollection
substitute
-
-
-
-
Method Detail
-
replaceAll
long replaceAll(XGettingCollection<? extends E> elements, E replacement)
-
copy
XReplacingBag<E> copy()
Description copied from interface:XGettingCollectionCreates a true copy of this collection which references the same elements as this collection does at the time the method is called. The elements themselves are NOT copied (no deep copying).
The type of the returned set is the same as of this list if possible.- Specified by:
copyin interfaceCopyable- Specified by:
copyin interfaceXGettingCollection<E>- Returns:
- a copy of this list
-
-