Class HashTable<K,V>
- java.lang.Object
-
- one.microstream.collections.AbstractExtendedCollection<E>
-
- one.microstream.collections.AbstractChainCollection<KeyValue<K,V>,K,V,EN>
-
- one.microstream.collections.AbstractChainKeyValueCollection<K,V,one.microstream.collections.ChainMapEntryLinkedStrongStrong<K,V>>
-
- one.microstream.collections.HashTable<K,V>
-
- All Implemented Interfaces:
Iterable<KeyValue<K,V>>,Consumer<KeyValue<K,V>>,CapacityCarrying,CapacityExtendable,ConsolidatableCollection,ExtendedCollection<KeyValue<K,V>>,ExtendedMap<K,V>,ExtendedSequence<KeyValue<K,V>>,HashCollection<K>,OptimizableCollection,ReleasingCollection<KeyValue<K,V>>,Sized,Truncateable,Sortable<KeyValue<K,V>>,SortableProcedure<KeyValue<K,V>>,XAddGetCollection<KeyValue<K,V>>,XAddGetMap<K,V>,XAddGetSet<KeyValue<K,V>>,XAddingCollection<KeyValue<K,V>>,XAddingEnum<KeyValue<K,V>>,XAddingMap<K,V>,XAddingSequence<KeyValue<K,V>>,XAddingSet<KeyValue<K,V>>,XAddingTable<K,V>,XBasicEnum<KeyValue<K,V>>,XBasicSequence<KeyValue<K,V>>,XBasicTable<K,V>,XCollection<KeyValue<K,V>>,XDecreasingEnum<KeyValue<K,V>>,XDecreasingSequence<KeyValue<K,V>>,XEnum<KeyValue<K,V>>,XExpandingEnum<KeyValue<K,V>>,XExpandingSequence<KeyValue<K,V>>,XExtendingEnum<KeyValue<K,V>>,XExtendingSequence<KeyValue<K,V>>,XGettingCollection<KeyValue<K,V>>,XGettingEnum<KeyValue<K,V>>,XGettingMap<K,V>,XGettingSequence<KeyValue<K,V>>,XGettingSet<KeyValue<K,V>>,XGettingTable<K,V>,XIncreasingEnum<KeyValue<K,V>>,XIncreasingSequence<KeyValue<K,V>>,XIndexIterable<KeyValue<K,V>>,XInputtingEnum<KeyValue<K,V>>,XInputtingSequence<KeyValue<K,V>>,XInsertingEnum<KeyValue<K,V>>,XInsertingSequence<KeyValue<K,V>>,XIterable<KeyValue<K,V>>,XJoinable<KeyValue<K,V>>,XMap<K,V>,XOrderingEnum<KeyValue<K,V>>,XOrderingSequence<KeyValue<K,V>>,XPrependingEnum<KeyValue<K,V>>,XPrependingSequence<KeyValue<K,V>>,XPreputtingEnum<KeyValue<K,V>>,XPreputtingSequence<KeyValue<K,V>>,XProcessingCollection<KeyValue<K,V>>,XProcessingEnum<KeyValue<K,V>>,XProcessingMap<K,V>,XProcessingSequence<KeyValue<K,V>>,XProcessingSet<KeyValue<K,V>>,XPutGetCollection<KeyValue<K,V>>,XPutGetEnum<KeyValue<K,V>>,XPutGetMap<K,V>,XPutGetSequence<KeyValue<K,V>>,XPutGetSet<KeyValue<K,V>>,XPuttingCollection<KeyValue<K,V>>,XPuttingEnum<KeyValue<K,V>>,XPuttingMap<K,V>,XPuttingSequence<KeyValue<K,V>>,XPuttingSet<KeyValue<K,V>>,XRemovingCollection<KeyValue<K,V>>,XRemovingEnum<KeyValue<K,V>>,XRemovingMap<K,V>,XRemovingSequence<KeyValue<K,V>>,XRemovingSet<KeyValue<K,V>>,XReplacingCollection<KeyValue<K,V>>,XSequence<KeyValue<K,V>>,XSet<KeyValue<K,V>>,XSettingEnum<KeyValue<K,V>>,XSettingSequence<KeyValue<K,V>>,XSortableEnum<KeyValue<K,V>>,XSortableSequence<KeyValue<K,V>>,XTable<K,V>,IdentityEqualityLogic,Processable<KeyValue<K,V>>,Clearable,Composition,Copyable
public final class HashTable<K,V> extends AbstractChainKeyValueCollection<K,V,one.microstream.collections.ChainMapEntryLinkedStrongStrong<K,V>> implements XTable<K,V>, HashCollection<K>, Composition, IdentityEqualityLogic
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceHashTable.Creator<K,V>classHashTable.KeysclassHashTable.OldVarMapclassHashTable.Values-
Nested classes/interfaces inherited from interface one.microstream.typing.Copyable
Copyable.Static
-
Nested classes/interfaces inherited from interface one.microstream.collections.interfaces.HashCollection
HashCollection.Analysis<H>
-
Nested classes/interfaces inherited from interface one.microstream.collections.types.XBasicSequence
XBasicSequence.Factory<E>
-
Nested classes/interfaces inherited from interface one.microstream.collections.types.XGettingSequence
XGettingSequence.Factory<E>
-
Nested classes/interfaces inherited from interface one.microstream.collections.types.XIncreasingEnum
XIncreasingEnum.Factory<E>
-
Nested classes/interfaces inherited from interface one.microstream.collections.types.XIterable
XIterable.Executor<E>
-
Nested classes/interfaces inherited from interface one.microstream.collections.types.XProcessingSequence
XProcessingSequence.Factory<E>
-
Nested classes/interfaces inherited from interface one.microstream.collections.types.XProcessingSet
XProcessingSet.Factory<E>
-
Nested classes/interfaces inherited from interface one.microstream.collections.types.XPutGetSequence
XPutGetSequence.Factory<E>
-
Nested classes/interfaces inherited from interface one.microstream.collections.types.XPutGetSet
XPutGetSet.Factory<E>
-
Nested classes/interfaces inherited from interface one.microstream.collections.types.XRemovingEnum
XRemovingEnum.Factory<E>
-
Nested classes/interfaces inherited from interface one.microstream.collections.types.XRemovingMap
XRemovingMap.Factory<K,V>
-
Nested classes/interfaces inherited from interface one.microstream.collections.types.XSet
XSet.Factory<E>
-
Nested classes/interfaces inherited from interface one.microstream.collections.types.XTable
XTable.Bridge<K,V>, XTable.EntriesBridge<K,V>, XTable.Satellite<K,V>
-
-
Field Summary
-
Fields inherited from interface one.microstream.collections.interfaces.HashCollection
DEFAULT_HASH_FACTOR, DEFAULT_HASH_LENGTH
-
-
Constructor Summary
Constructors Constructor Description HashTable()
-
Method Summary
Modifier and Type Method Description voidaccept(KeyValue<K,V> entry)booleanadd(K key, V value)Adds the passed key and value as an entry if key is not yet contained.booleanadd(KeyValue<K,V> entry)HashTable<K,V>addAll(XGettingCollection<? extends KeyValue<K,V>> elements)HashTable<K,V>addAll(KeyValue<K,V>... elements)HashTable<K,V>addAll(KeyValue<K,V>[] elements, int srcIndex, int srcLength)KeyValue<K,V>addGet(K key, V value)KeyValue<K,V>addGet(KeyValue<K,V> entry)HashCollection.Analysis<HashTable<K,V>>analyze()booleanapplies(Predicate<? super KeyValue<K,V>> predicate)KeyValue<K,V>at(long index)voidclear()Clears all elements from the collection while leaving the capacity as it is.longconsolidate()Consolidates the internal storage of this collection by discarding all elements of the internal storage that have become obsolete or otherwise unneeded anymore.booleancontains(KeyValue<K,V> entry)booleancontainsAll(XGettingCollection<? extends KeyValue<K,V>> elements)booleancontainsId(KeyValue<K,V> entry)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 asXGettingCollection.containsSearched(Predicate)with aPredicateimplementation that checks for object identity.booleancontainsSearched(Predicate<? super KeyValue<K,V>> predicate)HashTable<K,V>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 KeyValue<K,V>>>
TcopySelection(T target, long... indices)<C extends Consumer<? super KeyValue<K,V>>>
CcopyTo(C target)longcount(KeyValue<K,V> entry)longcountBy(Predicate<? super KeyValue<K,V>> predicate)longcurrentCapacity()Returns the current amount of elements this instance can hold before a storage rebuild becomes necessary.KeyValue<K,V>deduplicate(KeyValue<K,V> entry)<C extends Consumer<? super KeyValue<K,V>>>
Cdistinct(C target)<C extends Consumer<? super KeyValue<K,V>>>
Cdistinct(C target, Equalator<? super KeyValue<K,V>> equalator)Vensure(K key, Function<? super K,V> valueProvider)Ensures that this map instance contains a non-null value for the passed key and returns that value.CapacityExtendableensureCapacity(long minimalCapacity)CapacityExtendableensureFreeCapacity(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.HashEqualator<KeyValue<K,V>>equality()booleanequals(XGettingCollection<? extends KeyValue<K,V>> samples, Equalator<? super KeyValue<K,V>> equalator)Returnstrueif the passed collection is of the same type as this collection andthis.equalsContent(list, equalator)yieldstrue.booleanequalsContent(XGettingCollection<? extends KeyValue<K,V>> samples, Equalator<? super KeyValue<K,V>> equalator)Returnstrueif all elements of this list and the passed list are sequentially equal as defined by the passed equalator.<C extends Consumer<? super KeyValue<K,V>>>
Cexcept(XGettingCollection<? extends KeyValue<K,V>> other, Equalator<? super KeyValue<K,V>> equalator, C target)KeyValue<K,V>fetch()<C extends Consumer<? super KeyValue<K,V>>>
CfilterTo(C target, Predicate<? super KeyValue<K,V>> predicate)KeyValue<K,V>first()KeyValue<K,V>get()Gets one element from the collection.Vget(K key)floathashDensity()inthashDistributionRange()HashEqualator<K>hashEquality()booleanhasVolatileElements()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.booleanhasVolatileHashElements()booleanhasVolatileValues()ConstHashTable<K,V>immure()Provides an instance of an immutable collection type with equal behavior and data as this instance.longindexBy(Predicate<? super KeyValue<K,V>> predicate)longindexOf(KeyValue<K,V> entry)booleaninput(long index, KeyValue<K,V> element)longinputAll(long index, XGettingCollection<? extends KeyValue<K,V>> elements)longinputAll(long index, KeyValue<K,V>... elements)longinputAll(long index, KeyValue<K,V>[] elements, int offset, int length)booleaninsert(long index, KeyValue<K,V> element)longinsertAll(long index, XGettingCollection<? extends KeyValue<K,V>> elements)longinsertAll(long index, KeyValue<K,V>... elements)longinsertAll(long index, KeyValue<K,V>[] elements, int offset, int length)<C extends Consumer<? super KeyValue<K,V>>>
Cintersect(XGettingCollection<? extends KeyValue<K,V>> other, Equalator<? super KeyValue<K,V>> equalator, C target)booleanisEmpty()booleanisFull()Returns true if the current capacity cannot be increased any more.booleanisSorted(Comparator<? super KeyValue<K,V>> comparator)<P extends Consumer<? super KeyValue<K,V>>>
Piterate(P procedure)<P extends IndexedAcceptor<? super KeyValue<K,V>>>
PiterateIndexed(P procedure)Iterator<KeyValue<K,V>>iterator()<A> Ajoin(BiConsumer<? super KeyValue<K,V>,? super A> joiner, A aggregate)HashTable.Keyskeys()KeyValue<K,V>last()longlastIndexBy(Predicate<? super KeyValue<K,V>> predicate)longlastIndexOf(KeyValue<K,V> entry)KeyValue<K,V>lookup(K key)KeyValue<K,V>max(Comparator<? super KeyValue<K,V>> comparator)longmaximumCapacity()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.longmaxIndex(Comparator<? super KeyValue<K,V>> comparator)KeyValue<K,V>min(Comparator<? super KeyValue<K,V>> comparator)longminIndex(Comparator<? super KeyValue<K,V>> comparator)<C extends Consumer<? super KeyValue<K,V>>>
CmoveSelection(C target, long... indices)<C extends Consumer<? super KeyValue<K,V>>>
CmoveTo(C target, Predicate<? super KeyValue<K,V>> predicate)static <K,V>
HashTable<K,V>New()static <K,V>
HashTable<K,V>New(XGettingCollection<? extends KeyValue<? extends K,? extends V>> entries)static <K,V>
HashTable<K,V>New(KeyValue<? extends K,? extends V>... entries)static <K,V>
HashTable<K,V>NewCustom(float hashDensity)static <K,V>
HashTable<K,V>NewCustom(int initialHashLength)static <K,V>
HashTable<K,V>NewCustom(int initialHashLength, float hashDensity)static <K,V>
HashTable<K,V>NewCustom(int initialHashLength, float hashDensity, XGettingCollection<? extends KeyValue<? extends K,? extends V>> entries)static <K,V>
HashTable<K,V>NewCustom(long desiredCapacity, float hashDensity, KeyValue<? extends K,? extends V>... entries)static <KI,VI,KO,VO>
HashTable<KO,VO>NewProjected(float hashDensity, XGettingCollection<? extends KeyValue<KI,VI>> entries, Function<? super KI,KO> keyProjector, Function<? super VI,VO> valueProjector)static <KO,VO,KI extends KO,VI extends VO>
HashTable<KO,VO>NewProjected(XGettingCollection<? extends KeyValue<KI,VI>> entries)static <KI,VI,KO,VO>
HashTable<KO,VO>NewProjected(XGettingCollection<? extends KeyValue<KI,VI>> entries, Function<? super KI,KO> keyProjector, Function<? super VI,VO> valueProjector)static <K,V>
HashTable<K,V>NewSingle(K key, V value)booleannullAdd()booleannullAllowed()booleannullContained()booleannullInput(long index)booleannullInsert(long index)booleannullKeyAllowed()booleannullPrepend()booleannullPreput()booleannullPut()longnullRemove()booleannullValuesAllowed()XTable.EntriesBridge<K,V>old()XTable.Bridge<K,V>oldMap()longoptimize()Optimizes the internal storage of this collection and returns the storage size of the collection after the process is complete.KeyValue<K,V>peek()KeyValue<K,V>pick()KeyValue<K,V>pinch()KeyValue<K,V>poll()KeyValue<K,V>pop()Predicate<KeyValue<K,V>>predicateContainsEntry()booleanprepend(KeyValue<K,V> element)HashTable<K,V>prependAll(XGettingCollection<? extends KeyValue<K,V>> elements)HashTable<K,V>prependAll(KeyValue<K,V>... elements)HashTable<K,V>prependAll(KeyValue<K,V>[] elements, int srcStartIndex, int srcLength)booleanpreput(KeyValue<K,V> element)HashTable<K,V>preputAll(XGettingCollection<? extends KeyValue<K,V>> elements)HashTable<K,V>preputAll(KeyValue<K,V>... elements)HashTable<K,V>preputAll(KeyValue<K,V>[] elements, int offset, int length)<P extends Consumer<? super KeyValue<K,V>>>
Pprocess(P procedure)booleanput(K key, V value)Ensures the passed key and value to be contained as an entry in the map.booleanput(KeyValue<K,V> entry)HashTable<K,V>putAll(XGettingCollection<? extends KeyValue<K,V>> elements)HashTable<K,V>putAll(KeyValue<K,V>... elements)HashTable<K,V>putAll(KeyValue<K,V>[] elements, int srcIndex, int srcLength)KeyValue<K,V>putGet(K key, V value)Ensures the passed key and value to be contained as an entry in the map.KeyValue<K,V>putGet(KeyValue<K,V> entry)<C extends Consumer<? super V>>
Cquery(XIterable<? extends K> keys, C collector)XEnum<KeyValue<K,V>>range(long lowIndex, long highIndex)intrehash()Recalculates the hash value of all entries and reorginazes and optimizes the hash storage accordingly.longremove(KeyValue<K,V> entry)longremoveAll(XGettingCollection<? extends KeyValue<K,V>> elements)KeyValue<K,V>removeAt(long index)longremoveBy(Predicate<? super KeyValue<K,V>> predicate)longremoveDuplicates()longremoveDuplicates(Equalator<? super KeyValue<K,V>> equalator)VremoveFor(K key)booleanremoveOne(KeyValue<K,V> entry)HashTable<K,V>removeRange(long startIndex, long length)longremoveSelection(long[] indices)KeyValue<K,V>replace(K key, V value)KeyValue<K,V>replace(KeyValue<K,V> entry)longretainAll(XGettingCollection<? extends KeyValue<K,V>> elements)HashTable<K,V>retainRange(long startIndex, long length)KeyValue<K,V>retrieve(KeyValue<K,V> entry)KeyValue<K,V>retrieveBy(Predicate<? super KeyValue<K,V>> predicate)HashTable<K,V>reverse()longscan(Predicate<? super KeyValue<K,V>> predicate)Iterates through the collection and returns the index of the last element that the passedPredicateapplied to ("scanning").KeyValue<K,V>search(Predicate<? super KeyValue<K,V>> predicate)VsearchValue(Predicate<? super K> keyPredicate)KeyValue<K,V>seek(KeyValue<K,V> 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.HashTable<K,V>set(long index, XGettingSequence<? extends KeyValue<K,V>> elements, long offset, long length)booleanset(long index, KeyValue<K,V> element)HashTable<K,V>set(long index, KeyValue<K,V>[] elements, int offset, int length)booleanset(K key, V value)Sets the passed key and value to an appropriate entry if one can be found.HashTable<K,V>setAll(long index, KeyValue<K,V>... elements)voidsetFirst(KeyValue<K,V> element)KeyValue<K,V>setGet(long index, KeyValue<K,V> element)KeyValue<K,V>setGet(K key, V value)Sets the passed key and value to an appropriate entry if one can be found.voidsetHashDensity(float hashDensity)Sets the hash density (1/density) of this hashing collection if applicable.voidsetLast(KeyValue<K,V> element)HashTable<K,V>shiftBy(long sourceIndex, long distance)HashTable<K,V>shiftBy(long sourceIndex, long distance, long length)HashTable<K,V>shiftTo(long sourceIndex, long targetIndex)HashTable<K,V>shiftTo(long sourceIndex, long targetIndex, long length)longsize()HashTable<K,V>sort(Comparator<? super KeyValue<K,V>> comparator)longsubstitute(Function<? super KeyValue<K,V>,? extends KeyValue<K,V>> mapper)KeyValue<K,V>substitute(K key, V value)static <K,VK,VV>
Function<K,HashTable<VK,VV>>supplier()HashTable<K,V>swap(long indexA, long indexB)HashTable<K,V>swap(long indexA, long indexB, long length)Object[]toArray()KeyValue<K,V>[]toArray(Class<KeyValue<K,V>> type)HashTable<K,V>toReversed()StringtoString()voidtruncate()Clears (and reinitializes if needed) this collection in the fastest possible way, i.e.<C extends Consumer<? super KeyValue<K,V>>>
Cunion(XGettingCollection<? extends KeyValue<K,V>> other, Equalator<? super KeyValue<K,V>> equalator, C target)booleanvaluePut(K key, V value)Ensures the passed value to be either set to an existing entry appropriate to sampleKey or inserted as a new one.VvaluePutGet(K key, V value)Ensures the passed value to be either set to an existing entry appropriate to sampleKey or inserted as a new one.HashTable.Valuesvalues()booleanvalueSet(K key, V value)Sets only the passed value to an existing entry appropriate to the passed sampleKey.VvalueSetGet(K key, V value)Sets only the passed value to an existing entry appropriate to the passed sampleKey.XGettingTable<K,V>view()XGettingEnum<KeyValue<K,V>>view(long lowIndex, long highIndex)-
Methods inherited from class one.microstream.collections.AbstractExtendedCollection
ensureFreeArrayCapacity, validateIndex
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface one.microstream.collections.interfaces.CapacityCarrying
remainingCapacity
-
Methods inherited from interface one.microstream.collections.interfaces.CapacityExtendable
currentFreeCapacity
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface one.microstream.collections.types.XCollection
collector
-
Methods inherited from interface one.microstream.collections.types.XGettingCollection
equals, hashCode, intSize
-
Methods inherited from interface one.microstream.collections.types.XGettingSequence
hasIndex
-
-
-
-
Method Detail
-
New
public static final <K,V> HashTable<K,V> New()
-
NewCustom
public static final <K,V> HashTable<K,V> NewCustom(int initialHashLength)
-
NewCustom
public static final <K,V> HashTable<K,V> NewCustom(float hashDensity)
-
NewCustom
public static final <K,V> HashTable<K,V> NewCustom(int initialHashLength, float hashDensity)
-
New
public static final <K,V> HashTable<K,V> New(XGettingCollection<? extends KeyValue<? extends K,? extends V>> entries)
-
NewCustom
public static final <K,V> HashTable<K,V> NewCustom(int initialHashLength, float hashDensity, XGettingCollection<? extends KeyValue<? extends K,? extends V>> entries)
-
NewSingle
public static final <K,V> HashTable<K,V> NewSingle(K key, V value)
-
New
@SafeVarargs public static final <K,V> HashTable<K,V> New(KeyValue<? extends K,? extends V>... entries)
-
NewCustom
@SafeVarargs public static final <K,V> HashTable<K,V> NewCustom(long desiredCapacity, float hashDensity, KeyValue<? extends K,? extends V>... entries)
-
NewProjected
public static final <KI,VI,KO,VO> HashTable<KO,VO> NewProjected(float hashDensity, XGettingCollection<? extends KeyValue<KI,VI>> entries, Function<? super KI,KO> keyProjector, Function<? super VI,VO> valueProjector)
-
NewProjected
public static final <KO,VO,KI extends KO,VI extends VO> HashTable<KO,VO> NewProjected(XGettingCollection<? extends KeyValue<KI,VI>> entries)
-
NewProjected
public static final <KI,VI,KO,VO> HashTable<KO,VO> NewProjected(XGettingCollection<? extends KeyValue<KI,VI>> entries, Function<? super KI,KO> keyProjector, Function<? super VI,VO> valueProjector)
-
lookup
public final KeyValue<K,V> lookup(K key)
- Specified by:
lookupin interfaceXGettingMap<K,V>
-
size
public final long size()
- Specified by:
sizein interfaceHashCollection<K>- Specified by:
sizein interfaceSized- Specified by:
sizein interfaceXGettingCollection<K>
-
rehash
public final int rehash()
Description copied from interface:HashCollectionRecalculates the hash value of all entries and reorginazes and optimizes the hash storage accordingly. This method is meant for cases where a hash collection has to collect its elements before proper hash values can be derived for them or where hash mutable elements can change their hash-relevant state after having been added (and hashed) in a hash collection. Note that depending on the hash-relevant state of elements and their changing of it, it can be possible that some elements oust others, thus decreasing the collection's size. This behavior depends on the type of the elements and the used hash logic and cannot be compensated by a general purpose collection implementation.- Specified by:
rehashin interfaceHashCollection<K>- Returns:
- the new size of the collection which might be lower than before the call.
-
clear
public final void clear()
Description copied from interface:XRemovingCollectionClears all elements from the collection while leaving the capacity as it is.- Specified by:
clearin interfaceClearable- Specified by:
clearin interfaceXRemovingCollection<K>
-
truncate
public final void truncate()
Description copied from interface:XRemovingCollectionClears (and reinitializes if needed) this collection in the fastest possible way, i.e. by allocating a new and empty internal storage of default capacity. The collection will be empty after calling this method.- Specified by:
truncatein interfaceTruncateable- Specified by:
truncatein interfaceXRemovingCollection<K>
-
consolidate
public final long consolidate()
Description copied from interface:ConsolidatableCollectionConsolidates the internal storage of this collection by discarding all elements of the internal storage that have become obsolete or otherwise unneeded anymore. (e.g.WeakReferenceentries whose reference has been cleared).If this is not possible or not needed in the concrete implementation, this method does nothing and returns 0.
- Specified by:
consolidatein interfaceConsolidatableCollection- Specified by:
consolidatein interfaceXRemovingCollection<K>- Returns:
- the number of discarded entries.
-
ensureCapacity
public final CapacityExtendable ensureCapacity(long minimalCapacity)
- Specified by:
ensureCapacityin interfaceCapacityExtendable
-
ensureFreeCapacity
public final CapacityExtendable ensureFreeCapacity(long requiredFreeCapacity)
Description copied from interface:CapacityExtendableEnsures that the next minimalFreeCapacity elements can be actually added in a fast way, meaning for example no internal storage rebuild will be necessary.- Specified by:
ensureFreeCapacityin interfaceCapacityExtendable
-
optimize
public final long optimize()
Description copied from interface:OptimizableCollectionOptimizes the internal storage of this collection and returns the storage size of the collection after the process is complete.- Specified by:
optimizein interfaceOptimizableCollection- Specified by:
optimizein interfaceXRemovingCollection<K>- Returns:
- the storage size of the collection after the optimzation.
-
copy
public final HashTable<K,V> copy()
Description copied from interface:XGettingCollectionCreates a true copy of this collection which references the same elements as this collection does at the time the method is called. The elements themselves are NOT copied (no deep copying).
The type of the returned set is the same as of this list if possible.- Specified by:
copyin interfaceCopyable- Specified by:
copyin interfaceXAddGetCollection<K>- Specified by:
copyin interfaceXAddGetSet<K>- Specified by:
copyin interfaceXBasicEnum<K>- Specified by:
copyin interfaceXBasicSequence<K>- Specified by:
copyin interfaceXBasicTable<K,V>- Specified by:
copyin interfaceXCollection<K>- Specified by:
copyin interfaceXDecreasingEnum<K>- Specified by:
copyin interfaceXDecreasingSequence<K>- Specified by:
copyin interfaceXEnum<K>- Specified by:
copyin interfaceXGettingCollection<K>- Specified by:
copyin interfaceXGettingEnum<K>- Specified by:
copyin interfaceXGettingMap<K,V>- Specified by:
copyin interfaceXGettingSequence<K>- Specified by:
copyin interfaceXGettingSet<K>- Specified by:
copyin interfaceXGettingTable<K,V>- Specified by:
copyin interfaceXIncreasingEnum<K>- Specified by:
copyin interfaceXIncreasingSequence<K>- Specified by:
copyin interfaceXMap<K,V>- Specified by:
copyin interfaceXProcessingEnum<K>- Specified by:
copyin interfaceXProcessingMap<K,V>- Specified by:
copyin interfaceXProcessingSet<K>- Specified by:
copyin interfaceXPutGetCollection<K>- Specified by:
copyin interfaceXPutGetEnum<K>- Specified by:
copyin interfaceXPutGetSequence<K>- Specified by:
copyin interfaceXPutGetSet<K>- Specified by:
copyin interfaceXSequence<K>- Specified by:
copyin interfaceXSet<K>- Specified by:
copyin interfaceXSettingEnum<K>- Specified by:
copyin interfaceXSettingSequence<K>- Specified by:
copyin interfaceXSortableEnum<K>- Specified by:
copyin interfaceXSortableSequence<K>- Specified by:
copyin interfaceXTable<K,V>- Returns:
- a copy of this list
-
immure
public final ConstHashTable<K,V> immure()
Description copied from interface:XGettingMapProvides an instance of an immutable collection type with equal behavior and data as this instance.If this instance already is of an immutable collection type, it returns itself.
- Specified by:
immurein interfaceXBasicEnum<K>- Specified by:
immurein interfaceXGettingCollection<K>- Specified by:
immurein interfaceXGettingEnum<K>- Specified by:
immurein interfaceXGettingMap<K,V>- Specified by:
immurein interfaceXGettingSequence<K>- Specified by:
immurein interfaceXGettingSet<K>- Specified by:
immurein interfaceXGettingTable<K,V>- Specified by:
immurein interfaceXMap<K,V>- Specified by:
immurein interfaceXProcessingSet<K>- Returns:
- an immutable copy of this collection instance.
-
view
public final XGettingTable<K,V> view()
- Specified by:
viewin interfaceXGettingCollection<K>- Specified by:
viewin interfaceXGettingEnum<K>- Specified by:
viewin interfaceXGettingMap<K,V>- Specified by:
viewin interfaceXGettingSequence<K>- Specified by:
viewin interfaceXGettingTable<K,V>
-
setHashDensity
public final void setHashDensity(float hashDensity)
Description copied from interface:HashCollectionSets the hash density (1/density) of this hashing collection if applicable.If this procedure is not applicable for the hash collection (e.g. an immutable hash collection), calling this method has no effect.
- Specified by:
setHashDensityin interfaceHashCollection<K>- Parameters:
hashDensity- the new hash density to be set.
-
hasVolatileElements
public final boolean hasVolatileElements()
Description copied from interface:XGettingCollectionTells 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. Examples areWeakReferenceofSoftReferenceor implementations of collection entries that remove the element contained in an entry by some means outside the collection.
Note thatWeakReferenceinstances 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.- Specified by:
hasVolatileElementsin interfaceExtendedCollection<K>- Specified by:
hasVolatileElementsin interfaceXGettingCollection<K>- Returns:
trueif the collection contains volatile elements.
-
nullAllowed
public final boolean nullAllowed()
- Specified by:
nullAllowedin interfaceExtendedCollection<K>
-
nullKeyAllowed
public final boolean nullKeyAllowed()
- Specified by:
nullKeyAllowedin interfaceXAddingMap<K,V>- Specified by:
nullKeyAllowedin interfaceXGettingMap<K,V>- Specified by:
nullKeyAllowedin interfaceXMap<K,V>
-
nullValuesAllowed
public final boolean nullValuesAllowed()
- Specified by:
nullValuesAllowedin interfaceXAddingMap<K,V>- Specified by:
nullValuesAllowedin interfaceXGettingMap<K,V>- Specified by:
nullValuesAllowedin interfaceXMap<K,V>
-
ensure
public final V ensure(K key, Function<? super K,V> valueProvider)
Description copied from interface:XAddGetMapEnsures that this map instance contains a non-null value for the passed key and returns that value.If a non-null value can be found for the passed key, it is returned. Otherwise, the value provided by the passed supplier will be associated with the passed key and is returned.
- Specified by:
ensurein interfaceXAddGetMap<K,V>- Parameters:
key- the search key.valueProvider- the value supplier used to provide a value for the passed key in case non could be found.- Returns:
- the value associated with the passed key, either already existing or newly assiciated by the call of this method.
-
keys
public final HashTable.Keys keys()
-
old
public final XTable.EntriesBridge<K,V> old()
-
oldMap
public XTable.Bridge<K,V> oldMap()
-
searchValue
public final V searchValue(Predicate<? super K> keyPredicate)
- Specified by:
searchValuein interfaceXGettingMap<K,V>- Specified by:
searchValuein interfaceXMap<K,V>
-
query
public final <C extends Consumer<? super V>> C query(XIterable<? extends K> keys, C collector)
- Specified by:
queryin interfaceXGettingMap<K,V>
-
values
public final HashTable.Values values()
- Specified by:
valuesin interfaceXBasicTable<K,V>- Specified by:
valuesin interfaceXGettingMap<K,V>- Specified by:
valuesin interfaceXGettingTable<K,V>- Specified by:
valuesin interfaceXMap<K,V>- Specified by:
valuesin interfaceXProcessingMap<K,V>- Specified by:
valuesin interfaceXTable<K,V>
-
currentCapacity
public final long currentCapacity()
Description copied from interface:CapacityExtendableReturns the current amount of elements this instance can hold before a storage rebuild becomes necessary.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().- Specified by:
currentCapacityin interfaceCapacityExtendable- Returns:
- the current capacity of this instance before a rebuild is required.
-
maximumCapacity
public final long maximumCapacity()
Description copied from interface:CapacityCarryingReturns 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.Integer.MAX_VALUE)- Specified by:
maximumCapacityin interfaceCapacityCarrying- Returns:
- the maximum amount of elements this carrier instance can contain.
-
isFull
public final boolean isFull()
Description copied from interface:CapacityCarryingReturns true if the current capacity cannot be increased any more.- Specified by:
isFullin interfaceCapacityCarrying
-
hasVolatileValues
public final boolean hasVolatileValues()
- Specified by:
hasVolatileValuesin interfaceXBasicTable<K,V>- Specified by:
hasVolatileValuesin interfaceXTable<K,V>
-
addGet
public final KeyValue<K,V> addGet(K key, V value)
- Specified by:
addGetin interfaceXAddGetMap<K,V>
-
substitute
public final KeyValue<K,V> substitute(K key, V value)
- Specified by:
substitutein interfaceXAddGetMap<K,V>
-
putGet
public final KeyValue<K,V> putGet(K key, V value)
Description copied from interface:XMapEnsures the passed key and value to be contained as an entry in the map. Returns the old value ornull.
-
replace
public final KeyValue<K,V> replace(K key, V value)
- Specified by:
replacein interfaceXPutGetMap<K,V>
-
setGet
public final KeyValue<K,V> setGet(K key, V value)
Description copied from interface:XMapSets the passed key and value to an appropriate entry if one can be found. Returns the old value.
-
add
public final boolean add(K key, V value)
Description copied from interface:XMapAdds the passed key and value as an entry if key is not yet contained. Return value indicates new entry.
-
put
public final boolean put(K key, V value)
Description copied from interface:XMapEnsures the passed key and value to be contained as an entry in the map. Return value indicates new entry.
-
set
public final boolean set(K key, V value)
Description copied from interface:XMapSets the passed key and value to an appropriate entry if one can be found. Return value indicates entry change.
-
valuePut
public final boolean valuePut(K key, V value)
Description copied from interface:XMapEnsures the passed value to be either set to an existing entry appropriate to sampleKey or inserted as a new one.
-
valueSet
public final boolean valueSet(K key, V value)
Description copied from interface:XMapSets only the passed value to an existing entry appropriate to the passed sampleKey. Returns value indicates change.
-
valuePutGet
public final V valuePutGet(K key, V value)
Description copied from interface:XMapEnsures the passed value to be either set to an existing entry appropriate to sampleKey or inserted as a new one.- Specified by:
valuePutGetin interfaceXMap<K,V>
-
valueSetGet
public final V valueSetGet(K key, V value)
Description copied from interface:XMapSets only the passed value to an existing entry appropriate to the passed sampleKey. Returns the old value.- Specified by:
valueSetGetin interfaceXMap<K,V>
-
removeFor
public final V removeFor(K key)
- Specified by:
removeForin interfaceXProcessingMap<K,V>
-
analyze
public final HashCollection.Analysis<HashTable<K,V>> analyze()
- Specified by:
analyzein interfaceHashCollection<K>
-
hashDistributionRange
public final int hashDistributionRange()
- Specified by:
hashDistributionRangein interfaceHashCollection<K>
-
hashEquality
public final HashEqualator<K> hashEquality()
- Specified by:
hashEqualityin interfaceHashCollection<K>
-
hashDensity
public final float hashDensity()
- Specified by:
hashDensityin interfaceHashCollection<K>
-
hasVolatileHashElements
public final boolean hasVolatileHashElements()
- Specified by:
hasVolatileHashElementsin interfaceHashCollection<K>
-
sort
public final HashTable<K,V> sort(Comparator<? super KeyValue<K,V>> comparator)
- Specified by:
sortin interfaceSortable<K>- Specified by:
sortin interfaceXDecreasingEnum<K>- Specified by:
sortin interfaceXDecreasingSequence<K>- Specified by:
sortin interfaceXEnum<K>- Specified by:
sortin interfaceXIncreasingEnum<K>- Specified by:
sortin interfaceXIncreasingSequence<K>- Specified by:
sortin interfaceXSequence<K>- Specified by:
sortin interfaceXSettingEnum<K>- Specified by:
sortin interfaceXSettingSequence<K>- Specified by:
sortin interfaceXSortableEnum<K>- Specified by:
sortin interfaceXSortableSequence<K>- Specified by:
sortin interfaceXTable<K,V>
-
range
public final XEnum<KeyValue<K,V>> range(long lowIndex, long highIndex)
- Specified by:
rangein interfaceXDecreasingEnum<K>- Specified by:
rangein interfaceXDecreasingSequence<K>- Specified by:
rangein interfaceXEnum<K>- Specified by:
rangein interfaceXGettingEnum<K>- Specified by:
rangein interfaceXGettingSequence<K>- Specified by:
rangein interfaceXIncreasingEnum<K>- Specified by:
rangein interfaceXIncreasingSequence<K>- Specified by:
rangein interfaceXSettingEnum<K>- Specified by:
rangein interfaceXSettingSequence<K>
-
view
public final XGettingEnum<KeyValue<K,V>> view(long lowIndex, long highIndex)
- Specified by:
viewin interfaceXGettingEnum<K>- Specified by:
viewin interfaceXGettingSequence<K>- Specified by:
viewin interfaceXProcessingSequence<K>
-
toArray
public final KeyValue<K,V>[] toArray(Class<KeyValue<K,V>> type)
- Specified by:
toArrayin interfaceXGettingCollection<K>
-
iterate
public final <P extends Consumer<? super KeyValue<K,V>>> P iterate(P procedure)
- Specified by:
iteratein interfaceXGettingEnum<K>- Specified by:
iteratein interfaceXGettingSet<K>- Specified by:
iteratein interfaceXIterable<K>- Specified by:
iteratein interfaceXProcessingCollection<K>
-
join
public final <A> A join(BiConsumer<? super KeyValue<K,V>,? super A> joiner, A aggregate)
-
count
public final long count(KeyValue<K,V> entry)
- Specified by:
countin interfaceXGettingCollection<K>
-
countBy
public final long countBy(Predicate<? super KeyValue<K,V>> predicate)
- Specified by:
countByin interfaceXGettingCollection<K>
-
search
public final KeyValue<K,V> search(Predicate<? super KeyValue<K,V>> predicate)
- Specified by:
searchin interfaceXGettingCollection<K>
-
max
public final KeyValue<K,V> max(Comparator<? super KeyValue<K,V>> comparator)
- Specified by:
maxin interfaceXGettingCollection<K>
-
min
public final KeyValue<K,V> min(Comparator<? super KeyValue<K,V>> comparator)
- Specified by:
minin interfaceXGettingCollection<K>
-
containsSearched
public final boolean containsSearched(Predicate<? super KeyValue<K,V>> predicate)
- Specified by:
containsSearchedin interfaceXGettingCollection<K>
-
applies
public final boolean applies(Predicate<? super KeyValue<K,V>> predicate)
- Specified by:
appliesin interfaceXGettingCollection<K>
-
nullContained
public final boolean nullContained()
- Specified by:
nullContainedin interfaceXGettingCollection<K>
-
containsId
public final boolean containsId(KeyValue<K,V> entry)
Description copied from interface:XGettingCollectionSpecial 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 asXGettingCollection.containsSearched(Predicate)with aPredicateimplementation that checks for object identity. The only difference is a performance and usability advantage- Specified by:
containsIdin interfaceXGettingCollection<K>- Parameters:
entry- the element to be searched in the collection by identity.- Returns:
- whether this collection contains exactely the given element.
-
contains
public final boolean contains(KeyValue<K,V> entry)
- Specified by:
containsin interfaceXGettingCollection<K>
-
seek
public final KeyValue<K,V> seek(KeyValue<K,V> sample)
Description copied from interface:XGettingCollectionReturns the first contained element matching the passed sample as defined by the collection's equality logic or null, if no fitting element is contained. (For collections using referential equality, this method is basically just a variation ofXGettingCollection.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)- Specified by:
seekin interfaceXGettingCollection<K>
-
containsAll
public final boolean containsAll(XGettingCollection<? extends KeyValue<K,V>> elements)
- Specified by:
containsAllin interfaceXGettingCollection<K>
-
equals
public final boolean equals(XGettingCollection<? extends KeyValue<K,V>> samples, Equalator<? super KeyValue<K,V>> equalator)
Description copied from interface:XGettingCollectionReturnstrueif the passed collection is of the same type as this collection andthis.equalsContent(list, equalator)yieldstrue.- Specified by:
equalsin interfaceXGettingCollection<K>
-
equalsContent
public final boolean equalsContent(XGettingCollection<? extends KeyValue<K,V>> samples, Equalator<? super KeyValue<K,V>> equalator)
Description copied from interface:XGettingCollectionReturnstrueif 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 inCollection). The core problem of comparing collections that have no defined order is that they aren't really reliably comparable to any other collection.- Specified by:
equalsContentin interfaceXGettingCollection<K>equalator- the equalator to use to determine the equality of each element- Returns:
trueif this list is equal to the passed list, false otherwise
-
intersect
public final <C extends Consumer<? super KeyValue<K,V>>> C intersect(XGettingCollection<? extends KeyValue<K,V>> other, Equalator<? super KeyValue<K,V>> equalator, C target)
- Specified by:
intersectin interfaceXGettingCollection<K>
-
except
public final <C extends Consumer<? super KeyValue<K,V>>> C except(XGettingCollection<? extends KeyValue<K,V>> other, Equalator<? super KeyValue<K,V>> equalator, C target)
- Specified by:
exceptin interfaceXGettingCollection<K>
-
union
public final <C extends Consumer<? super KeyValue<K,V>>> C union(XGettingCollection<? extends KeyValue<K,V>> other, Equalator<? super KeyValue<K,V>> equalator, C target)
- Specified by:
unionin interfaceXGettingCollection<K>
-
copyTo
public final <C extends Consumer<? super KeyValue<K,V>>> C copyTo(C target)
- Specified by:
copyToin interfaceXGettingCollection<K>
-
filterTo
public final <C extends Consumer<? super KeyValue<K,V>>> C filterTo(C target, Predicate<? super KeyValue<K,V>> predicate)
- Specified by:
filterToin interfaceXGettingCollection<K>
-
distinct
public final <C extends Consumer<? super KeyValue<K,V>>> C distinct(C target)
- Specified by:
distinctin interfaceXGettingCollection<K>
-
distinct
public final <C extends Consumer<? super KeyValue<K,V>>> C distinct(C target, Equalator<? super KeyValue<K,V>> equalator)
- Specified by:
distinctin interfaceXGettingCollection<K>
-
nullAdd
public final boolean nullAdd()
- Specified by:
nullAddin interfaceXAddingCollection<K>
-
add
public final boolean add(KeyValue<K,V> entry)
- Specified by:
addin interfaceXAddingCollection<K>
-
addAll
@SafeVarargs public final HashTable<K,V> addAll(KeyValue<K,V>... elements)
- Specified by:
addAllin interfaceXAddGetCollection<K>- Specified by:
addAllin interfaceXAddGetSet<K>- Specified by:
addAllin interfaceXAddingCollection<K>- Specified by:
addAllin interfaceXAddingEnum<K>- Specified by:
addAllin interfaceXAddingSequence<K>- Specified by:
addAllin interfaceXAddingSet<K>- Specified by:
addAllin interfaceXAddingTable<K,V>- Specified by:
addAllin interfaceXBasicEnum<K>- Specified by:
addAllin interfaceXBasicSequence<K>- Specified by:
addAllin interfaceXBasicTable<K,V>- Specified by:
addAllin interfaceXCollection<K>- Specified by:
addAllin interfaceXEnum<K>- Specified by:
addAllin interfaceXExpandingEnum<K>- Specified by:
addAllin interfaceXExpandingSequence<K>- Specified by:
addAllin interfaceXExtendingEnum<K>- Specified by:
addAllin interfaceXExtendingSequence<K>- Specified by:
addAllin interfaceXIncreasingEnum<K>- Specified by:
addAllin interfaceXIncreasingSequence<K>- Specified by:
addAllin interfaceXInputtingEnum<K>- Specified by:
addAllin interfaceXInputtingSequence<K>- Specified by:
addAllin interfaceXInsertingEnum<K>- Specified by:
addAllin interfaceXInsertingSequence<K>- Specified by:
addAllin interfaceXMap<K,V>- Specified by:
addAllin interfaceXPutGetCollection<K>- Specified by:
addAllin interfaceXPutGetEnum<K>- Specified by:
addAllin interfaceXPutGetSequence<K>- Specified by:
addAllin interfaceXPutGetSet<K>- Specified by:
addAllin interfaceXPuttingEnum<K>- Specified by:
addAllin interfaceXPuttingSet<K>- Specified by:
addAllin interfaceXSequence<K>- Specified by:
addAllin interfaceXSet<K>- Specified by:
addAllin interfaceXTable<K,V>
-
addAll
public final HashTable<K,V> addAll(KeyValue<K,V>[] elements, int srcIndex, int srcLength)
- Specified by:
addAllin interfaceXAddGetCollection<K>- Specified by:
addAllin interfaceXAddGetSet<K>- Specified by:
addAllin interfaceXAddingCollection<K>- Specified by:
addAllin interfaceXAddingEnum<K>- Specified by:
addAllin interfaceXAddingSequence<K>- Specified by:
addAllin interfaceXAddingSet<K>- Specified by:
addAllin interfaceXAddingTable<K,V>- Specified by:
addAllin interfaceXBasicEnum<K>- Specified by:
addAllin interfaceXBasicSequence<K>- Specified by:
addAllin interfaceXBasicTable<K,V>- Specified by:
addAllin interfaceXCollection<K>- Specified by:
addAllin interfaceXEnum<K>- Specified by:
addAllin interfaceXExpandingEnum<K>- Specified by:
addAllin interfaceXExpandingSequence<K>- Specified by:
addAllin interfaceXExtendingEnum<K>- Specified by:
addAllin interfaceXExtendingSequence<K>- Specified by:
addAllin interfaceXIncreasingEnum<K>- Specified by:
addAllin interfaceXIncreasingSequence<K>- Specified by:
addAllin interfaceXInputtingEnum<K>- Specified by:
addAllin interfaceXInputtingSequence<K>- Specified by:
addAllin interfaceXInsertingEnum<K>- Specified by:
addAllin interfaceXInsertingSequence<K>- Specified by:
addAllin interfaceXMap<K,V>- Specified by:
addAllin interfaceXPutGetCollection<K>- Specified by:
addAllin interfaceXPutGetEnum<K>- Specified by:
addAllin interfaceXPutGetSequence<K>- Specified by:
addAllin interfaceXPutGetSet<K>- Specified by:
addAllin interfaceXPuttingEnum<K>- Specified by:
addAllin interfaceXPuttingSet<K>- Specified by:
addAllin interfaceXSequence<K>- Specified by:
addAllin interfaceXSet<K>- Specified by:
addAllin interfaceXTable<K,V>
-
addAll
public final HashTable<K,V> addAll(XGettingCollection<? extends KeyValue<K,V>> elements)
- Specified by:
addAllin interfaceXAddGetCollection<K>- Specified by:
addAllin interfaceXAddGetSet<K>- Specified by:
addAllin interfaceXAddingCollection<K>- Specified by:
addAllin interfaceXAddingEnum<K>- Specified by:
addAllin interfaceXAddingSequence<K>- Specified by:
addAllin interfaceXAddingSet<K>- Specified by:
addAllin interfaceXAddingTable<K,V>- Specified by:
addAllin interfaceXBasicEnum<K>- Specified by:
addAllin interfaceXBasicSequence<K>- Specified by:
addAllin interfaceXBasicTable<K,V>- Specified by:
addAllin interfaceXCollection<K>- Specified by:
addAllin interfaceXEnum<K>- Specified by:
addAllin interfaceXExpandingEnum<K>- Specified by:
addAllin interfaceXExpandingSequence<K>- Specified by:
addAllin interfaceXExtendingEnum<K>- Specified by:
addAllin interfaceXExtendingSequence<K>- Specified by:
addAllin interfaceXIncreasingEnum<K>- Specified by:
addAllin interfaceXIncreasingSequence<K>- Specified by:
addAllin interfaceXInputtingEnum<K>- Specified by:
addAllin interfaceXInputtingSequence<K>- Specified by:
addAllin interfaceXInsertingEnum<K>- Specified by:
addAllin interfaceXInsertingSequence<K>- Specified by:
addAllin interfaceXMap<K,V>- Specified by:
addAllin interfaceXPutGetCollection<K>- Specified by:
addAllin interfaceXPutGetEnum<K>- Specified by:
addAllin interfaceXPutGetSequence<K>- Specified by:
addAllin interfaceXPutGetSet<K>- Specified by:
addAllin interfaceXPuttingEnum<K>- Specified by:
addAllin interfaceXPuttingSet<K>- Specified by:
addAllin interfaceXSequence<K>- Specified by:
addAllin interfaceXSet<K>- Specified by:
addAllin interfaceXTable<K,V>
-
nullPut
public final boolean nullPut()
- Specified by:
nullPutin interfaceXPuttingCollection<K>
-
put
public final boolean put(KeyValue<K,V> entry)
- Specified by:
putin interfaceXPuttingCollection<K>
-
addGet
public final KeyValue<K,V> addGet(KeyValue<K,V> entry)
- Specified by:
addGetin interfaceXAddGetSet<K>
-
deduplicate
public final KeyValue<K,V> deduplicate(KeyValue<K,V> entry)
- Specified by:
deduplicatein interfaceXAddGetSet<K>
-
putGet
public final KeyValue<K,V> putGet(KeyValue<K,V> entry)
- Specified by:
putGetin interfaceXPutGetSet<K>
-
replace
public final KeyValue<K,V> replace(KeyValue<K,V> entry)
- Specified by:
replacein interfaceXPutGetSet<K>
-
putAll
@SafeVarargs public final HashTable<K,V> putAll(KeyValue<K,V>... elements)
- Specified by:
putAllin interfaceXBasicEnum<K>- Specified by:
putAllin interfaceXBasicSequence<K>- Specified by:
putAllin interfaceXBasicTable<K,V>- Specified by:
putAllin interfaceXCollection<K>- Specified by:
putAllin interfaceXEnum<K>- Specified by:
putAllin interfaceXExpandingEnum<K>- Specified by:
putAllin interfaceXExpandingSequence<K>- Specified by:
putAllin interfaceXIncreasingEnum<K>- Specified by:
putAllin interfaceXIncreasingSequence<K>- Specified by:
putAllin interfaceXInputtingEnum<K>- Specified by:
putAllin interfaceXInputtingSequence<K>- Specified by:
putAllin interfaceXMap<K,V>- Specified by:
putAllin interfaceXPutGetCollection<K>- Specified by:
putAllin interfaceXPutGetEnum<K>- Specified by:
putAllin interfaceXPutGetSequence<K>- Specified by:
putAllin interfaceXPutGetSet<K>- Specified by:
putAllin interfaceXPuttingCollection<K>- Specified by:
putAllin interfaceXPuttingEnum<K>- Specified by:
putAllin interfaceXPuttingSequence<K>- Specified by:
putAllin interfaceXPuttingSet<K>- Specified by:
putAllin interfaceXSequence<K>- Specified by:
putAllin interfaceXSet<K>- Specified by:
putAllin interfaceXTable<K,V>
-
putAll
public final HashTable<K,V> putAll(KeyValue<K,V>[] elements, int srcIndex, int srcLength)
- Specified by:
putAllin interfaceXBasicEnum<K>- Specified by:
putAllin interfaceXBasicSequence<K>- Specified by:
putAllin interfaceXBasicTable<K,V>- Specified by:
putAllin interfaceXCollection<K>- Specified by:
putAllin interfaceXEnum<K>- Specified by:
putAllin interfaceXExpandingEnum<K>- Specified by:
putAllin interfaceXExpandingSequence<K>- Specified by:
putAllin interfaceXIncreasingEnum<K>- Specified by:
putAllin interfaceXIncreasingSequence<K>- Specified by:
putAllin interfaceXInputtingEnum<K>- Specified by:
putAllin interfaceXInputtingSequence<K>- Specified by:
putAllin interfaceXMap<K,V>- Specified by:
putAllin interfaceXPutGetCollection<K>- Specified by:
putAllin interfaceXPutGetEnum<K>- Specified by:
putAllin interfaceXPutGetSequence<K>- Specified by:
putAllin interfaceXPutGetSet<K>- Specified by:
putAllin interfaceXPuttingCollection<K>- Specified by:
putAllin interfaceXPuttingEnum<K>- Specified by:
putAllin interfaceXPuttingSequence<K>- Specified by:
putAllin interfaceXPuttingSet<K>- Specified by:
putAllin interfaceXSequence<K>- Specified by:
putAllin interfaceXSet<K>- Specified by:
putAllin interfaceXTable<K,V>
-
putAll
public final HashTable<K,V> putAll(XGettingCollection<? extends KeyValue<K,V>> elements)
- Specified by:
putAllin interfaceXBasicEnum<K>- Specified by:
putAllin interfaceXBasicSequence<K>- Specified by:
putAllin interfaceXBasicTable<K,V>- Specified by:
putAllin interfaceXCollection<K>- Specified by:
putAllin interfaceXEnum<K>- Specified by:
putAllin interfaceXExpandingEnum<K>- Specified by:
putAllin interfaceXExpandingSequence<K>- Specified by:
putAllin interfaceXIncreasingEnum<K>- Specified by:
putAllin interfaceXIncreasingSequence<K>- Specified by:
putAllin interfaceXInputtingEnum<K>- Specified by:
putAllin interfaceXInputtingSequence<K>- Specified by:
putAllin interfaceXPutGetCollection<K>- Specified by:
putAllin interfaceXPutGetEnum<K>- Specified by:
putAllin interfaceXPutGetSequence<K>- Specified by:
putAllin interfaceXPutGetSet<K>- Specified by:
putAllin interfaceXPuttingCollection<K>- Specified by:
putAllin interfaceXPuttingEnum<K>- Specified by:
putAllin interfaceXPuttingSequence<K>- Specified by:
putAllin interfaceXPuttingSet<K>- Specified by:
putAllin interfaceXSequence<K>- Specified by:
putAllin interfaceXSet<K>- Specified by:
putAllin interfaceXTable<K,V>
-
remove
public final long remove(KeyValue<K,V> entry)
- Specified by:
removein interfaceXRemovingCollection<K>
-
nullRemove
public final long nullRemove()
- Specified by:
nullRemovein interfaceXRemovingCollection<K>
-
removeBy
public final long removeBy(Predicate<? super KeyValue<K,V>> predicate)
- Specified by:
removeByin interfaceXProcessingCollection<K>
-
retainAll
public final long retainAll(XGettingCollection<? extends KeyValue<K,V>> elements)
- Specified by:
retainAllin interfaceXRemovingCollection<K>
-
process
public final <P extends Consumer<? super KeyValue<K,V>>> P process(P procedure)
- Specified by:
processin interfaceProcessable<K>
-
moveTo
public final <C extends Consumer<? super KeyValue<K,V>>> C moveTo(C target, Predicate<? super KeyValue<K,V>> predicate)
- Specified by:
moveToin interfaceXProcessingCollection<K>
-
removeAll
public final long removeAll(XGettingCollection<? extends KeyValue<K,V>> elements)
- Specified by:
removeAllin interfaceXRemovingCollection<K>
-
removeDuplicates
public final long removeDuplicates()
- Specified by:
removeDuplicatesin interfaceXRemovingCollection<K>
-
removeDuplicates
public final long removeDuplicates(Equalator<? super KeyValue<K,V>> equalator)
- Specified by:
removeDuplicatesin interfaceXProcessingCollection<K>
-
toReversed
public final HashTable<K,V> toReversed()
- Specified by:
toReversedin interfaceXBasicEnum<K>- Specified by:
toReversedin interfaceXBasicSequence<K>- Specified by:
toReversedin interfaceXDecreasingEnum<K>- Specified by:
toReversedin interfaceXDecreasingSequence<K>- Specified by:
toReversedin interfaceXEnum<K>- Specified by:
toReversedin interfaceXGettingEnum<K>- Specified by:
toReversedin interfaceXGettingSequence<K>- Specified by:
toReversedin interfaceXIncreasingEnum<K>- Specified by:
toReversedin interfaceXIncreasingSequence<K>- Specified by:
toReversedin interfaceXProcessingEnum<K>- Specified by:
toReversedin interfaceXProcessingSequence<K>- Specified by:
toReversedin interfaceXPutGetEnum<K>- Specified by:
toReversedin interfaceXPutGetSequence<K>- Specified by:
toReversedin interfaceXSequence<K>- Specified by:
toReversedin interfaceXSettingEnum<K>- Specified by:
toReversedin interfaceXSettingSequence<K>- Specified by:
toReversedin interfaceXSortableEnum<K>- Specified by:
toReversedin interfaceXSortableSequence<K>
-
copySelection
public final <T extends Consumer<? super KeyValue<K,V>>> T copySelection(T target, long... indices)
- Specified by:
copySelectionin interfaceXGettingSequence<K>
-
iterateIndexed
public final <P extends IndexedAcceptor<? super KeyValue<K,V>>> P iterateIndexed(P procedure)
- Specified by:
iterateIndexedin interfaceXIndexIterable<K>
-
get
public final KeyValue<K,V> get()
Description copied from interface:XGettingCollectionGets one element from the collection. If the collection is not orderedXGettingSequence, then it is undefined which element is returned. If the collection is ordered, the element at index 0 is returned.- Specified by:
getin interfaceXGettingCollection<K>- Specified by:
getin interfaceXGettingSequence<K>- Returns:
- the first / any element.
- See Also:
XGettingSequence.at(long),XGettingSequence.first(),XGettingSequence.last()
-
indexOf
public final long indexOf(KeyValue<K,V> entry)
- Specified by:
indexOfin interfaceXGettingSequence<K>
-
indexBy
public final long indexBy(Predicate<? super KeyValue<K,V>> predicate)
- Specified by:
indexByin interfaceXGettingSequence<K>
-
isSorted
public final boolean isSorted(Comparator<? super KeyValue<K,V>> comparator)
- Specified by:
isSortedin interfaceXGettingSequence<K>
-
lastIndexOf
public final long lastIndexOf(KeyValue<K,V> entry)
- Specified by:
lastIndexOfin interfaceXGettingSequence<K>
-
lastIndexBy
public final long lastIndexBy(Predicate<? super KeyValue<K,V>> predicate)
- Specified by:
lastIndexByin interfaceXGettingSequence<K>
-
maxIndex
public final long maxIndex(Comparator<? super KeyValue<K,V>> comparator)
- Specified by:
maxIndexin interfaceXGettingSequence<K>
-
minIndex
public final long minIndex(Comparator<? super KeyValue<K,V>> comparator)
- Specified by:
minIndexin interfaceXGettingSequence<K>
-
scan
public final long scan(Predicate<? super KeyValue<K,V>> predicate)
Description copied from interface:XGettingSequenceIterates through the collection and returns the index of the last element that the passedPredicateapplied to ("scanning").- Specified by:
scanin interfaceXGettingSequence<K>- Returns:
- the index of the last positively tested element.
-
moveSelection
public final <C extends Consumer<? super KeyValue<K,V>>> C moveSelection(C target, long... indices)
- Specified by:
moveSelectionin interfaceXProcessingSequence<K>
-
removeAt
public final KeyValue<K,V> removeAt(long index)
- Specified by:
removeAtin interfaceXProcessingSequence<K>
-
retrieve
public final KeyValue<K,V> retrieve(KeyValue<K,V> entry)
- Specified by:
retrievein interfaceXProcessingCollection<K>
-
retrieveBy
public final KeyValue<K,V> retrieveBy(Predicate<? super KeyValue<K,V>> predicate)
- Specified by:
retrieveByin interfaceXProcessingCollection<K>
-
removeOne
public final boolean removeOne(KeyValue<K,V> entry)
- Specified by:
removeOnein interfaceXRemovingCollection<K>
-
removeRange
public final HashTable<K,V> removeRange(long startIndex, long length)
- Specified by:
removeRangein interfaceXRemovingSequence<K>
-
retainRange
public final HashTable<K,V> retainRange(long startIndex, long length)
- Specified by:
retainRangein interfaceXRemovingSequence<K>
-
removeSelection
public final long removeSelection(long[] indices)
- Specified by:
removeSelectionin interfaceXRemovingSequence<K>
-
toArray
public final Object[] toArray()
- Specified by:
toArrayin interfaceXGettingCollection<K>
-
reverse
public final HashTable<K,V> reverse()
- Specified by:
reversein interfaceXDecreasingEnum<K>- Specified by:
reversein interfaceXDecreasingSequence<K>- Specified by:
reversein interfaceXEnum<K>- Specified by:
reversein interfaceXIncreasingEnum<K>- Specified by:
reversein interfaceXIncreasingSequence<K>- Specified by:
reversein interfaceXOrderingEnum<K>- Specified by:
reversein interfaceXOrderingSequence<K>- Specified by:
reversein interfaceXSettingEnum<K>- Specified by:
reversein interfaceXSettingSequence<K>- Specified by:
reversein interfaceXSortableEnum<K>- Specified by:
reversein interfaceXSortableSequence<K>
-
shiftTo
public final HashTable<K,V> shiftTo(long sourceIndex, long targetIndex)
- Specified by:
shiftToin interfaceXOrderingEnum<K>- Specified by:
shiftToin interfaceXOrderingSequence<K>- Specified by:
shiftToin interfaceXSortableEnum<K>- Specified by:
shiftToin interfaceXSortableSequence<K>
-
shiftTo
public final HashTable<K,V> shiftTo(long sourceIndex, long targetIndex, long length)
- Specified by:
shiftToin interfaceXOrderingEnum<K>- Specified by:
shiftToin interfaceXOrderingSequence<K>- Specified by:
shiftToin interfaceXSortableEnum<K>- Specified by:
shiftToin interfaceXSortableSequence<K>
-
shiftBy
public final HashTable<K,V> shiftBy(long sourceIndex, long distance)
- Specified by:
shiftByin interfaceXOrderingEnum<K>- Specified by:
shiftByin interfaceXOrderingSequence<K>- Specified by:
shiftByin interfaceXSortableEnum<K>- Specified by:
shiftByin interfaceXSortableSequence<K>
-
shiftBy
public final HashTable<K,V> shiftBy(long sourceIndex, long distance, long length)
- Specified by:
shiftByin interfaceXOrderingEnum<K>- Specified by:
shiftByin interfaceXOrderingSequence<K>- Specified by:
shiftByin interfaceXSortableEnum<K>- Specified by:
shiftByin interfaceXSortableSequence<K>
-
swap
public final HashTable<K,V> swap(long indexA, long indexB)
- Specified by:
swapin interfaceXDecreasingEnum<K>- Specified by:
swapin interfaceXDecreasingSequence<K>- Specified by:
swapin interfaceXEnum<K>- Specified by:
swapin interfaceXIncreasingEnum<K>- Specified by:
swapin interfaceXIncreasingSequence<K>- Specified by:
swapin interfaceXOrderingEnum<K>- Specified by:
swapin interfaceXOrderingSequence<K>- Specified by:
swapin interfaceXSettingEnum<K>- Specified by:
swapin interfaceXSettingSequence<K>- Specified by:
swapin interfaceXSortableEnum<K>- Specified by:
swapin interfaceXSortableSequence<K>
-
swap
public final HashTable<K,V> swap(long indexA, long indexB, long length)
- Specified by:
swapin interfaceXDecreasingEnum<K>- Specified by:
swapin interfaceXDecreasingSequence<K>- Specified by:
swapin interfaceXEnum<K>- Specified by:
swapin interfaceXIncreasingEnum<K>- Specified by:
swapin interfaceXIncreasingSequence<K>- Specified by:
swapin interfaceXOrderingEnum<K>- Specified by:
swapin interfaceXOrderingSequence<K>- Specified by:
swapin interfaceXSettingEnum<K>- Specified by:
swapin interfaceXSettingSequence<K>- Specified by:
swapin interfaceXSortableEnum<K>- Specified by:
swapin interfaceXSortableSequence<K>
-
equality
public final HashEqualator<KeyValue<K,V>> equality()
- Specified by:
equalityin interfaceXGettingCollection<K>
-
input
public final boolean input(long index, KeyValue<K,V> element)- Specified by:
inputin interfaceXInputtingSequence<K>
-
inputAll
@SafeVarargs public final long inputAll(long index, KeyValue<K,V>... elements)
- Specified by:
inputAllin interfaceXInputtingSequence<K>
-
inputAll
public final long inputAll(long index, KeyValue<K,V>[] elements, int offset, int length)- Specified by:
inputAllin interfaceXInputtingSequence<K>
-
inputAll
public final long inputAll(long index, XGettingCollection<? extends KeyValue<K,V>> elements)- Specified by:
inputAllin interfaceXInputtingSequence<K>
-
insert
public final boolean insert(long index, KeyValue<K,V> element)- Specified by:
insertin interfaceXInsertingSequence<K>
-
insertAll
@SafeVarargs public final long insertAll(long index, KeyValue<K,V>... elements)
- Specified by:
insertAllin interfaceXInsertingSequence<K>
-
insertAll
public final long insertAll(long index, KeyValue<K,V>[] elements, int offset, int length)- Specified by:
insertAllin interfaceXInsertingSequence<K>
-
insertAll
public final long insertAll(long index, XGettingCollection<? extends KeyValue<K,V>> elements)- Specified by:
insertAllin interfaceXInsertingSequence<K>
-
prepend
public final boolean prepend(KeyValue<K,V> element)
- Specified by:
prependin interfaceXPrependingSequence<K>
-
preput
public final boolean preput(KeyValue<K,V> element)
- Specified by:
preputin interfaceXPreputtingSequence<K>
-
nullInput
public final boolean nullInput(long index)
- Specified by:
nullInputin interfaceXInputtingSequence<K>
-
nullInsert
public final boolean nullInsert(long index)
- Specified by:
nullInsertin interfaceXInsertingSequence<K>
-
nullPrepend
public final boolean nullPrepend()
- Specified by:
nullPrependin interfaceXPrependingSequence<K>
-
prependAll
@SafeVarargs public final HashTable<K,V> prependAll(KeyValue<K,V>... elements)
- Specified by:
prependAllin interfaceXEnum<K>- Specified by:
prependAllin interfaceXExpandingEnum<K>- Specified by:
prependAllin interfaceXExpandingSequence<K>- Specified by:
prependAllin interfaceXExtendingEnum<K>- Specified by:
prependAllin interfaceXExtendingSequence<K>- Specified by:
prependAllin interfaceXIncreasingEnum<K>- Specified by:
prependAllin interfaceXIncreasingSequence<K>- Specified by:
prependAllin interfaceXInputtingEnum<K>- Specified by:
prependAllin interfaceXInputtingSequence<K>- Specified by:
prependAllin interfaceXInsertingEnum<K>- Specified by:
prependAllin interfaceXInsertingSequence<K>- Specified by:
prependAllin interfaceXPrependingEnum<K>- Specified by:
prependAllin interfaceXPrependingSequence<K>- Specified by:
prependAllin interfaceXPreputtingEnum<K>- Specified by:
prependAllin interfaceXPreputtingSequence<K>
-
prependAll
public final HashTable<K,V> prependAll(KeyValue<K,V>[] elements, int srcStartIndex, int srcLength)
- Specified by:
prependAllin interfaceXEnum<K>- Specified by:
prependAllin interfaceXExpandingEnum<K>- Specified by:
prependAllin interfaceXExpandingSequence<K>- Specified by:
prependAllin interfaceXExtendingEnum<K>- Specified by:
prependAllin interfaceXExtendingSequence<K>- Specified by:
prependAllin interfaceXIncreasingEnum<K>- Specified by:
prependAllin interfaceXIncreasingSequence<K>- Specified by:
prependAllin interfaceXInputtingEnum<K>- Specified by:
prependAllin interfaceXInputtingSequence<K>- Specified by:
prependAllin interfaceXInsertingEnum<K>- Specified by:
prependAllin interfaceXInsertingSequence<K>- Specified by:
prependAllin interfaceXPrependingEnum<K>- Specified by:
prependAllin interfaceXPrependingSequence<K>- Specified by:
prependAllin interfaceXPreputtingEnum<K>- Specified by:
prependAllin interfaceXPreputtingSequence<K>
-
prependAll
public final HashTable<K,V> prependAll(XGettingCollection<? extends KeyValue<K,V>> elements)
- Specified by:
prependAllin interfaceXEnum<K>- Specified by:
prependAllin interfaceXExpandingEnum<K>- Specified by:
prependAllin interfaceXExpandingSequence<K>- Specified by:
prependAllin interfaceXExtendingEnum<K>- Specified by:
prependAllin interfaceXExtendingSequence<K>- Specified by:
prependAllin interfaceXIncreasingEnum<K>- Specified by:
prependAllin interfaceXIncreasingSequence<K>- Specified by:
prependAllin interfaceXInputtingEnum<K>- Specified by:
prependAllin interfaceXInputtingSequence<K>- Specified by:
prependAllin interfaceXInsertingEnum<K>- Specified by:
prependAllin interfaceXInsertingSequence<K>- Specified by:
prependAllin interfaceXPrependingEnum<K>- Specified by:
prependAllin interfaceXPrependingSequence<K>- Specified by:
prependAllin interfaceXPreputtingEnum<K>- Specified by:
prependAllin interfaceXPreputtingSequence<K>
-
nullPreput
public final boolean nullPreput()
- Specified by:
nullPreputin interfaceXPreputtingSequence<K>
-
preputAll
@SafeVarargs public final HashTable<K,V> preputAll(KeyValue<K,V>... elements)
- Specified by:
preputAllin interfaceXEnum<K>- Specified by:
preputAllin interfaceXExpandingEnum<K>- Specified by:
preputAllin interfaceXExpandingSequence<K>- Specified by:
preputAllin interfaceXIncreasingEnum<K>- Specified by:
preputAllin interfaceXIncreasingSequence<K>- Specified by:
preputAllin interfaceXInputtingEnum<K>- Specified by:
preputAllin interfaceXInputtingSequence<K>- Specified by:
preputAllin interfaceXPreputtingEnum<K>- Specified by:
preputAllin interfaceXPreputtingSequence<K>
-
preputAll
public final HashTable<K,V> preputAll(KeyValue<K,V>[] elements, int offset, int length)
- Specified by:
preputAllin interfaceXEnum<K>- Specified by:
preputAllin interfaceXExpandingEnum<K>- Specified by:
preputAllin interfaceXExpandingSequence<K>- Specified by:
preputAllin interfaceXIncreasingEnum<K>- Specified by:
preputAllin interfaceXIncreasingSequence<K>- Specified by:
preputAllin interfaceXInputtingEnum<K>- Specified by:
preputAllin interfaceXInputtingSequence<K>- Specified by:
preputAllin interfaceXPreputtingEnum<K>- Specified by:
preputAllin interfaceXPreputtingSequence<K>
-
preputAll
public final HashTable<K,V> preputAll(XGettingCollection<? extends KeyValue<K,V>> elements)
- Specified by:
preputAllin interfaceXEnum<K>- Specified by:
preputAllin interfaceXExpandingEnum<K>- Specified by:
preputAllin interfaceXExpandingSequence<K>- Specified by:
preputAllin interfaceXIncreasingEnum<K>- Specified by:
preputAllin interfaceXIncreasingSequence<K>- Specified by:
preputAllin interfaceXInputtingEnum<K>- Specified by:
preputAllin interfaceXInputtingSequence<K>- Specified by:
preputAllin interfaceXPreputtingEnum<K>- Specified by:
preputAllin interfaceXPreputtingSequence<K>
-
set
public final boolean set(long index, KeyValue<K,V> element)- Specified by:
setin interfaceXSettingSequence<K>
-
setGet
public final KeyValue<K,V> setGet(long index, KeyValue<K,V> element)
- Specified by:
setGetin interfaceXSettingEnum<K>- Specified by:
setGetin interfaceXSettingSequence<K>
-
setFirst
public final void setFirst(KeyValue<K,V> element)
- Specified by:
setFirstin interfaceXSettingEnum<K>- Specified by:
setFirstin interfaceXSettingSequence<K>
-
setLast
public final void setLast(KeyValue<K,V> element)
- Specified by:
setLastin interfaceXSettingEnum<K>- Specified by:
setLastin interfaceXSettingSequence<K>
-
setAll
@SafeVarargs public final HashTable<K,V> setAll(long index, KeyValue<K,V>... elements)
- Specified by:
setAllin interfaceXDecreasingEnum<K>- Specified by:
setAllin interfaceXDecreasingSequence<K>- Specified by:
setAllin interfaceXEnum<K>- Specified by:
setAllin interfaceXSettingEnum<K>- Specified by:
setAllin interfaceXSettingSequence<K>
-
set
public final HashTable<K,V> set(long index, KeyValue<K,V>[] elements, int offset, int length)
- Specified by:
setin interfaceXDecreasingEnum<K>- Specified by:
setin interfaceXDecreasingSequence<K>- Specified by:
setin interfaceXEnum<K>- Specified by:
setin interfaceXSettingEnum<K>- Specified by:
setin interfaceXSettingSequence<K>
-
set
public final HashTable<K,V> set(long index, XGettingSequence<? extends KeyValue<K,V>> elements, long offset, long length)
- Specified by:
setin interfaceXDecreasingEnum<K>- Specified by:
setin interfaceXDecreasingSequence<K>- Specified by:
setin interfaceXEnum<K>- Specified by:
setin interfaceXSettingEnum<K>- Specified by:
setin interfaceXSettingSequence<K>
-
substitute
public long substitute(Function<? super KeyValue<K,V>,? extends KeyValue<K,V>> mapper)
- Specified by:
substitutein interfaceXDecreasingEnum<K>- Specified by:
substitutein interfaceXReplacingCollection<K>
-
-