Interface XPuttingBag<E>
- All Superinterfaces:
CapacityCarrying
,CapacityExtendable
,Consumer<E>
,ExtendedBag<E>
,ExtendedCollection<E>
,OptimizableCollection
,Sized
,XAddingBag<E>
,XAddingCollection<E>
,XPuttingCollection<E>
- All Known Subinterfaces:
XBag<E>
,XBasicList<E>
,XExpandingList<E>
,XIncreasingList<E>
,XInputtingList<E>
,XLadder<E>
,XList<E>
,XPutGetBag<E>
,XPutGetList<E>
,XPuttingList<E>
- All Known Implementing Classes:
ArrayCollector
,BulkList
,EqBulkList
,LimitList
,LockedList
,Single
,SubList
,SynchList
public interface XPuttingBag<E> extends XAddingBag<E>, XPuttingCollection<E>
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
XPuttingBag.Creator<E>
Nested classes/interfaces inherited from interface one.microstream.collections.types.XAddingBag
XAddingBag.Factory<E>
-
Method Summary
Modifier and Type Method Description XAddingCollection<E>
addAll(E... elements)
XAddingCollection<E>
addAll(E[] elements, int srcStartIndex, int srcLength)
XAddingCollection<E>
addAll(XGettingCollection<? extends E> elements)
XPuttingCollection<E>
putAll(E... elements)
Adds the specified elements to this collection if it is not already present (optional operation).XPuttingCollection<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.XPuttingCollection<E>
putAll(XGettingCollection<? extends E> elements)
Adds the specified elements to this collection if it is not already present (optional operation).Methods inherited from interface one.microstream.collections.interfaces.CapacityCarrying
isFull, maximumCapacity, remainingCapacity
Methods inherited from interface one.microstream.collections.interfaces.CapacityExtendable
currentCapacity, currentFreeCapacity, ensureCapacity, ensureFreeCapacity
Methods inherited from interface one.microstream.collections.interfaces.ExtendedCollection
hasVolatileElements, nullAllowed
Methods inherited from interface one.microstream.collections.interfaces.OptimizableCollection
optimize
Methods inherited from interface one.microstream.collections.types.XAddingCollection
accept, add, collector, nullAdd
-
Method Details
-
addAll
- Specified by:
addAll
in interfaceXAddingBag<E>
- Specified by:
addAll
in interfaceXAddingCollection<E>
-
addAll
- Specified by:
addAll
in interfaceXAddingBag<E>
- Specified by:
addAll
in interfaceXAddingCollection<E>
-
addAll
- Specified by:
addAll
in interfaceXAddingBag<E>
- Specified by:
addAll
in interfaceXAddingCollection<E>
-
putAll
Adds the specified elements to this collection if it is not already present (optional operation).In this implementation it is identical to
addAll(Object...)
- Specified by:
putAll
in interfaceXPuttingCollection<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 is identical to
addAll(Object[], int, int)
- Specified by:
putAll
in interfaceXPuttingCollection<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 is identical to
addAll(XGettingCollection)
- Specified by:
putAll
in interfaceXPuttingCollection<E>
- Parameters:
elements
- to add- Returns:
- this
-