A B C D E F G H I K L M N O P R S T U V
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- allocateIntermediateCapacitySegments(boolean) - Method in class io.timeandspace.smoothie.SmoothieMapBuilder
-
Specifies whether during the growth of SmoothieMaps created with this builder they should first allocate intermediate-capacity segments and then reallocate them as full-capacity segments when needed, or allocate full-capacity segments right away.
- asMapWithMutableIterators() - Method in class io.timeandspace.smoothie.SmoothieMap
B
- build() - Method in class io.timeandspace.smoothie.SmoothieMapBuilder
-
Creates a new
SmoothieMapwith the configurations from this builder.
C
- caseInsensitive() - Static method in class io.timeandspace.collect.Equivalence
-
Returns the
Stringequivalence that usesString.equalsIgnoreCase(java.lang.String)to compare strings. - charSequence() - Static method in class io.timeandspace.collect.Equivalence
-
Returns the equivalence that compares
CharSequences by their contents. - clear() - Method in interface io.timeandspace.collect.map.ObjObjMap
-
Removes all of the mappings from this map.
- clear() - Method in class io.timeandspace.smoothie.SmoothieMap
- compute(K, BiFunction<? super K, ? super V, ? extends V>) - Method in class io.timeandspace.smoothie.SmoothieMap
- compute(K, BiFunction<? super K, ? super V, ? extends V>) - Method in interface io.timeandspace.collect.map.ObjObjMap
-
Attempts to compute a mapping for the specified key and its current mapped value (or
nullif there is no current mapping). - computeIfAbsent(K, Function<? super K, ? extends V>) - Method in class io.timeandspace.smoothie.SmoothieMap
- computeIfAbsent(K, Function<? super K, ? extends V>) - Method in interface io.timeandspace.collect.map.ObjObjMap
-
If the specified key is not already associated with a value, attempts to compute its value using the given mapping function and enters it into this map unless
null. - computeIfPresent(K, BiFunction<? super K, ? super V, ? extends V>) - Method in class io.timeandspace.smoothie.SmoothieMap
- computeIfPresent(K, BiFunction<? super K, ? super V, ? extends V>) - Method in interface io.timeandspace.collect.map.ObjObjMap
-
If the value for the specified key is present and non-null, attempts to compute a new mapping given the key and its current mapped value.
- containsEntry(Object, Object) - Method in interface io.timeandspace.collect.map.ObjObjMap
-
Returns
trueif this map contains a mapping of the given key and value. - containsEntry(Object, Object) - Method in class io.timeandspace.smoothie.SmoothieMap
- containsKey(Object) - Method in interface io.timeandspace.collect.map.ObjObjMap
-
Returns
trueif this map contains a mapping for the specified key. - containsKey(Object) - Method in class io.timeandspace.smoothie.SmoothieMap
- containsValue(Object) - Method in interface io.timeandspace.collect.map.ObjObjMap
-
Returns
trueif this map has one or more keys associated with the specified value. - containsValue(Object) - Method in class io.timeandspace.smoothie.SmoothieMap
D
- defaultEquality() - Static method in class io.timeandspace.collect.Equivalence
-
Returns the default, built-in equivalence in Java, driven by
Object.equals(Object)andObject.hashCode()methods. - defaultKeyEquivalence() - Method in class io.timeandspace.smoothie.SmoothieMapBuilder
-
Sets the
Equivalenceused for comparing keys in SmoothieMaps created with this builder toEquivalence.defaultEquality(). - defaultKeyHashFunction() - Method in class io.timeandspace.smoothie.SmoothieMapBuilder
-
Specifies that SmoothieMaps created with this builder should use the default key hash function which derives a 64-bit hash code from the 32-bit result of calling
Object.hashCode()on the key object (orEquivalence.hash(T), ifkeyEquivalence(Equivalence)is configured for the builder). - defaultOptimizationConfiguration() - Method in class io.timeandspace.smoothie.SmoothieMapBuilder
-
Specifies that SmoothieMaps created using this builder should operate in "mixed" mode which is a compromise between
OptimizationObjective.FOOTPRINTandOptimizationObjective.LOW_GARBAGE. - defaultValueEquivalence() - Method in class io.timeandspace.smoothie.SmoothieMapBuilder
-
Sets the
Equivalenceused for comparing values in SmoothieMaps created with this builder toEquivalence.defaultEquality(). - doShrink(boolean) - Method in class io.timeandspace.smoothie.SmoothieMapBuilder
-
Specifies whether SmoothieMaps created with this builder should automatically shrink, i.
E
- entryEquivalence(Equivalence<K>, Equivalence<V>) - Static method in class io.timeandspace.collect.Equivalence
-
Returns a
Map.Entryequivalence for the given key and value equivalences. - entrySet() - Method in interface io.timeandspace.collect.map.ObjObjMap
-
Returns a
Setview of the mappings contained in this map. - entrySet() - Method in class io.timeandspace.smoothie.SmoothieMap
-
Returns a
Setview of the mappings contained in this map. - entrySet() - Method in class io.timeandspace.smoothie.SwissTable
- equals(Object) - Method in class io.timeandspace.collect.Equivalence
- equals(Object) - Method in interface io.timeandspace.collect.map.ObjObjMap
-
Returns true if the other object is a
Map; this map and the given map have the same size; and for all entries in the other map,containsEntry(e.getKey(), e.getValue())called on this map returns true. - equals(Object) - Method in class io.timeandspace.collect.StatelessEquivalence
-
Returns
trueif the given object is also an instance of this equivalence class. - equals(Object) - Method in class io.timeandspace.smoothie.SmoothieMap
- Equivalence<T> - Class in io.timeandspace.collect
-
A strategy for determining whether two instances are considered equivalent.
- Equivalence() - Constructor for class io.timeandspace.collect.Equivalence
-
Constructor for use by subclasses.
- equivalent(T, T) - Method in class io.timeandspace.collect.Equivalence
-
Returns
trueifaandbare considered equivalent,falseotherwise. - expectedSize(long) - Method in class io.timeandspace.smoothie.SmoothieMapBuilder
-
Specifies the expected steady-state size of each
SmoothieMapcreated using this builder.
F
- FOOTPRINT - io.timeandspace.smoothie.OptimizationObjective
-
In the "footprint" mode,
SmoothieMaphas the lowest possible footprint per entry and the lowest variability of the footprint at different SmoothieMap's sizes. - forEach(BiConsumer<? super K, ? super V>) - Method in interface io.timeandspace.collect.map.ObjObjMap
-
Performs the given action for each entry in this map until all entries have been processed or the action throws an exception.
- forEach(BiConsumer<? super K, ? super V>) - Method in class io.timeandspace.smoothie.SmoothieMap
- forEachWhile(BiPredicate<? super K, ? super V>) - Method in interface io.timeandspace.collect.map.ObjObjMap
-
Checks the given
predicateon each entry in this map until all entries have been processed or the predicate returns false for some entry, or throws an Exception. - forEachWhile(BiPredicate<? super K, ? super V>) - Method in class io.timeandspace.smoothie.SmoothieMap
- forEachWhile(Predicate<? super E>) - Method in interface io.timeandspace.collect.ObjCollection
-
Checks the given
predicateon each element in this collection until all elements have been processed or the predicate returns false for some element, or throws an Exception.
G
- get(Object) - Method in interface io.timeandspace.collect.map.ObjObjMap
-
Returns the value to which the specified key is mapped, or
nullif this map contains no mapping for the key. - get(Object) - Method in class io.timeandspace.smoothie.SmoothieMap
- get(Object) - Method in class io.timeandspace.smoothie.SwissTable
- getInternal(E) - Method in interface io.timeandspace.collect.ObjSet
-
Returns the object held by this set internally and equivalent to the given object
e, if there is one, ornullif this set contains no such element (optional operation). - getInternalKey(Object) - Method in class io.timeandspace.smoothie.SmoothieMap
- getInternalKey(K) - Method in interface io.timeandspace.collect.map.ObjObjMap
-
Returns the key object held by this map internally and equivalent to the specified key, if there is one, or
nullif this map contains no mapping for the key. - getKey() - Method in interface io.timeandspace.collect.map.KeyValue
-
Gets the key of the pair.
- getOrDefault(Object, V) - Method in interface io.timeandspace.collect.map.ObjObjMap
-
Returns the value to which the specified key is mapped, or
defaultValueif this map contains no mapping for the key. - getOrDefault(Object, V) - Method in class io.timeandspace.smoothie.SmoothieMap
- getValue() - Method in interface io.timeandspace.collect.map.KeyValue
-
Gets the value of the pair.
H
- hash(T) - Method in class io.timeandspace.collect.Equivalence
-
Returns a hash code for the given object.
- hashCode() - Method in class io.timeandspace.collect.Equivalence
- hashCode() - Method in interface io.timeandspace.collect.map.ObjObjMap
-
Returns a sum of the following expressions:
keyEquivalence().hash(key) ^ valueEquivalence().hash(value)applied to all entries in this map. - hashCode() - Method in class io.timeandspace.collect.StatelessEquivalence
-
Returns a hash code of this equivalence class.
- hashCode() - Method in class io.timeandspace.smoothie.SmoothieMap
- hashMapSizeInBytes(HashMap<?, ?>) - Static method in class io.timeandspace.smoothie.ObjectSize
I
- identity() - Static method in class io.timeandspace.collect.Equivalence
-
Returns the equivalence that uses
==to compare objects andSystem.identityHashCode(Object)to compute the hash code. - io.timeandspace.collect - package io.timeandspace.collect
- io.timeandspace.collect.map - package io.timeandspace.collect.map
- io.timeandspace.smoothie - package io.timeandspace.smoothie
- isEmpty() - Method in class io.timeandspace.smoothie.SmoothieMap
K
- keyEquivalence() - Method in interface io.timeandspace.collect.map.ObjObjMap
-
Returns the equivalence strategy for keys for this map.
- keyEquivalence() - Method in class io.timeandspace.smoothie.SmoothieMap
- keyEquivalence(Equivalence<K>) - Method in class io.timeandspace.smoothie.SmoothieMapBuilder
-
Sets the
Equivalenceused for comparing keys in SmoothieMaps created with this builder to the given equivalence. - keyHashCode(Object) - Method in class io.timeandspace.smoothie.SwissTable
- keyHashFunction(ToLongFunction<K>) - Method in class io.timeandspace.smoothie.SmoothieMapBuilder
-
Sets a key hash function to be used in SmoothieMaps created with this builder.
- keyHashFunctionFactory(Supplier<ToLongFunction<K>>) - Method in class io.timeandspace.smoothie.SmoothieMapBuilder
-
Sets a factory to obtain a key hash function for each
SmoothieMapcreated using this builder. - keySet() - Method in interface io.timeandspace.collect.map.ObjObjMap
-
Returns a
Setview of the keys contained in this map. - keySet() - Method in class io.timeandspace.smoothie.SmoothieMap
-
Returns a
Setview of the keys contained in this map. - KeyValue<K,V> - Interface in io.timeandspace.collect.map
-
Defines a simple key-value pair.
L
- LOW_GARBAGE - io.timeandspace.smoothie.OptimizationObjective
-
In the "low-garbage" mode,
SmoothieMapgenerates very little garbage (that is, heap objects that later become unreachable and need to be swept by the GC), either during the growth phase or the shrinkage phase (when a map reduces in size after the peak growth).
M
- mappingCount() - Method in interface io.timeandspace.collect.map.ObjObjMap
-
This method is an alias to
ObjObjMap.sizeAsLong(). - merge(K, V, BiFunction<? super V, ? super V, ? extends V>) - Method in class io.timeandspace.smoothie.SmoothieMap
- merge(K, V, BiFunction<? super V, ? super V, ? extends V>) - Method in interface io.timeandspace.collect.map.ObjObjMap
-
If the specified key is not already associated with a value or is associated with null, associates it with the given value.
- minPeakSize(long) - Method in class io.timeandspace.smoothie.SmoothieMapBuilder
-
Specifies the minimum bound of the peak size of each
SmoothieMapcreated using this builder. - mutableEntryIterator() - Method in class io.timeandspace.smoothie.SmoothieMap
-
Returns an iterator over the entries in this SmoothieMap that supports
Iterator.remove()operation. - mutableKeyIterator() - Method in class io.timeandspace.smoothie.SmoothieMap
-
Returns an iterator over the keys in this SmoothieMap that supports
Iterator.remove()operation. - mutableValueIterator() - Method in class io.timeandspace.smoothie.SmoothieMap
-
Returns an iterator over the values in this SmoothieMap that supports
Iterator.remove()operation.
N
- newBuilder() - Static method in class io.timeandspace.smoothie.SmoothieMap
-
Creates a new
SmoothieMapBuilder. - nullableEquivalent(T, T) - Method in class io.timeandspace.collect.Equivalence
-
Returns
trueifaandbare considered equivalent,falseotherwise. - nullableHash(T) - Method in class io.timeandspace.collect.Equivalence
-
Returns a hash code for the given object.
O
- ObjCollection<E> - Interface in io.timeandspace.collect
- ObjectSize - Class in io.timeandspace.smoothie
- ObjObjMap<K,V> - Interface in io.timeandspace.collect.map
-
An extension of the
Mapinterface. - ObjSet<E> - Interface in io.timeandspace.collect
- OptimizationObjective - Enum in io.timeandspace.smoothie
-
OptimizationObjectives correspond to
SmoothieMap's modes of operation which could be configured viaoptimizeFor(io.timeandspace.smoothie.OptimizationObjective)method. - optimizeFor(OptimizationObjective) - Method in class io.timeandspace.smoothie.SmoothieMapBuilder
-
Specifies whether SmoothieMaps created using this builder should operate in the "low-garbage" mode (if
OptimizationObjective.LOW_GARBAGEis passed into this method) or the "footprint" mode (ifOptimizationObjective.FOOTPRINTis passed into this method).
P
- put(K, V) - Method in interface io.timeandspace.collect.map.ObjObjMap
-
Associates the specified value with the specified key in this map.
- put(K, V) - Method in class io.timeandspace.smoothie.SmoothieMap
- put(K, V) - Method in class io.timeandspace.smoothie.SwissTable
- putAll(Map<? extends K, ? extends V>) - Method in interface io.timeandspace.collect.map.ObjObjMap
-
Copies all of the mappings from the specified map to this map.
- putAll(Map<? extends K, ? extends V>) - Method in class io.timeandspace.smoothie.SmoothieMap
- putIfAbsent(K, V) - Method in interface io.timeandspace.collect.map.ObjObjMap
-
If the specified key is not already associated with a value, associates it with the given value and returns
null, else returns the current value. - putIfAbsent(K, V) - Method in class io.timeandspace.smoothie.SmoothieMap
R
- remove(Object) - Method in interface io.timeandspace.collect.map.ObjObjMap
-
Removes the mapping for a key from this map if it is present.
- remove(Object) - Method in class io.timeandspace.smoothie.SmoothieMap
- remove(Object, Object) - Method in interface io.timeandspace.collect.map.ObjObjMap
-
Removes the entry for the specified key only if it is currently mapped to the specified value.
- remove(Object, Object) - Method in class io.timeandspace.smoothie.SmoothieMap
- removeIf(BiPredicate<? super K, ? super V>) - Method in interface io.timeandspace.collect.map.ObjObjMap
-
Removes all of the entries of this map that satisfy the given predicate.
- removeIf(BiPredicate<? super K, ? super V>) - Method in class io.timeandspace.smoothie.SmoothieMap
- replace(K, V) - Method in interface io.timeandspace.collect.map.ObjObjMap
-
Replaces the entry for the specified key only if it is currently mapped to some value.
- replace(K, V) - Method in class io.timeandspace.smoothie.SmoothieMap
- replace(K, V, V) - Method in interface io.timeandspace.collect.map.ObjObjMap
-
Replaces the entry for the specified key only if currently mapped to the specified value.
- replace(K, V, V) - Method in class io.timeandspace.smoothie.SmoothieMap
- replaceAll(BiFunction<? super K, ? super V, ? extends V>) - Method in interface io.timeandspace.collect.map.ObjObjMap
-
Replaces each entry's value with the result of invoking the given function on that entry until all entries have been processed or the function throws an exception.
- replaceAll(BiFunction<? super K, ? super V, ? extends V>) - Method in class io.timeandspace.smoothie.SmoothieMap
S
- size() - Method in class io.timeandspace.smoothie.SmoothieMap
- size() - Method in class io.timeandspace.smoothie.SwissTable
- sizeAsLong() - Method in interface io.timeandspace.collect.map.ObjObjMap
-
Returns the number of entries in the map as a
longvalue (not truncated toInteger.MAX_VALUE, if the map size exceeds it, as returned by theMap.size()method). - sizeAsLong() - Method in interface io.timeandspace.collect.ObjCollection
- sizeAsLong() - Method in class io.timeandspace.smoothie.SmoothieMap
- sizeInBytes() - Method in class io.timeandspace.smoothie.SmoothieMap
-
Returns the approximate footprint of this
SmoothieMapinstance in the heap of the JVM process, in bytes. - SmoothieMap<K,V> - Class in io.timeandspace.smoothie
- SmoothieMapBuilder<K,V> - Class in io.timeandspace.smoothie
-
SmoothieMapBuilder is used to configure and create
SmoothieMaps. - splitBetweenTwoNewSegments(boolean) - Method in class io.timeandspace.smoothie.SmoothieMapBuilder
-
Specifies whether when segments are split in SmoothieMaps created with this builder, the entries from the segment being split should be moved into two new intermediate-capacity segments or the entries should be distributed between the old segment one newly allocated segment (full-capacity or intermediate-capacity).
- StatelessEquivalence<T> - Class in io.timeandspace.collect
-
Base class for stateless
Equivalenceimplementations. - StatelessEquivalence() - Constructor for class io.timeandspace.collect.StatelessEquivalence
-
Constructor for use by subclasses.
- SwissTable<K,V> - Class in io.timeandspace.smoothie
- SwissTable() - Constructor for class io.timeandspace.smoothie.SwissTable
- SwissTable(int) - Constructor for class io.timeandspace.smoothie.SwissTable
T
- toString() - Method in class io.timeandspace.collect.StatelessEquivalence
-
Returns simple name of this equivalence class,
getClass().getSimpleName(). - toString() - Method in class io.timeandspace.smoothie.SmoothieMap
U
- unknownExpectedSize() - Method in class io.timeandspace.smoothie.SmoothieMapBuilder
-
Specifies that the expected size of each
SmoothieMapcreated using this builder is unknown. - unknownMinPeakSize() - Method in class io.timeandspace.smoothie.SmoothieMapBuilder
-
Specifies that the minimum bound of the peak size of each
SmoothieMapcreated using this builder is unknown.
V
- valueEquivalence() - Method in interface io.timeandspace.collect.map.ObjObjMap
-
Returns the equivalence strategy for values for this map.
- valueEquivalence() - Method in class io.timeandspace.smoothie.SmoothieMap
- valueEquivalence(Equivalence<V>) - Method in class io.timeandspace.smoothie.SmoothieMapBuilder
-
Sets the
Equivalenceused for comparing values in SmoothieMaps created with this builder to the given equivalence. - valueOf(String) - Static method in enum io.timeandspace.smoothie.OptimizationObjective
-
Returns the enum constant of this type with the specified name.
- values() - Method in interface io.timeandspace.collect.map.ObjObjMap
-
Returns a
Collectionview of the values contained in this map. - values() - Static method in enum io.timeandspace.smoothie.OptimizationObjective
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Method in class io.timeandspace.smoothie.SmoothieMap
-
Returns a
Collectionview of the values contained in this map.
All Classes All Packages