Interface XAddingCollection<E>
- Type Parameters:
E
- type of contained elements
- All Superinterfaces:
CapacityCarrying
,CapacityExtendable
,Consumer<E>
,ExtendedCollection<E>
,OptimizableCollection
,Sized
- All Known Subinterfaces:
XAddGetCollection<E>
,XAddGetSet<E>
,XAddingBag<E>
,XAddingEnum<E>
,XAddingList<E>
,XAddingSequence<E>
,XAddingSet<E>
,XAddingSortation<E>
,XAddingTable<K,V>
,XBag<E>
,XBasicEnum<E>
,XBasicList<E>
,XBasicSequence<E>
,XBasicTable<K,V>
,XBasicTable.Keys<K,V>
,XChart<K,V>
,XChart.Keys<K,V>
,XCollection<E>
,XEnum<E>
,XExpandingEnum<E>
,XExpandingList<E>
,XExpandingSequence<E>
,XExtendingEnum<E>
,XExtendingList<E>
,XExtendingSequence<E>
,XIncreasingEnum<E>
,XIncreasingList<E>
,XIncreasingSequence<E>
,XInputtingEnum<E>
,XInputtingList<E>
,XInputtingSequence<E>
,XInsertingEnum<E>
,XInsertingList<E>
,XInsertingSequence<E>
,XLadder<E>
,XList<E>
,XMap<K,V>
,XMap.Keys<K,V>
,XPutGetBag<E>
,XPutGetCollection<E>
,XPutGetEnum<E>
,XPutGetList<E>
,XPutGetSequence<E>
,XPutGetSet<E>
,XPutGetSortation<E>
,XPuttingBag<E>
,XPuttingCollection<E>
,XPuttingEnum<E>
,XPuttingList<E>
,XPuttingSequence<E>
,XPuttingSet<E>
,XPuttingSortation<E>
,XRank<E>
,XSequence<E>
,XSet<E>
,XSortation<E>
,XTable<K,V>
,XTable.Keys<K,V>
- All Known Implementing Classes:
ArrayCollector
,BulkList
,Collector
,EqBulkList
,EqHashEnum
,EqHashTable
,EqHashTable.Keys
,HashEnum
,HashTable
,HashTable.Keys
,LimitList
,LockedAdder
,LockedCollection
,LockedList
,LockedMap
,MutexSet
,OpenAdressingMiniSet
,Single
,SubCollector
,SubList
,SynchAdder
,SynchCollection
,SynchList
,SynchSet
public interface XAddingCollection<E> extends ExtendedCollection<E>, CapacityExtendable, OptimizableCollection, Consumer<E>
Adding aspect:
add all elements that do not logically conflict with already contained elements according to the collection's logic. ("add to"/"increase" collection).
add all elements that do not logically conflict with already contained elements according to the collection's logic. ("add to"/"increase" collection).
Examples:
Set: Only add element, if no equal element is already contained
Bag: Always add all elements
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
XAddingCollection.Creator<E>
-
Method Summary
Modifier and Type Method 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()
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