E - type of contained elementspublic interface XAddingCollection<E> extends ExtendedCollection<E>, CapacityExtendable, OptimizableCollection, Consumer<E>
Examples:
Set: Only add element, if no equal element is already contained
Bag: Always add all elements
| Modifier and Type | Interface and Description |
|---|---|
static interface |
XAddingCollection.Creator<E> |
| Modifier and Type | Method and Description |
|---|---|
default void |
accept(E element) |
boolean |
add(E element)
Adds the passed element.
|
XAddingCollection<E> |
addAll(E... elements) |
XAddingCollection<E> |
addAll(E[] elements,
int srcStartIndex,
int srcLength) |
XAddingCollection<E> |
addAll(XGettingCollection<? extends E> elements) |
default Aggregator<E,? extends XAddingCollection<E>> |
collector() |
boolean |
nullAdd() |
hasVolatileElements, nullAllowedcurrentCapacity, currentFreeCapacity, ensureCapacity, ensureFreeCapacityisFull, maximumCapacity, remainingCapacityoptimizedefault Aggregator<E,? extends XAddingCollection<E>> collector()
boolean add(E element)
element - to addtrue if element was added; false if notboolean nullAdd()
XAddingCollection<E> addAll(E... elements)
XAddingCollection<E> addAll(E[] elements, int srcStartIndex, int srcLength)
XAddingCollection<E> addAll(XGettingCollection<? extends E> elements)
Copyright © 2022 MicroStream Software. All rights reserved.