Interface XImmutableBag<E>
-
- All Superinterfaces:
CapacityCarrying,Copyable,ExtendedBag<E>,ExtendedCollection<E>,HashImmutable,Immutable,Iterable<E>,Sized,ThreadSafe,XGettingBag<E>,XGettingCollection<E>,XImmutableCollection<E>,XIterable<E>,XJoinable<E>
- All Known Subinterfaces:
XImmutableList<E>,XImmutableMap.Values<K,V>,XImmutableTable.Values<K,V>
- All Known Implementing Classes:
Constant,ConstHashTable.Values,ConstList,Empty,EqConstHashTable.Values,EqConstList,LinkingReferencing.Default
public interface XImmutableBag<E> extends XImmutableCollection<E>, XGettingBag<E>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceXImmutableBag.Factory<E>-
Nested classes/interfaces inherited from interface one.microstream.typing.Copyable
Copyable.Static
-
Nested classes/interfaces inherited from interface one.microstream.collections.interfaces.ExtendedCollection
ExtendedCollection.Creator<E,C extends ExtendedCollection<E>>
-
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 XImmutableBag<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.XImmutableBag<E>immure()Always returns the already immutable collection instance itself-
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 one.microstream.hashing.HashImmutable
equals, hashCode
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface one.microstream.collections.types.XGettingBag
view
-
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, intersect, intSize, iterator, join, max, min, nullContained, old, search, seek, size, toArray, toArray, union
-
-
-
-
Method Detail
-
copy
XImmutableBag<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 interfaceXGettingBag<E>- Specified by:
copyin interfaceXGettingCollection<E>- Specified by:
copyin interfaceXImmutableCollection<E>- Returns:
- a copy of this list
-
immure
XImmutableBag<E> immure()
Always returns the already immutable collection instance itselfFor spawning a copy of the collection instance, see
XImmutableCollection.copy()- Specified by:
immurein interfaceXGettingBag<E>- Specified by:
immurein interfaceXGettingCollection<E>- Specified by:
immurein interfaceXImmutableCollection<E>- Returns:
- a reference to the instance itself.
- See Also:
XImmutableCollection.copy()
-
-