public final class EqHashTable.Keys extends Object implements XTable.Keys<K,V>, HashCollection<K>
| Modifier and Type | Class and Description |
|---|---|
class |
EqHashTable.Keys.OldKeys |
XEnum.Creator<E>XSet.Factory<E>XBasicSequence.Factory<E>XIncreasingEnum.Factory<E>XIterable.Executor<E>HashCollection.Analysis<H>DEFAULT_HASH_FACTOR, DEFAULT_HASH_LENGTH| Constructor and Description |
|---|
Keys() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(K element) |
boolean |
add(K element)
Adds the passed element.
|
EqHashTable.Keys |
addAll(K... elements) |
EqHashTable.Keys |
addAll(K[] elements,
int srcIndex,
int srcLength) |
EqHashTable.Keys |
addAll(XGettingCollection<? extends K> elements) |
K |
addGet(K element) |
HashCollection.Analysis<EqHashTable.Keys> |
analyze() |
boolean |
applies(Predicate<? super K> predicate)
Tests each element of the collection on the given predicate.
|
K |
at(long index) |
void |
clear()
Cuts all references to existing entries, effectively clearing the set.
|
long |
consolidate()
Consolidates the internal storage of this collection by discarding all elements of the internal storage that
have become obsolete or otherwise unneeded anymore.
|
boolean |
contains(K element)
Checks if the given element is contained in the collection.
|
boolean |
containsAll(XGettingCollection<? extends K> elements) |
boolean |
containsId(K element)
Special version of contains() that guarantees to use identity comparison (" == ") when searching for the
given element regardless of the collection's internal logic.
This method has the same behavior as XGettingCollection.containsSearched(Predicate) with a Predicate implementation
that checks for object identity. |
boolean |
containsSearched(Predicate<? super K> predicate) |
EqHashTable.Keys |
copy()
Creates a true copy of this collection which references the same elements as this collection does
at the time the method is called.
|
<T extends Consumer<? super K>> |
copySelection(T target,
long... indices)
Iterates through all the elements of the given indices and calls the
Consumer.accept(Object) on the target Consumer. |
<C extends Consumer<? super K>> |
copyTo(C target)
Calls
Consumer.accept(Object) on the target Consumer for all the elements of this collection. |
long |
count(K element)
Count how many times this element matches another element in the collection
using the
Equalator. |
long |
countBy(Predicate<? super K> predicate)
Count how many matches are found using the given predicate on each element of the collection.
|
long |
currentCapacity()
Returns the current amount of elements this instance can hold before a storage rebuild becomes necessary.
|
K |
deduplicate(K element) |
<C extends Consumer<? super K>> |
distinct(C target)
Calls
Consumer.accept(Object) on the target Consumer for all the unique/distinct
elements of this collection. |
<C extends Consumer<? super K>> |
distinct(C target,
Equalator<? super K> equalator)
Calls
Consumer.accept(Object) on the target Consumer for all the unique/distinct
elements of this collection. |
EqHashTable.Keys |
ensureCapacity(long minimalCapacity) |
EqHashTable.Keys |
ensureFreeCapacity(long requiredFreeCapacity)
Ensures that the next minimalFreeCapacity elements can be actually added in a fast way,
meaning for example no internal storage rebuild will be necessary.
|
Equalator<? super K> |
equality() |
boolean |
equals(XGettingCollection<? extends K> samples,
Equalator<? super K> equalator) |
boolean |
equalsContent(XGettingCollection<? extends K> samples,
Equalator<? super K> equalator)
Returns
true if all elements of this list and the passed list are sequentially equal as defined
by the passed equalator. |
<C extends Consumer<? super K>> |
except(XGettingCollection<? extends K> other,
Equalator<? super K> equalator,
C target)
Calls
Consumer.accept(Object) on the target Consumer for each
element of this collection that is not contained in the other collection (through the given equalator). |
K |
fetch() |
<C extends Consumer<? super K>> |
filterTo(C target,
Predicate<? super K> predicate)
Calls
Consumer.accept(Object) on the target Consumer for all the elements of this collection
which test true on the given predicate. |
K |
first()
Gets first element or throws
IndexOutOfBoundsException if the collection is empty. |
K |
get()
Gets one element from the collection.
|
float |
hashDensity() |
int |
hashDistributionRange() |
HashEqualator<? super K> |
hashEquality() |
boolean |
hasVolatileElements()
Tells if this collection contains volatile elements.
An element is volatile, if it can become no longer reachable by the collection without being removed from the collection. |
boolean |
hasVolatileHashElements() |
EqConstHashEnum<K> |
immure()
This method creates a
EqConstHashEnum instance containing all (currently existing) elements
of this EqConstHashEnum.No matter which hashing logic this instance uses, the new EqConstHashEnum instance always uses
a STRONG EQUALATOR logic, using this instance's logic's HashEqualator.This is necessary to ensure that the EqConstHashEnum instance is really constant and does not
(can not!) lose elements over time.If a EqConstHashEnum with volatile elements is needed (e.g. |
long |
indexBy(Predicate<? super K> predicate)
Iterates forwards through the collection and returns the index of the first element that the passed {link Predicate}
applies to immediately.
Stops iterating on the first element that the predicate applies to. |
long |
indexOf(K element) |
boolean |
input(long index,
K element) |
long |
inputAll(long index,
K... elements) |
long |
inputAll(long index,
K[] elements,
int offset,
int length) |
long |
inputAll(long index,
XGettingCollection<? extends K> elements) |
boolean |
insert(long index,
K element) |
long |
insertAll(long index,
K... elements) |
long |
insertAll(long index,
K[] elements,
int offset,
int length) |
long |
insertAll(long index,
XGettingCollection<? extends K> elements) |
<C extends Consumer<? super K>> |
intersect(XGettingCollection<? extends K> other,
Equalator<? super K> equalator,
C target)
Tests equality between each element of the two lists and calls
Consumer.accept(Object) on the target Consumer for the
equal elements.Therefore it effectively creates a mathematical intersection between the two collections. |
boolean |
isEmpty() |
boolean |
isFull() |
boolean |
isSorted(Comparator<? super K> comparator)
Tests if the collection is sorted according to the given comparator.
|
<P extends Consumer<? super K>> |
iterate(P procedure)
Executes the given procedure for each element of the
XIterable
until all elements have been processed or the action throws an
exception. |
<P extends IndexedAcceptor<? super K>> |
iterateIndexed(P procedure)
Iterates over elements with the
IndexedAcceptor to use
not only the element itself but also its coherent index. |
Iterator<K> |
iterator() |
<A> A |
join(BiConsumer<? super K,? super A> joiner,
A aggregate)
Iterates over all elements of the collections and calls the joiner
with each element and the aggregate.
|
K |
last()
Gets last element or throws
IndexOutOfBoundsException if the collection is empty. |
long |
lastIndexBy(Predicate<? super K> predicate)
Iterates backwards through the collection and returns the index of the last element that the passed
Predicate
applies to immediately.Stops iterating on the first element that the predicate applies to. |
long |
lastIndexOf(K element) |
K |
max(Comparator<? super K> comparator) |
long |
maximumCapacity()
Returns the maximum amount of elements this carrier instance can contain.
The actual value may be depend on the configuration of the concrete instance or may depend only on the implementation of the carrier (meaning it is constant for all instances of the implementation, e.g. |
long |
maxIndex(Comparator<? super K> comparator) |
K |
min(Comparator<? super K> comparator) |
long |
minIndex(Comparator<? super K> comparator) |
<C extends Consumer<? super K>> |
moveSelection(C target,
long... indices) |
<C extends Consumer<? super K>> |
moveTo(C target,
Predicate<? super K> predicate) |
boolean |
nullAdd() |
boolean |
nullAllowed()
Defines if null-elements are allowed inside the collection or not.
|
boolean |
nullContained() |
boolean |
nullInput(long index) |
boolean |
nullInsert(long index) |
boolean |
nullPrepend() |
boolean |
nullPreput() |
boolean |
nullPut() |
long |
nullRemove() |
EqHashTable.Keys.OldKeys |
old() |
long |
optimize()
Optimizes internal memory usage by rebuilding the storage to only occupy as much memory as needed to store
the currently contained elements in terms of the collection's current memory usage configuration
(e.g.
|
EqHashTable<K,V> |
parent() |
K |
peek()
Gets last element or null if the collection is empty.
|
K |
pick() |
K |
pinch() |
K |
poll()
Gets first element or null if the collection is empty.
|
K |
pop() |
boolean |
prepend(K element) |
EqHashTable.Keys |
prependAll(K... elements) |
EqHashTable.Keys |
prependAll(K[] elements,
int srcStartIndex,
int srcLength) |
EqHashTable.Keys |
prependAll(XGettingCollection<? extends K> elements) |
boolean |
preput(K element) |
EqHashTable.Keys |
preputAll(K... elements) |
EqHashTable.Keys |
preputAll(K[] elements,
int offset,
int length) |
EqHashTable.Keys |
preputAll(XGettingCollection<? extends K> elements) |
<P extends Consumer<? super K>> |
process(P procedure) |
boolean |
put(K element)
Adds the specified element to this collection if it is not already present (optional operation).
|
EqHashTable.Keys |
putAll(K... elements)
Adds the specified elements to this collection if it is not already present (optional operation).
|
EqHashTable.Keys |
putAll(K[] elements,
int srcIndex,
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. |
EqHashTable.Keys |
putAll(XGettingCollection<? extends K> elements)
Adds the specified elements to this collection if it is not already present (optional operation).
|
K |
putGet(K element) |
XEnum<K> |
range(long lowIndex,
long highIndex) |
int |
rehash()
Recalculates the hash value of all entries and reorginazes and optimizes the hash storage accordingly.
|
long |
remove(K element) |
long |
removeAll(XGettingCollection<? extends K> elements) |
K |
removeAt(long index) |
long |
removeBy(Predicate<? super K> predicate) |
long |
removeDuplicates() |
long |
removeDuplicates(Equalator<? super K> equalator) |
boolean |
removeOne(K element) |
EqHashTable.Keys |
removeRange(long startIndex,
long length) |
long |
removeSelection(long[] indices) |
K |
replace(K element) |
long |
retainAll(XGettingCollection<? extends K> elements)
Removing all elements except the ones contained in the given elements-collection.
|
EqHashTable.Keys |
retainRange(long startIndex,
long length)
Removing all elements but the ones from the offset (basically start index)
to the offset+length (end index).
|
K |
retrieve(K element) |
K |
retrieveBy(Predicate<? super K> predicate) |
EqHashTable.Keys |
reverse()
Reverses the order of its own elements and returns itself.
|
long |
scan(Predicate<? super K> predicate)
Iterates through the collection and returns the index of the last element that the passed
Predicate
applied to ("scanning"). |
K |
search(Predicate<? super K> predicate)
Returns the first contained element matching the passed predicate.
|
K |
seek(K sample)
Returns the first contained element matching the passed sample as defined by the collection's equality logic
or null, if no fitting element is contained.
|
boolean |
set(long index,
K element) |
EqHashTable.Keys |
set(long index,
K[] elements,
int offset,
int length) |
EqHashTable.Keys |
set(long index,
XGettingSequence<? extends K> elements,
long offset,
long length) |
EqHashTable.Keys |
setAll(long index,
K... elements) |
void |
setFirst(K element) |
K |
setGet(long index,
K element) |
void |
setHashDensity(float hashDensity)
Sets the hash density (1/density) of this hashing collection if applicable.
|
void |
setLast(K element) |
EqHashTable.Keys |
shiftBy(long sourceIndex,
long distance)
Moves the element from the sourceIndex in the sequence to a higher index position.
All other elements are possibly moved to create the empty slot for the shifting element. |
EqHashTable.Keys |
shiftBy(long sourceIndex,
long distance,
long length)
Moves multiple elements from the sourceIndex in the sequence to a higher index position.
All other elements are possibly moved to create the empty slot for the shifting elements. |
EqHashTable.Keys |
shiftTo(long sourceIndex,
long targetIndex)
Moves the element from the sourceIndex in the sequence to the targetIndex.
All other elements are possibly moved to create the empty slot for the shifting element. |
EqHashTable.Keys |
shiftTo(long sourceIndex,
long targetIndex,
long length)
Moves multiple elements from the sourceIndex in the sequence to the targetIndex.
All other elements are possibly moved to create the empty slot for the shifting element. |
long |
size() |
EqHashTable.Keys |
sort(Comparator<? super K> comparator)
Sorts this collection according to the given comparator
and returns itself.
|
long |
substitute(Function<? super K,? extends K> mapper) |
EqHashTable.Keys |
swap(long indexA,
long indexB) |
EqHashTable.Keys |
swap(long indexA,
long indexB,
long length) |
Object[] |
toArray()
Returns an array containing all of the elements in this collection.
|
K[] |
toArray(Class<K> type)
Returns a typed array containing all of the elements in this collection.
|
EqHashTable.Keys |
toReversed()
Creates a new
XGettingSequence with the reversed order of elements. |
String |
toString() |
void |
truncate()
Allocates a new internal storage with default size.
|
<C extends Consumer<? super K>> |
union(XGettingCollection<? extends K> other,
Equalator<? super K> equalator,
C target)
Calls
Consumer.accept(Object) on the target Consumer for all the elements of this collection. |
XGettingEnum<K> |
view()
Creates a view of this collection and returns it.
|
XGettingEnum<K> |
view(long lowIndex,
long highIndex)
Creates a sub-view of this collection and returns it.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcollectorcurrentFreeCapacityremainingCapacitysortIfApplicablepublic final int hashDistributionRange()
hashDistributionRange in interface HashCollection<K>public final boolean hasVolatileHashElements()
hasVolatileHashElements in interface HashCollection<K>public final void setHashDensity(float hashDensity)
HashCollectionIf this procedure is not applicable for the hash collection (e.g. an immutable hash collection), calling this method has no effect.
setHashDensity in interface HashCollection<K>hashDensity - the new hash density to be set.public final HashCollection.Analysis<EqHashTable.Keys> analyze()
analyze in interface HashCollection<K>public final Equalator<? super K> equality()
equality in interface XGettingCollection<K>public final EqHashTable.Keys copy()
XGettingCollectioncopy in interface XAddGetCollection<K>copy in interface XAddGetSet<K>copy in interface XBasicEnum<K>copy in interface XBasicSequence<K>copy in interface XBasicTable.Keys<K,V>copy in interface XCollection<K>copy in interface XDecreasingEnum<K>copy in interface XDecreasingSequence<K>copy in interface XEnum<K>copy in interface XGettingCollection<K>copy in interface XGettingEnum<K>copy in interface XGettingSequence<K>copy in interface XGettingSet<K>copy in interface XIncreasingEnum<K>copy in interface XIncreasingSequence<K>copy in interface XProcessingEnum<K>copy in interface XProcessingSet<K>copy in interface XPutGetCollection<K>copy in interface XPutGetEnum<K>copy in interface XPutGetSequence<K>copy in interface XPutGetSet<K>copy in interface XSequence<K>copy in interface XSet<K>copy in interface XSettingEnum<K>copy in interface XSettingSequence<K>copy in interface XSortableEnum<K>copy in interface XSortableSequence<K>copy in interface XTable.Keys<K,V>copy in interface Copyablepublic final EqConstHashEnum<K> immure()
EqConstHashEnum instance containing all (currently existing) elements
of this EqConstHashEnum.EqConstHashEnum instance always uses
a STRONG EQUALATOR logic, using this instance's logic's HashEqualator.EqConstHashEnum instance is really constant and does not
(can not!) lose elements over time.EqConstHashEnum with volatile elements is needed (e.g. as a "read-only weak set"),
an appropriate custom behavior EqConstHashEnum instance can be created via the various
copy constructors.immure in interface XBasicEnum<K>immure in interface XGettingCollection<K>immure in interface XGettingEnum<K>immure in interface XGettingMap.Keys<K,V>immure in interface XGettingSequence<K>immure in interface XGettingSet<K>immure in interface XProcessingMap.Keys<K,V>immure in interface XProcessingSet<K>EqConstHashEnum instance strongly referencing this set's current elements.public final XGettingEnum<K> view()
XGettingCollection
A view is different from immutable collection (XGettingCollection.immure())
in the way, that changes in this collection are still affecting the view.
The immutable collection on the other hand has no reference to this collection
and changes therefore do not affect the immutable collection.
view in interface XGettingCollection<K>view in interface XGettingEnum<K>view in interface XGettingSequence<K>public final XEnum<K> range(long lowIndex, long highIndex)
range in interface XDecreasingEnum<K>range in interface XDecreasingSequence<K>range in interface XEnum<K>range in interface XGettingEnum<K>range in interface XGettingSequence<K>range in interface XIncreasingEnum<K>range in interface XIncreasingSequence<K>range in interface XSettingEnum<K>range in interface XSettingSequence<K>public final XGettingEnum<K> view(long lowIndex, long highIndex)
XGettingSequence
A view is different from immutable collection (XGettingCollection.immure())
in the way, that changes in this collection are still affecting the view.
The immutable collection on the other hand has no reference to this collection
and changes therefore do not affect the immutable collection.
view in interface XGettingEnum<K>view in interface XGettingSequence<K>view in interface XProcessingSequence<K>lowIndex - defines lower boundary for the view of the collection.highIndex - defines higher boundary for the view of the collection.public final K[] toArray(Class<K> type)
XGettingCollectionThe returned array will be "safe" in that no references to it are maintained by this list. (In other words, this method must allocate a new array). The caller is thus free to modify the returned array.
This method acts as bridge between MicroStream-based collections and Java-native-based APIs.
toArray in interface XGettingCollection<K>type - the Class representing type E at runtime.public final <P extends Consumer<? super K>> P iterate(P procedure)
XIterableXIterable
until all elements have been processed or the action throws an
exception. Unless otherwise specified by the implementing class,
procedures are performed in the order of iteration (if an iteration order
is specified). Exceptions thrown by the procedure are relayed to the
caller.Iterable.forEach(Consumer).iterate in interface XGettingEnum<K>iterate in interface XGettingSet<K>iterate in interface XIterable<K>iterate in interface XProcessingCollection<K>P - type of procedureprocedure - The procedure to be performed for each elementpublic final <A> A join(BiConsumer<? super K,? super A> joiner, A aggregate)
XJoinablepublic final long count(K element)
XGettingCollectionEqualator.count in interface XGettingCollection<K>element - to countpublic final long countBy(Predicate<? super K> predicate)
XGettingCollectioncountBy in interface XGettingCollection<K>predicate - defines which elements are counted and which are notpublic final K seek(K sample)
XGettingCollectionXGettingCollection.contains(Object) with a different return type. For collections with data-dependant equality,
the returned element might be the same as the passed one or a data-wise equal one, depending on the content
of the collection)seek in interface XGettingCollection<K>sample - to seek in the collectionpublic final K search(Predicate<? super K> predicate)
XGettingCollectionsearch in interface XGettingCollection<K>predicate - defines which element is searchedpublic final K max(Comparator<? super K> comparator)
max in interface XGettingCollection<K>public final K min(Comparator<? super K> comparator)
min in interface XGettingCollection<K>public final boolean hasVolatileElements()
ExtendedCollectionWeakReference of SoftReference or implementations of collection entries
that remove the element contained in an entry by some means outside the collection.WeakReference instances that are added to a a simple (non-volatile) implementation of a
collection do not make the collection volatile, as the elements themselves (the reference instances) are still
strongly referenced.hasVolatileElements in interface ExtendedCollection<K>hasVolatileElements in interface XGettingCollection<K>true if the collection contains volatile elements.public final boolean nullAllowed()
ExtendedCollectionnullAllowed in interface ExtendedCollection<K>true if null is allowed inside the collection; false if notpublic final boolean containsSearched(Predicate<? super K> predicate)
containsSearched in interface XGettingCollection<K>public final boolean applies(Predicate<? super K> predicate)
XGettingCollectionapplies in interface XGettingCollection<K>predicate - that's tested on each element.public final boolean nullContained()
nullContained in interface XGettingCollection<K>public final boolean containsId(K element)
XGettingCollectionXGettingCollection.containsSearched(Predicate) with a Predicate implementation
that checks for object identity. The only difference is a performance and usability advantagecontainsId in interface XGettingCollection<K>element - the element to be searched in the collection by identity.public final boolean contains(K element)
XGettingCollectionXGettingCollection.containsId(Object) method, this method
uses the internal Equalator defined by the collection itself.contains in interface XGettingCollection<K>element - to be searched in the collectionEqualator.public final boolean containsAll(XGettingCollection<? extends K> elements)
containsAll in interface XGettingCollection<K>elements - to be searched in the collection.Equalator.public final boolean equals(XGettingCollection<? extends K> samples, Equalator<? super K> equalator)
equals in interface XGettingCollection<K>samples - is the collection which is checked for equalityequalator - is used to check the equality of the collectionstrue if the passed collection is of the same type as this collection and
this.equalsContent(list, equalator) yields truepublic final boolean equalsContent(XGettingCollection<? extends K> samples, Equalator<? super K> equalator)
XGettingCollectiontrue if all elements of this list and the passed list are sequentially equal as defined
by the passed equalator.
Note that for colletion types that don't have a defined order of elements, this method is hardly usable
(as is XGettingCollection.equals(Object) for them as defined in Collection). The core problem of comparing
collections that have no defined order is that they aren't really reliably comparable to any other collection.
equalsContent in interface XGettingCollection<K>samples - is the collection which is checked for equalityequalator - the equalator to use to determine the equality of each elementtrue if this list is equal to the passed list, false otherwisepublic final <C extends Consumer<? super K>> C intersect(XGettingCollection<? extends K> other, Equalator<? super K> equalator, C target)
XGettingCollectionConsumer.accept(Object) on the target Consumer for the
equal elements.
Since all MicroStream Collections implement the Consumer interface,
new collections can be used as target.
Example:
BulkList<Integer> collection1 = BulkList.New(1,2,3); BulkList<Integer> collection2 = BulkList.New(2,3,4); BulkList<Integer> intersection = collection1.intersect(collection2, Equalator.identity(), BulkList.New());Results in
intersection containing 2 and 3.intersect in interface XGettingCollection<K>C - type of the targetother - collection to intersect with.equalator - which is used for the equal-tests.target - on which the Consumer.accept(Object) is called for equal elements.public final <C extends Consumer<? super K>> C except(XGettingCollection<? extends K> other, Equalator<? super K> equalator, C target)
XGettingCollectionConsumer.accept(Object) on the target Consumer for each
element of this collection that is not contained in the other collection (through the given equalator).
Since all MicroStream Collections implement the Consumer interface,
new collections can be used as target.
Example:
BulkList<Integer> collection1 = BulkList.New(1,2,3); BulkList<Integer> collection2 = BulkList.New(2,3,4); BulkList<Integer> exceptCollection = collection1.except(collection2, Equalator.identity(), BulkList.New());Results in
exceptCollection containing 1.except in interface XGettingCollection<K>C - type of the targetother - collection whose elements are excluded from the target.equalator - which is used for the equal-tests.target - on which the Consumer.accept(Object) is called for elements not contained in the other collection.public final <C extends Consumer<? super K>> C union(XGettingCollection<? extends K> other, Equalator<? super K> equalator, C target)
XGettingCollectionConsumer.accept(Object) on the target Consumer for all the elements of this collection.
And calls it for all elements of the other collection, that are not already in this collection
(defined by the given Equalator)
Since all MicroStream Collections implement the Consumer interface,
new collections can be used as target.
Example:
BulkList<Integer> collection1 = BulkList.New(1,2,3); BulkList<Integer> collection2 = BulkList.New(2,3,4); BulkList<Integer> union = collection1.union(collection2, Equalator.identity(), BulkList.New());Results in
union containing 1, 2, 3 and 4.union in interface XGettingCollection<K>C - type of the targetother - collection to build a union with.equalator - which is used for the equal-tests.target - on which the Consumer.accept(Object) is called for all unified elements.public final <C extends Consumer<? super K>> C copyTo(C target)
XGettingCollectionConsumer.accept(Object) on the target Consumer for all the elements of this collection.
Since all MicroStream Collections implement the Consumer interface,
new collections can be used as target.
Example:
BulkList<Integer> collection1 = BulkList.New(1,2,3); BulkList<Integer> copiedCollection = collection1.copyTo(BulkList.New());Results in
copiedCollection containing 1, 2 and 3.copyTo in interface XGettingCollection<K>C - type of the targettarget - on which the Consumer.accept(Object) is called for all elements of this collection.public final <C extends Consumer<? super K>> C filterTo(C target, Predicate<? super K> predicate)
XGettingCollectionConsumer.accept(Object) on the target Consumer for all the elements of this collection
which test true on the given predicate.
Since all MicroStream Collections implement the Consumer interface,
new collections can be used as target.
Example:
BulkList<Integer> collection1 = BulkList.New(1,2,3); BulkList<Integer> filteredCollection = collection1.filterTo(BulkList.New(), e-> e % 2 == 0);Results in
filteredCollection containing 2.filterTo in interface XGettingCollection<K>C - type of the targettarget - on which the Consumer.accept(Object) is called for elements that test true.predicate - on which to test all elements.public final <C extends Consumer<? super K>> C distinct(C target)
XGettingCollectionConsumer.accept(Object) on the target Consumer for all the unique/distinct
elements of this collection. This means the elements are not equal to each other.Equalator.
Since all MicroStream Collections implement the Consumer interface,
new collections can be used as target.
Example:
BulkList<Integer> collection1 = BulkList.New(1,2,2,3);
BulkList<Integer> distinctCollection = collection1.distinct(BulkList.New());
Results in distinctCollection containing 1, 2 and 3.
distinct in interface XGettingCollection<K>C - type of the targettarget - on which the Consumer.accept(Object) is called for every distinct element of this collection.public final <C extends Consumer<? super K>> C distinct(C target, Equalator<? super K> equalator)
XGettingCollectionConsumer.accept(Object) on the target Consumer for all the unique/distinct
elements of this collection. This means the elements are not equal to each other.Equalator.
Since all MicroStream Collections implement the Consumer interface,
new collections can be used as target.
Example:
BulkList<Integer> collection1 = BulkList.New(1,2,2,3); BulkList<Integer> distinctCollection = collection1.distinct(BulkList.New(), Equalator.identity());Results in
distinctCollection containing 1, 2 and 3.distinct in interface XGettingCollection<K>C - type of the targettarget - on which the Consumer.accept(Object) is called for every distinct element of this collection.equalator - defines what distinct means (which elements are equal to one another)public final long currentCapacity()
CapacityExtendable
For carrier implementations that don't have a concept of storage rebuilding (like linked list for example)
this method returns the same value as CapacityCarrying.maximumCapacity().
currentCapacity in interface CapacityExtendablepublic final long maximumCapacity()
CapacityCarryingInteger.MAX_VALUE)maximumCapacity in interface CapacityCarryingpublic final boolean isFull()
isFull in interface CapacityCarryingpublic final long optimize()
XRemovingCollectionIf this is not possible or not needed in the concreate implementation, this method does nothing.
Note that this method can consume a considerable amount of time depending on the implementation and should only be called intentionally and accurately when reducing occupied memory is needed.
optimize in interface OptimizableCollectionoptimize in interface XRemovingCollection<K>public final int rehash()
HashCollectionrehash in interface HashCollection<K>public final EqHashTable.Keys ensureFreeCapacity(long requiredFreeCapacity)
CapacityExtendableensureFreeCapacity in interface CapacityExtendablerequiredFreeCapacity - the capacity to ensurepublic final EqHashTable.Keys ensureCapacity(long minimalCapacity)
ensureCapacity in interface CapacityExtendablepublic final boolean nullAdd()
nullAdd in interface XAddingCollection<K>public final boolean add(K element)
XAddingCollectionadd in interface XAddingCollection<K>element - to addtrue if element was added; false if not@SafeVarargs public final EqHashTable.Keys addAll(K... elements)
addAll in interface XAddGetCollection<K>addAll in interface XAddGetSet<K>addAll in interface XAddingCollection<K>addAll in interface XAddingEnum<K>addAll in interface XAddingSequence<K>addAll in interface XAddingSet<K>addAll in interface XBasicEnum<K>addAll in interface XBasicSequence<K>addAll in interface XBasicTable.Keys<K,V>addAll in interface XCollection<K>addAll in interface XEnum<K>addAll in interface XExpandingEnum<K>addAll in interface XExpandingSequence<K>addAll in interface XExtendingEnum<K>addAll in interface XExtendingSequence<K>addAll in interface XIncreasingEnum<K>addAll in interface XIncreasingSequence<K>addAll in interface XInputtingEnum<K>addAll in interface XInputtingSequence<K>addAll in interface XInsertingEnum<K>addAll in interface XInsertingSequence<K>addAll in interface XPutGetCollection<K>addAll in interface XPutGetEnum<K>addAll in interface XPutGetSequence<K>addAll in interface XPutGetSet<K>addAll in interface XPuttingEnum<K>addAll in interface XPuttingSet<K>addAll in interface XSequence<K>addAll in interface XSet<K>addAll in interface XTable.Keys<K,V>public final EqHashTable.Keys addAll(K[] elements, int srcIndex, int srcLength)
addAll in interface XAddGetCollection<K>addAll in interface XAddGetSet<K>addAll in interface XAddingCollection<K>addAll in interface XAddingEnum<K>addAll in interface XAddingSequence<K>addAll in interface XAddingSet<K>addAll in interface XBasicEnum<K>addAll in interface XBasicSequence<K>addAll in interface XBasicTable.Keys<K,V>addAll in interface XCollection<K>addAll in interface XEnum<K>addAll in interface XExpandingEnum<K>addAll in interface XExpandingSequence<K>addAll in interface XExtendingEnum<K>addAll in interface XExtendingSequence<K>addAll in interface XIncreasingEnum<K>addAll in interface XIncreasingSequence<K>addAll in interface XInputtingEnum<K>addAll in interface XInputtingSequence<K>addAll in interface XInsertingEnum<K>addAll in interface XInsertingSequence<K>addAll in interface XPutGetCollection<K>addAll in interface XPutGetEnum<K>addAll in interface XPutGetSequence<K>addAll in interface XPutGetSet<K>addAll in interface XPuttingEnum<K>addAll in interface XPuttingSet<K>addAll in interface XSequence<K>addAll in interface XSet<K>addAll in interface XTable.Keys<K,V>public final EqHashTable.Keys addAll(XGettingCollection<? extends K> elements)
addAll in interface XAddGetCollection<K>addAll in interface XAddGetSet<K>addAll in interface XAddingCollection<K>addAll in interface XAddingEnum<K>addAll in interface XAddingSequence<K>addAll in interface XAddingSet<K>addAll in interface XBasicEnum<K>addAll in interface XBasicSequence<K>addAll in interface XBasicTable.Keys<K,V>addAll in interface XCollection<K>addAll in interface XEnum<K>addAll in interface XExpandingEnum<K>addAll in interface XExpandingSequence<K>addAll in interface XExtendingEnum<K>addAll in interface XExtendingSequence<K>addAll in interface XIncreasingEnum<K>addAll in interface XIncreasingSequence<K>addAll in interface XInputtingEnum<K>addAll in interface XInputtingSequence<K>addAll in interface XInsertingEnum<K>addAll in interface XInsertingSequence<K>addAll in interface XPutGetCollection<K>addAll in interface XPutGetEnum<K>addAll in interface XPutGetSequence<K>addAll in interface XPutGetSet<K>addAll in interface XPuttingEnum<K>addAll in interface XPuttingSet<K>addAll in interface XSequence<K>addAll in interface XSet<K>addAll in interface XTable.Keys<K,V>public final boolean nullPut()
nullPut in interface XPuttingCollection<K>public final void accept(K element)
public final boolean put(K element)
XPuttingCollectionput in interface XPuttingCollection<K>element - to addpublic final K addGet(K element)
addGet in interface XAddGetSet<K>public K deduplicate(K element)
deduplicate in interface XAddGetSet<K>public final K putGet(K element)
putGet in interface XPutGetSet<K>public final K replace(K element)
replace in interface XPutGetSet<K>@SafeVarargs public final EqHashTable.Keys putAll(K... elements)
XPuttingCollectionputAll in interface XBasicEnum<K>putAll in interface XBasicSequence<K>putAll in interface XBasicTable.Keys<K,V>putAll in interface XCollection<K>putAll in interface XEnum<K>putAll in interface XExpandingEnum<K>putAll in interface XExpandingSequence<K>putAll in interface XIncreasingEnum<K>putAll in interface XIncreasingSequence<K>putAll in interface XInputtingEnum<K>putAll in interface XInputtingSequence<K>putAll in interface XPutGetCollection<K>putAll in interface XPutGetEnum<K>putAll in interface XPutGetSequence<K>putAll in interface XPutGetSet<K>putAll in interface XPuttingCollection<K>putAll in interface XPuttingEnum<K>putAll in interface XPuttingSequence<K>putAll in interface XPuttingSet<K>putAll in interface XSequence<K>putAll in interface XSet<K>putAll in interface XTable.Keys<K,V>elements - to addpublic final EqHashTable.Keys putAll(K[] elements, int srcIndex, int srcLength)
XPuttingCollectionputAll in interface XBasicEnum<K>putAll in interface XBasicSequence<K>putAll in interface XBasicTable.Keys<K,V>putAll in interface XCollection<K>putAll in interface XEnum<K>putAll in interface XExpandingEnum<K>putAll in interface XExpandingSequence<K>putAll in interface XIncreasingEnum<K>putAll in interface XIncreasingSequence<K>putAll in interface XInputtingEnum<K>putAll in interface XInputtingSequence<K>putAll in interface XPutGetCollection<K>putAll in interface XPutGetEnum<K>putAll in interface XPutGetSequence<K>putAll in interface XPutGetSet<K>putAll in interface XPuttingCollection<K>putAll in interface XPuttingEnum<K>putAll in interface XPuttingSequence<K>putAll in interface XPuttingSet<K>putAll in interface XSequence<K>putAll in interface XSet<K>putAll in interface XTable.Keys<K,V>elements - to addsrcIndex - start index of elements-array to add to collectionsrcLength - length of elements-array to add to collectionpublic final EqHashTable.Keys putAll(XGettingCollection<? extends K> elements)
XPuttingCollectionputAll in interface XBasicEnum<K>putAll in interface XBasicSequence<K>putAll in interface XBasicTable.Keys<K,V>putAll in interface XCollection<K>putAll in interface XEnum<K>putAll in interface XExpandingEnum<K>putAll in interface XExpandingSequence<K>putAll in interface XIncreasingEnum<K>putAll in interface XIncreasingSequence<K>putAll in interface XInputtingEnum<K>putAll in interface XInputtingSequence<K>putAll in interface XPutGetCollection<K>putAll in interface XPutGetEnum<K>putAll in interface XPutGetSequence<K>putAll in interface XPutGetSet<K>putAll in interface XPuttingCollection<K>putAll in interface XPuttingEnum<K>putAll in interface XPuttingSequence<K>putAll in interface XPuttingSet<K>putAll in interface XSequence<K>putAll in interface XSet<K>putAll in interface XTable.Keys<K,V>elements - to addpublic final void truncate()
This can be substantially faster than clear() as long as enough heap size is available but will also
fragment heap much faster and thus slow down garbage collection compared to clear().
To clear the set in a heap-clean way and reduce internal storage size to default, use both clear()
and truncate().
truncate in interface Truncateabletruncate in interface XRemovingCollection<K>XRemovingCollection.truncate()public final long consolidate()
ConsolidatableCollectionWeakReference entries whose reference has
been cleared).consolidate in interface ConsolidatableCollectionconsolidate in interface XRemovingCollection<K>public final long remove(K element)
remove in interface XRemovingCollection<K>public final long nullRemove()
nullRemove in interface XRemovingCollection<K>public final long removeBy(Predicate<? super K> predicate)
removeBy in interface XProcessingCollection<K>public final long retainAll(XGettingCollection<? extends K> elements)
XRemovingCollectionBasically intersect this collection with the given collection and only keeping the resulting elements.
retainAll in interface XRemovingCollection<K>elements - to retainpublic final <P extends Consumer<? super K>> P process(P procedure)
process in interface Processable<K>public final <C extends Consumer<? super K>> C moveTo(C target, Predicate<? super K> predicate)
moveTo in interface XProcessingCollection<K>public final long removeAll(XGettingCollection<? extends K> elements)
removeAll in interface XRemovingCollection<K>public final long removeDuplicates()
removeDuplicates in interface XRemovingCollection<K>public final long removeDuplicates(Equalator<? super K> equalator)
removeDuplicates in interface XProcessingCollection<K>public final EqHashTable.Keys toReversed()
XGettingSequenceXGettingSequence with the reversed order of elements.
This method creates a new collection and does not change the existing collection.
toReversed in interface XBasicEnum<K>toReversed in interface XBasicSequence<K>toReversed in interface XDecreasingEnum<K>toReversed in interface XDecreasingSequence<K>toReversed in interface XEnum<K>toReversed in interface XGettingEnum<K>toReversed in interface XGettingSequence<K>toReversed in interface XIncreasingEnum<K>toReversed in interface XIncreasingSequence<K>toReversed in interface XProcessingEnum<K>toReversed in interface XProcessingSequence<K>toReversed in interface XPutGetEnum<K>toReversed in interface XPutGetSequence<K>toReversed in interface XSequence<K>toReversed in interface XSettingEnum<K>toReversed in interface XSettingSequence<K>toReversed in interface XSortableEnum<K>toReversed in interface XSortableSequence<K>public final <T extends Consumer<? super K>> T copySelection(T target, long... indices)
XGettingSequenceConsumer.accept(Object) on the target Consumer.copySelection in interface XGettingSequence<K>T - type of the targettarget - on which the Consumer.accept(Object) is calledindices - of the elements which are copiedpublic final <P extends IndexedAcceptor<? super K>> P iterateIndexed(P procedure)
XIndexIterableIndexedAcceptor to use
not only the element itself but also its coherent index.iterateIndexed in interface XIndexIterable<K>P - type of procedureprocedure - which is executed when iteratingpublic final K at(long index)
at in interface XGettingSequence<K>public final K get()
XGettingCollectionXGettingSequence, then it is
undefined which element is returned. If the collection is ordered, the element at index 0 is returned.get in interface XGettingCollection<K>get in interface XGettingSequence<K>XGettingSequence.at(long),
XGettingSequence.first(),
XGettingSequence.last()public final K first()
XGettingSequenceIndexOutOfBoundsException if the collection is empty.
Is an alias for XGettingSequence.get().
first in interface XGettingSequence<K>public final K last()
XGettingSequenceIndexOutOfBoundsException if the collection is empty.last in interface XGettingSequence<K>public final K poll()
XGettingSequencepoll in interface XGettingSequence<K>public final K peek()
XGettingSequencepeek in interface XGettingSequence<K>public final long indexOf(K element)
indexOf in interface XGettingSequence<K>public final long indexBy(Predicate<? super K> predicate)
XGettingSequence
Basically the opposite of XGettingSequence.lastIndexBy(Predicate)
indexBy in interface XGettingSequence<K>predicate - to define a valid elementpublic final boolean isSorted(Comparator<? super K> comparator)
XGettingSequenceisSorted in interface XGettingSequence<K>comparator - defines if elements are sortedpublic final long lastIndexOf(K element)
lastIndexOf in interface XGettingSequence<K>public final long lastIndexBy(Predicate<? super K> predicate)
XGettingSequencePredicate
applies to immediately.
Basically the opposite of XGettingSequence.indexBy(Predicate).
Similar but not the same as XGettingSequence.scan(Predicate), since scan iterates through all elements.
lastIndexBy in interface XGettingSequence<K>predicate - to define a valid elementpublic final long maxIndex(Comparator<? super K> comparator)
maxIndex in interface XGettingSequence<K>public final long minIndex(Comparator<? super K> comparator)
minIndex in interface XGettingSequence<K>public final long scan(Predicate<? super K> predicate)
XGettingSequencePredicate
applied to ("scanning").
In order to find the last element, this method must iterate over all elements of the collection
(opposed to XGettingSequence.indexBy(Predicate) and XGettingSequence.lastIndexBy(Predicate)).
Iteration can be safely canceled with a ThrowBreak (X.BREAK)
scan in interface XGettingSequence<K>predicate - to define a valid elementpublic final <C extends Consumer<? super K>> C moveSelection(C target, long... indices)
moveSelection in interface XProcessingSequence<K>public final K removeAt(long index)
removeAt in interface XProcessingSequence<K>public final K fetch()
fetch in interface XProcessingCollection<K>public final K pop()
pop in interface XProcessingSequence<K>public final K pinch()
pinch in interface XProcessingCollection<K>public final K pick()
pick in interface XProcessingSequence<K>public final K retrieve(K element)
retrieve in interface XProcessingCollection<K>public final K retrieveBy(Predicate<? super K> predicate)
retrieveBy in interface XProcessingCollection<K>public final boolean removeOne(K element)
removeOne in interface XRemovingCollection<K>public final EqHashTable.Keys removeRange(long startIndex, long length)
removeRange in interface XRemovingSequence<K>public final EqHashTable.Keys retainRange(long startIndex, long length)
XRemovingSequenceretainRange in interface XRemovingSequence<K>startIndex - is the index of the first element to retainlength - is the amount of elements to retainpublic final long removeSelection(long[] indices)
removeSelection in interface XRemovingSequence<K>public final long size()
size in interface HashCollection<K>size in interface Sizedsize in interface XGettingCollection<K>public final Object[] toArray()
XGettingCollectionThe returned array will be "safe" in that no references to it are maintained by this list. (In other words, this method must allocate a new array). The caller is thus free to modify the returned array.
This method acts as bridge between MicroStream-based collections and Java-native-based APIs.
toArray in interface XGettingCollection<K>public final void clear()
The internal storage remains at its current size. All inter-entry references are cut as well, easing garbage collection of discarded entry instances belonging to different generations.
To simply reallocate a new internal storage with default size, see truncate()
clear in interface XRemovingCollection<K>clear in interface ClearableXRemovingCollection.clear()public final EqHashTable.Keys reverse()
XSortableSequence
Unlike the XSortableSequence.toReversed() method, this method does not create a new collection,
but changes the order of its own elements.
reverse in interface XDecreasingEnum<K>reverse in interface XDecreasingSequence<K>reverse in interface XEnum<K>reverse in interface XIncreasingEnum<K>reverse in interface XIncreasingSequence<K>reverse in interface XOrderingEnum<K>reverse in interface XOrderingSequence<K>reverse in interface XSettingEnum<K>reverse in interface XSettingSequence<K>reverse in interface XSortableEnum<K>reverse in interface XSortableSequence<K>public final EqHashTable.Keys sort(Comparator<? super K> comparator)
Sortablesort in interface Sortable<K>sort in interface XDecreasingEnum<K>sort in interface XDecreasingSequence<K>sort in interface XEnum<K>sort in interface XIncreasingEnum<K>sort in interface XIncreasingSequence<K>sort in interface XSequence<K>sort in interface XSettingEnum<K>sort in interface XSettingSequence<K>sort in interface XSortableEnum<K>sort in interface XSortableSequence<K>comparator - to sort this collectionpublic final EqHashTable.Keys shiftTo(long sourceIndex, long targetIndex)
XOrderingSequenceDoes not expand or shrink the capacity of the sequence.
Throws a IndexExceededException if sourceIndex or targetIndex are
greater than the size of the sequence.
shiftTo in interface XOrderingEnum<K>shiftTo in interface XOrderingSequence<K>shiftTo in interface XSortableEnum<K>shiftTo in interface XSortableSequence<K>sourceIndex - points to the source element; Index of the source elementtargetIndex - points to the target element; Index of the target elementpublic final EqHashTable.Keys shiftTo(long sourceIndex, long targetIndex, long length)
XOrderingSequenceDoes not expand or shrink the capacity of the sequence.
Throws a IndexExceededException if sourceIndex or targetIndex
exceed the size of the sequence.
shiftTo in interface XOrderingEnum<K>shiftTo in interface XOrderingSequence<K>shiftTo in interface XSortableEnum<K>shiftTo in interface XSortableSequence<K>sourceIndex - points to the source element; Index of the source elementtargetIndex - points to the target element; Index of the target elementlength - Amount of moved elements.public final EqHashTable.Keys shiftBy(long sourceIndex, long distance)
XOrderingSequenceDoes not expand or shrink the capacity of the sequence.
Throws a IndexExceededException if sourceIndex or targetIndex
(sourceIndex+distance) exceed the size of the sequence.
shiftBy in interface XOrderingEnum<K>shiftBy in interface XOrderingSequence<K>shiftBy in interface XSortableEnum<K>shiftBy in interface XSortableSequence<K>sourceIndex - points to the source element; Index of the source elementdistance - of how far the element should be moved.
Example: 1 moves the element from position 21 to position 22public final EqHashTable.Keys shiftBy(long sourceIndex, long distance, long length)
XOrderingSequenceDoes not expand or shrink the capacity of the sequence.
Throws a IndexExceededException if sourceIndex or targetIndex
(sourceIndex+distance+length) exceed the size of the sequence.
shiftBy in interface XOrderingEnum<K>shiftBy in interface XOrderingSequence<K>shiftBy in interface XSortableEnum<K>shiftBy in interface XSortableSequence<K>sourceIndex - points to the source element; Index of the source elementdistance - of how far the element should be moved.
Example: 1 moves the element from position 21 to position 22length - Amount of moved elements.public final EqHashTable.Keys swap(long indexA, long indexB)
swap in interface XDecreasingEnum<K>swap in interface XDecreasingSequence<K>swap in interface XEnum<K>swap in interface XIncreasingEnum<K>swap in interface XIncreasingSequence<K>swap in interface XOrderingEnum<K>swap in interface XOrderingSequence<K>swap in interface XSettingEnum<K>swap in interface XSettingSequence<K>swap in interface XSortableEnum<K>swap in interface XSortableSequence<K>public final EqHashTable.Keys swap(long indexA, long indexB, long length)
swap in interface XDecreasingEnum<K>swap in interface XDecreasingSequence<K>swap in interface XEnum<K>swap in interface XIncreasingEnum<K>swap in interface XIncreasingSequence<K>swap in interface XOrderingEnum<K>swap in interface XOrderingSequence<K>swap in interface XSettingEnum<K>swap in interface XSettingSequence<K>swap in interface XSortableEnum<K>swap in interface XSortableSequence<K>public final EqHashTable.Keys.OldKeys old()
old in interface XGettingCollection<K>public final EqHashTable<K,V> parent()
parent in interface XBasicTable.Keys<K,V>parent in interface XGettingMap.Satellite<K,V>parent in interface XGettingTable.Keys<K,V>parent in interface XGettingTable.Satellite<K,V>parent in interface XMap.Satellite<K,V>parent in interface XTable.Keys<K,V>public final HashEqualator<? super K> hashEquality()
hashEquality in interface HashCollection<K>public final float hashDensity()
hashDensity in interface HashCollection<K>public final boolean input(long index,
K element)
input in interface XInputtingSequence<K>@SafeVarargs public final long inputAll(long index, K... elements)
inputAll in interface XInputtingSequence<K>public final long inputAll(long index,
K[] elements,
int offset,
int length)
inputAll in interface XInputtingSequence<K>public final long inputAll(long index,
XGettingCollection<? extends K> elements)
inputAll in interface XInputtingSequence<K>public final boolean insert(long index,
K element)
insert in interface XInsertingSequence<K>@SafeVarargs public final long insertAll(long index, K... elements)
insertAll in interface XInsertingSequence<K>public final long insertAll(long index,
K[] elements,
int offset,
int length)
insertAll in interface XInsertingSequence<K>public final long insertAll(long index,
XGettingCollection<? extends K> elements)
insertAll in interface XInsertingSequence<K>public final boolean prepend(K element)
prepend in interface XPrependingSequence<K>public final boolean preput(K element)
preput in interface XPreputtingSequence<K>public final boolean nullInput(long index)
nullInput in interface XInputtingSequence<K>public final boolean nullInsert(long index)
nullInsert in interface XInsertingSequence<K>public final boolean nullPrepend()
nullPrepend in interface XPrependingSequence<K>public final EqHashTable.Keys prependAll(K... elements)
prependAll in interface XEnum<K>prependAll in interface XExpandingEnum<K>prependAll in interface XExpandingSequence<K>prependAll in interface XExtendingEnum<K>prependAll in interface XExtendingSequence<K>prependAll in interface XIncreasingEnum<K>prependAll in interface XIncreasingSequence<K>prependAll in interface XInputtingEnum<K>prependAll in interface XInputtingSequence<K>prependAll in interface XInsertingEnum<K>prependAll in interface XInsertingSequence<K>prependAll in interface XPrependingEnum<K>prependAll in interface XPrependingSequence<K>prependAll in interface XPreputtingEnum<K>prependAll in interface XPreputtingSequence<K>public final EqHashTable.Keys prependAll(K[] elements, int srcStartIndex, int srcLength)
prependAll in interface XEnum<K>prependAll in interface XExpandingEnum<K>prependAll in interface XExpandingSequence<K>prependAll in interface XExtendingEnum<K>prependAll in interface XExtendingSequence<K>prependAll in interface XIncreasingEnum<K>prependAll in interface XIncreasingSequence<K>prependAll in interface XInputtingEnum<K>prependAll in interface XInputtingSequence<K>prependAll in interface XInsertingEnum<K>prependAll in interface XInsertingSequence<K>prependAll in interface XPrependingEnum<K>prependAll in interface XPrependingSequence<K>prependAll in interface XPreputtingEnum<K>prependAll in interface XPreputtingSequence<K>public final EqHashTable.Keys prependAll(XGettingCollection<? extends K> elements)
prependAll in interface XEnum<K>prependAll in interface XExpandingEnum<K>prependAll in interface XExpandingSequence<K>prependAll in interface XExtendingEnum<K>prependAll in interface XExtendingSequence<K>prependAll in interface XIncreasingEnum<K>prependAll in interface XIncreasingSequence<K>prependAll in interface XInputtingEnum<K>prependAll in interface XInputtingSequence<K>prependAll in interface XInsertingEnum<K>prependAll in interface XInsertingSequence<K>prependAll in interface XPrependingEnum<K>prependAll in interface XPrependingSequence<K>prependAll in interface XPreputtingEnum<K>prependAll in interface XPreputtingSequence<K>public final boolean nullPreput()
nullPreput in interface XPreputtingSequence<K>@SafeVarargs public final EqHashTable.Keys preputAll(K... elements)
preputAll in interface XEnum<K>preputAll in interface XExpandingEnum<K>preputAll in interface XExpandingSequence<K>preputAll in interface XIncreasingEnum<K>preputAll in interface XIncreasingSequence<K>preputAll in interface XInputtingEnum<K>preputAll in interface XInputtingSequence<K>preputAll in interface XPreputtingEnum<K>preputAll in interface XPreputtingSequence<K>public final EqHashTable.Keys preputAll(K[] elements, int offset, int length)
preputAll in interface XEnum<K>preputAll in interface XExpandingEnum<K>preputAll in interface XExpandingSequence<K>preputAll in interface XIncreasingEnum<K>preputAll in interface XIncreasingSequence<K>preputAll in interface XInputtingEnum<K>preputAll in interface XInputtingSequence<K>preputAll in interface XPreputtingEnum<K>preputAll in interface XPreputtingSequence<K>public final EqHashTable.Keys preputAll(XGettingCollection<? extends K> elements)
preputAll in interface XEnum<K>preputAll in interface XExpandingEnum<K>preputAll in interface XExpandingSequence<K>preputAll in interface XIncreasingEnum<K>preputAll in interface XIncreasingSequence<K>preputAll in interface XInputtingEnum<K>preputAll in interface XInputtingSequence<K>preputAll in interface XPreputtingEnum<K>preputAll in interface XPreputtingSequence<K>public final boolean set(long index,
K element)
set in interface XSettingSequence<K>public final K setGet(long index, K element)
setGet in interface XSettingEnum<K>setGet in interface XSettingSequence<K>public final void setFirst(K element)
setFirst in interface XSettingEnum<K>setFirst in interface XSettingSequence<K>public final void setLast(K element)
setLast in interface XSettingEnum<K>setLast in interface XSettingSequence<K>@SafeVarargs public final EqHashTable.Keys setAll(long index, K... elements)
setAll in interface XDecreasingEnum<K>setAll in interface XDecreasingSequence<K>setAll in interface XEnum<K>setAll in interface XSettingEnum<K>setAll in interface XSettingSequence<K>public final EqHashTable.Keys set(long index, K[] elements, int offset, int length)
set in interface XDecreasingEnum<K>set in interface XDecreasingSequence<K>set in interface XEnum<K>set in interface XSettingEnum<K>set in interface XSettingSequence<K>public final EqHashTable.Keys set(long index, XGettingSequence<? extends K> elements, long offset, long length)
set in interface XDecreasingEnum<K>set in interface XDecreasingSequence<K>set in interface XEnum<K>set in interface XSettingEnum<K>set in interface XSettingSequence<K>public long substitute(Function<? super K,? extends K> mapper)
substitute in interface XDecreasingEnum<K>substitute in interface XReplacingCollection<K>Copyright © 2022 MicroStream Software. All rights reserved.