public class FloatFloatHashMap extends AbstractMutableFloatValuesMap implements com.gs.collections.api.map.primitive.MutableFloatFloatMap, java.io.Externalizable, MutableFloatKeysMap
AbstractMutableFloatValuesMap.AbstractFloatValuesCollection, AbstractMutableFloatValuesMap.SentinelValues| Constructor and Description |
|---|
FloatFloatHashMap() |
FloatFloatHashMap(com.gs.collections.api.map.primitive.FloatFloatMap map) |
FloatFloatHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
float |
addToValue(float key,
float toBeAdded) |
com.gs.collections.api.map.primitive.MutableFloatFloatMap |
asSynchronized() |
com.gs.collections.api.map.primitive.MutableFloatFloatMap |
asUnmodifiable() |
void |
clear() |
void |
compact()
Rehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels.
|
boolean |
containsKey(float key) |
boolean |
equals(java.lang.Object obj)
Follows the same general contract as
Map.equals(Object). |
com.gs.collections.api.iterator.MutableFloatIterator |
floatIterator() |
void |
forEachKey(com.gs.collections.api.block.procedure.primitive.FloatProcedure procedure) |
void |
forEachKeyValue(com.gs.collections.api.block.procedure.primitive.FloatFloatProcedure procedure) |
float |
get(float key) |
protected float |
getEmptyValue() |
float |
getIfAbsent(float key,
float ifAbsent) |
float |
getIfAbsentPut(float key,
float value) |
float |
getIfAbsentPut(float key,
com.gs.collections.api.block.function.primitive.FloatFunction0 function) |
<P> float |
getIfAbsentPutWith(float key,
com.gs.collections.api.block.function.primitive.FloatFunction<? super P> function,
P parameter) |
float |
getIfAbsentPutWithKey(float key,
com.gs.collections.api.block.function.primitive.FloatToFloatFunction function) |
protected int |
getOccupiedWithData() |
float |
getOrThrow(float key) |
protected AbstractMutableFloatValuesMap.SentinelValues |
getSentinelValues() |
protected int |
getTableSize() |
protected float |
getValueAtIndex(int index) |
int |
hashCode()
Follows the same general contract as
Map.hashCode(). |
<V> V |
injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectFloatToObjectFunction<? super V,? extends V> function) |
protected boolean |
isNonSentinelAtIndex(int index) |
com.gs.collections.api.set.primitive.MutableFloatSet |
keySet() |
com.gs.collections.api.LazyFloatIterable |
keysView() |
com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.FloatFloatPair> |
keyValuesView() |
static FloatFloatHashMap |
newWithKeysValues(float key1,
float value1) |
static FloatFloatHashMap |
newWithKeysValues(float key1,
float value1,
float key2,
float value2) |
static FloatFloatHashMap |
newWithKeysValues(float key1,
float value1,
float key2,
float value2,
float key3,
float value3) |
static FloatFloatHashMap |
newWithKeysValues(float key1,
float value1,
float key2,
float value2,
float key3,
float value3,
float key4,
float value4) |
void |
put(float key,
float value) |
void |
putAll(com.gs.collections.api.map.primitive.FloatFloatMap map) |
void |
readExternal(java.io.ObjectInput in) |
FloatFloatHashMap |
reject(com.gs.collections.api.block.predicate.primitive.FloatFloatPredicate predicate) |
void |
remove(float key) |
void |
removeKey(float key) |
float |
removeKeyIfAbsent(float key,
float value) |
FloatFloatHashMap |
select(com.gs.collections.api.block.predicate.primitive.FloatFloatPredicate predicate) |
protected void |
setSentinelValuesNull() |
com.gs.collections.api.map.primitive.ImmutableFloatFloatMap |
toImmutable() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
float |
updateValue(float key,
float initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.FloatToFloatFunction function) |
com.gs.collections.api.collection.primitive.MutableFloatCollection |
values() |
FloatFloatHashMap |
withKeysValues(float key1,
float value1,
float key2,
float value2) |
FloatFloatHashMap |
withKeysValues(float key1,
float value1,
float key2,
float value2,
float key3,
float value3) |
FloatFloatHashMap |
withKeysValues(float key1,
float value1,
float key2,
float value2,
float key3,
float value3,
float key4,
float value4) |
FloatFloatHashMap |
withKeyValue(float key1,
float value1) |
FloatFloatHashMap |
withoutAllKeys(com.gs.collections.api.FloatIterable keys) |
FloatFloatHashMap |
withoutKey(float key) |
void |
writeExternal(java.io.ObjectOutput out) |
addEmptyKeyValue, addRemovedKeyValue, allSatisfy, anySatisfy, appendString, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, removeEmptyKey, removeRemovedKey, select, size, sum, toArrayappendString, appendString, asLazy, average, containsAll, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListclone, finalize, getClass, notify, notifyAll, wait, wait, waitcollect, reject, selectcontainsValue, forEachValueallSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeisEmpty, notEmpty, sizepublic FloatFloatHashMap()
public FloatFloatHashMap(int initialCapacity)
public FloatFloatHashMap(com.gs.collections.api.map.primitive.FloatFloatMap map)
public static FloatFloatHashMap newWithKeysValues(float key1, float value1)
public static FloatFloatHashMap newWithKeysValues(float key1, float value1, float key2, float value2)
public static FloatFloatHashMap newWithKeysValues(float key1, float value1, float key2, float value2, float key3, float value3)
public static FloatFloatHashMap newWithKeysValues(float key1, float value1, float key2, float value2, float key3, float value3, float key4, float value4)
protected int getOccupiedWithData()
getOccupiedWithData in class AbstractMutableFloatValuesMapprotected AbstractMutableFloatValuesMap.SentinelValues getSentinelValues()
getSentinelValues in class AbstractMutableFloatValuesMapprotected void setSentinelValuesNull()
setSentinelValuesNull in class AbstractMutableFloatValuesMapprotected float getEmptyValue()
getEmptyValue in class AbstractMutableFloatValuesMapprotected int getTableSize()
getTableSize in class AbstractMutableFloatValuesMapprotected float getValueAtIndex(int index)
getValueAtIndex in class AbstractMutableFloatValuesMappublic boolean equals(java.lang.Object obj)
com.gs.collections.api.map.primitive.FloatFloatMapMap.equals(Object).equals in interface com.gs.collections.api.map.primitive.FloatFloatMapequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.map.primitive.FloatFloatMapMap.hashCode().hashCode in interface com.gs.collections.api.map.primitive.FloatFloatMaphashCode in class java.lang.Objectpublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.map.primitive.FloatFloatMaptoString in interface com.gs.collections.api.PrimitiveIterabletoString in class AbstractFloatIterablepublic com.gs.collections.api.iterator.MutableFloatIterator floatIterator()
floatIterator in interface com.gs.collections.api.FloatIterablefloatIterator in interface com.gs.collections.api.map.primitive.MutableFloatValuesMappublic <V> V injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectFloatToObjectFunction<? super V,? extends V> function)
injectInto in interface com.gs.collections.api.FloatIterablepublic void clear()
clear in interface com.gs.collections.api.map.primitive.MutableFloatValuesMapclear in interface MutableFloatKeysMappublic void put(float key,
float value)
put in interface com.gs.collections.api.map.primitive.MutableFloatFloatMappublic void putAll(com.gs.collections.api.map.primitive.FloatFloatMap map)
putAll in interface com.gs.collections.api.map.primitive.MutableFloatFloatMappublic void removeKey(float key)
removeKey in interface com.gs.collections.api.map.primitive.MutableFloatFloatMapremoveKey in interface MutableFloatKeysMappublic void remove(float key)
remove in interface com.gs.collections.api.map.primitive.MutableFloatFloatMappublic float removeKeyIfAbsent(float key,
float value)
removeKeyIfAbsent in interface com.gs.collections.api.map.primitive.MutableFloatFloatMappublic float getIfAbsentPut(float key,
float value)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableFloatFloatMappublic float getIfAbsentPut(float key,
com.gs.collections.api.block.function.primitive.FloatFunction0 function)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableFloatFloatMappublic <P> float getIfAbsentPutWith(float key,
com.gs.collections.api.block.function.primitive.FloatFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface com.gs.collections.api.map.primitive.MutableFloatFloatMappublic float getIfAbsentPutWithKey(float key,
com.gs.collections.api.block.function.primitive.FloatToFloatFunction function)
getIfAbsentPutWithKey in interface com.gs.collections.api.map.primitive.MutableFloatFloatMappublic float addToValue(float key,
float toBeAdded)
addToValue in interface com.gs.collections.api.map.primitive.MutableFloatFloatMappublic float updateValue(float key,
float initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.FloatToFloatFunction function)
updateValue in interface com.gs.collections.api.map.primitive.MutableFloatFloatMappublic FloatFloatHashMap withKeyValue(float key1, float value1)
withKeyValue in interface com.gs.collections.api.map.primitive.MutableFloatFloatMappublic FloatFloatHashMap withKeysValues(float key1, float value1, float key2, float value2)
public FloatFloatHashMap withKeysValues(float key1, float value1, float key2, float value2, float key3, float value3)
public FloatFloatHashMap withKeysValues(float key1, float value1, float key2, float value2, float key3, float value3, float key4, float value4)
public FloatFloatHashMap withoutKey(float key)
withoutKey in interface com.gs.collections.api.map.primitive.MutableFloatFloatMappublic FloatFloatHashMap withoutAllKeys(com.gs.collections.api.FloatIterable keys)
withoutAllKeys in interface com.gs.collections.api.map.primitive.MutableFloatFloatMappublic com.gs.collections.api.map.primitive.MutableFloatFloatMap asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.map.primitive.MutableFloatFloatMappublic com.gs.collections.api.map.primitive.MutableFloatFloatMap asSynchronized()
asSynchronized in interface com.gs.collections.api.map.primitive.MutableFloatFloatMappublic com.gs.collections.api.map.primitive.ImmutableFloatFloatMap toImmutable()
toImmutable in interface com.gs.collections.api.map.primitive.FloatFloatMappublic float get(float key)
get in interface com.gs.collections.api.map.primitive.FloatFloatMappublic float getIfAbsent(float key,
float ifAbsent)
getIfAbsent in interface com.gs.collections.api.map.primitive.FloatFloatMappublic float getOrThrow(float key)
getOrThrow in interface com.gs.collections.api.map.primitive.FloatFloatMappublic boolean containsKey(float key)
containsKey in interface com.gs.collections.api.map.primitive.FloatFloatMapcontainsKey in interface FloatKeysMappublic void forEachKey(com.gs.collections.api.block.procedure.primitive.FloatProcedure procedure)
forEachKey in interface com.gs.collections.api.map.primitive.FloatFloatMapforEachKey in interface FloatKeysMappublic void forEachKeyValue(com.gs.collections.api.block.procedure.primitive.FloatFloatProcedure procedure)
forEachKeyValue in interface com.gs.collections.api.map.primitive.FloatFloatMappublic com.gs.collections.api.LazyFloatIterable keysView()
keysView in interface com.gs.collections.api.map.primitive.FloatFloatMappublic com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.FloatFloatPair> keyValuesView()
keyValuesView in interface com.gs.collections.api.map.primitive.FloatFloatMappublic FloatFloatHashMap select(com.gs.collections.api.block.predicate.primitive.FloatFloatPredicate predicate)
select in interface com.gs.collections.api.map.primitive.FloatFloatMapselect in interface com.gs.collections.api.map.primitive.MutableFloatFloatMappublic FloatFloatHashMap reject(com.gs.collections.api.block.predicate.primitive.FloatFloatPredicate predicate)
reject in interface com.gs.collections.api.map.primitive.FloatFloatMapreject in interface com.gs.collections.api.map.primitive.MutableFloatFloatMappublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic void compact()
protected boolean isNonSentinelAtIndex(int index)
isNonSentinelAtIndex in class AbstractMutableFloatValuesMappublic com.gs.collections.api.set.primitive.MutableFloatSet keySet()
keySet in interface com.gs.collections.api.map.primitive.FloatFloatMappublic com.gs.collections.api.collection.primitive.MutableFloatCollection values()
values in interface com.gs.collections.api.map.primitive.FloatValuesMap