E - type of contained elementspublic interface XPuttingCollection<E> extends XAddingCollection<E>
Examples: Set: Add all elements, overwriting equal already contained elements. Bag: Always add all elements (identical to add)
Note: Corresponds to the Java collections add() for single dimensional collections and put() for Map.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
XPuttingCollection.Creator<E> |
| Modifier and Type | Method and Description |
|---|---|
boolean |
nullPut() |
boolean |
put(E element)
Adds the specified element to this collection if it is not already present (optional operation).
|
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).
|
accept, add, addAll, addAll, addAll, collector, nullAddhasVolatileElements, nullAllowedcurrentCapacity, currentFreeCapacity, ensureCapacity, ensureFreeCapacityisFull, maximumCapacity, remainingCapacityoptimizeboolean put(E element)
element - to addboolean nullPut()
XPuttingCollection<E> putAll(E... elements)
elements - to addXPuttingCollection<E> putAll(E[] elements, int srcStartIndex, int srcLength)
elements - to addsrcStartIndex - start index of elements-array to add to collectionsrcLength - length of elements-array to add to collectionXPuttingCollection<E> putAll(XGettingCollection<? extends E> elements)
elements - to addCopyright © 2022 MicroStream Software. All rights reserved.