Interface XPutGetSet<E>
- Type Parameters:
E- type of contained elements
- All Superinterfaces:
CapacityCarrying,CapacityExtendable,Consumer<E>,Copyable,ExtendedCollection<E>,Iterable<E>,OptimizableCollection,ReleasingCollection<E>,Sized,XAddGetCollection<E>,XAddGetSet<E>,XAddingCollection<E>,XAddingSet<E>,XGettingCollection<E>,XGettingSet<E>,XIterable<E>,XJoinable<E>,XPutGetCollection<E>,XPuttingCollection<E>,XPuttingSet<E>
- All Known Subinterfaces:
XBasicEnum<E>,XBasicTable<K,V>,XBasicTable.Keys<K,V>,XChart<K,V>,XChart.Keys<K,V>,XEnum<E>,XMap<K,V>,XMap.Keys<K,V>,XPutGetEnum<E>,XRank<E>,XSet<E>,XTable<K,V>,XTable.Keys<K,V>
- All Known Implementing Classes:
EqHashEnum,EqHashTable,EqHashTable.Keys,HashEnum,HashTable,HashTable.Keys,LockedMap,MutexSet,OpenAdressingMiniSet,Single,SynchSet
public interface XPutGetSet<E> extends XPuttingSet<E>, XAddGetSet<E>, XPutGetCollection<E>
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceXPutGetSet.Factory<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XAddGetCollection
XAddGetCollection.Creator<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XAddingSet
XAddingSet.Creator<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XGettingSet
XGettingSet.Creator<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XIterable
XIterable.Executor<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XPutGetCollection
XPutGetCollection.Creator<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XPuttingSet
XPuttingSet.Creator<E> -
Method Summary
Modifier and Type Method Description XPutGetSet<E>addAll(E... elements)XPutGetSet<E>addAll(E[] elements, int srcStartIndex, int srcLength)XPutGetSet<E>addAll(XGettingCollection<? extends E> elements)XPutGetSet<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.XPutGetSet<E>putAll(E... elements)Adds the specified elements to this collection if it is not already present (optional operation).XPutGetSet<E>putAll(E[] elements, int srcStartIndex, int srcLength)Adds the specified elements to this collection if it is not already present (optional operation).
Only the elements with indizes from the srcStartIndex to the srcStartIndex+srcLength are put in the collection.XPutGetSet<E>putAll(XGettingCollection<? extends E> elements)Adds the specified elements to this collection if it is not already present (optional operation).EputGet(E element)Ereplace(E element)Methods inherited from interface one.microstream.collections.interfaces.CapacityCarrying
isFull, maximumCapacity, remainingCapacityMethods inherited from interface one.microstream.collections.interfaces.CapacityExtendable
currentCapacity, currentFreeCapacity, ensureCapacity, ensureFreeCapacityMethods inherited from interface one.microstream.collections.interfaces.ExtendedCollection
nullAllowedMethods inherited from interface one.microstream.collections.interfaces.OptimizableCollection
optimizeMethods inherited from interface one.microstream.collections.types.XAddingCollection
accept, add, collector, nullAddMethods 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, view
-
Method Details
-
putGet
-
replace
-
putAll
Adds the specified elements to this collection if it is not already present (optional operation).In this implementation it overwrites equal, already contained elements.
- Specified by:
putAllin interfaceXPutGetCollection<E>- Specified by:
putAllin interfaceXPuttingCollection<E>- Specified by:
putAllin interfaceXPuttingSet<E>- Parameters:
elements- to add- Returns:
- this
-
putAll
Adds the specified elements to this collection if it is not already present (optional operation).
Only the elements with indizes from the srcStartIndex to the srcStartIndex+srcLength are put in the collection.In this implementation it overwrites equal, already contained elements.
- Specified by:
putAllin interfaceXPutGetCollection<E>- Specified by:
putAllin interfaceXPuttingCollection<E>- Specified by:
putAllin interfaceXPuttingSet<E>- Parameters:
elements- to addsrcStartIndex- start index of elements-array to add to collectionsrcLength- length of elements-array to add to collection- Returns:
- this
-
putAll
Adds the specified elements to this collection if it is not already present (optional operation).In this implementation it overwrites equal, already contained elements.
- Specified by:
putAllin interfaceXPutGetCollection<E>- Specified by:
putAllin interfaceXPuttingCollection<E>- Specified by:
putAllin interfaceXPuttingSet<E>- Parameters:
elements- to add- Returns:
- this
-
addAll
- Specified by:
addAllin interfaceXAddGetCollection<E>- Specified by:
addAllin interfaceXAddGetSet<E>- Specified by:
addAllin interfaceXAddingCollection<E>- Specified by:
addAllin interfaceXAddingSet<E>- Specified by:
addAllin interfaceXPutGetCollection<E>- Specified by:
addAllin interfaceXPuttingSet<E>
-
addAll
- Specified by:
addAllin interfaceXAddGetCollection<E>- Specified by:
addAllin interfaceXAddGetSet<E>- Specified by:
addAllin interfaceXAddingCollection<E>- Specified by:
addAllin interfaceXAddingSet<E>- Specified by:
addAllin interfaceXPutGetCollection<E>- Specified by:
addAllin interfaceXPuttingSet<E>
-
addAll
- Specified by:
addAllin interfaceXAddGetCollection<E>- Specified by:
addAllin interfaceXAddGetSet<E>- Specified by:
addAllin interfaceXAddingCollection<E>- Specified by:
addAllin interfaceXAddingSet<E>- Specified by:
addAllin interfaceXPutGetCollection<E>- Specified by:
addAllin interfaceXPuttingSet<E>
-
copy
XPutGetSet<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 interfaceXAddGetCollection<E>- Specified by:
copyin interfaceXAddGetSet<E>- Specified by:
copyin interfaceXGettingCollection<E>- Specified by:
copyin interfaceXGettingSet<E>- Specified by:
copyin interfaceXPutGetCollection<E>- Returns:
- a copy of this list
-