public class FloatIntHashMap extends AbstractMutableIntValuesMap implements com.gs.collections.api.map.primitive.MutableFloatIntMap, java.io.Externalizable, MutableFloatKeysMap
AbstractMutableIntValuesMap.AbstractIntValuesCollection, AbstractMutableIntValuesMap.SentinelValues| Constructor and Description |
|---|
FloatIntHashMap() |
FloatIntHashMap(com.gs.collections.api.map.primitive.FloatIntMap map) |
FloatIntHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
int |
addToValue(float key,
int toBeAdded) |
com.gs.collections.api.map.primitive.MutableFloatIntMap |
asSynchronized() |
com.gs.collections.api.map.primitive.MutableFloatIntMap |
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). |
void |
forEachKey(com.gs.collections.api.block.procedure.primitive.FloatProcedure procedure) |
void |
forEachKeyValue(com.gs.collections.api.block.procedure.primitive.FloatIntProcedure procedure) |
int |
get(float key) |
protected int |
getEmptyValue() |
int |
getIfAbsent(float key,
int ifAbsent) |
int |
getIfAbsentPut(float key,
int value) |
int |
getIfAbsentPut(float key,
com.gs.collections.api.block.function.primitive.IntFunction0 function) |
<P> int |
getIfAbsentPutWith(float key,
com.gs.collections.api.block.function.primitive.IntFunction<? super P> function,
P parameter) |
int |
getIfAbsentPutWithKey(float key,
com.gs.collections.api.block.function.primitive.FloatToIntFunction function) |
protected int |
getOccupiedWithData() |
int |
getOrThrow(float key) |
protected AbstractMutableIntValuesMap.SentinelValues |
getSentinelValues() |
protected int |
getTableSize() |
protected int |
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.ObjectIntToObjectFunction<? super V,? extends V> function) |
com.gs.collections.api.iterator.MutableIntIterator |
intIterator() |
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.FloatIntPair> |
keyValuesView() |
static FloatIntHashMap |
newWithKeysValues(float key1,
int value1) |
static FloatIntHashMap |
newWithKeysValues(float key1,
int value1,
float key2,
int value2) |
static FloatIntHashMap |
newWithKeysValues(float key1,
int value1,
float key2,
int value2,
float key3,
int value3) |
static FloatIntHashMap |
newWithKeysValues(float key1,
int value1,
float key2,
int value2,
float key3,
int value3,
float key4,
int value4) |
void |
put(float key,
int value) |
void |
putAll(com.gs.collections.api.map.primitive.FloatIntMap map) |
void |
readExternal(java.io.ObjectInput in) |
FloatIntHashMap |
reject(com.gs.collections.api.block.predicate.primitive.FloatIntPredicate predicate) |
void |
remove(float key) |
void |
removeKey(float key) |
int |
removeKeyIfAbsent(float key,
int value) |
FloatIntHashMap |
select(com.gs.collections.api.block.predicate.primitive.FloatIntPredicate predicate) |
protected void |
setSentinelValuesNull() |
com.gs.collections.api.map.primitive.ImmutableFloatIntMap |
toImmutable() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
int |
updateValue(float key,
int initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.IntToIntFunction function) |
com.gs.collections.api.collection.primitive.MutableIntCollection |
values() |
FloatIntHashMap |
withKeysValues(float key1,
int value1,
float key2,
int value2) |
FloatIntHashMap |
withKeysValues(float key1,
int value1,
float key2,
int value2,
float key3,
int value3) |
FloatIntHashMap |
withKeysValues(float key1,
int value1,
float key2,
int value2,
float key3,
int value3,
float key4,
int value4) |
FloatIntHashMap |
withKeyValue(float key1,
int value1) |
FloatIntHashMap |
withoutAllKeys(com.gs.collections.api.FloatIterable keys) |
FloatIntHashMap |
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 FloatIntHashMap()
public FloatIntHashMap(int initialCapacity)
public FloatIntHashMap(com.gs.collections.api.map.primitive.FloatIntMap map)
public static FloatIntHashMap newWithKeysValues(float key1, int value1)
public static FloatIntHashMap newWithKeysValues(float key1, int value1, float key2, int value2)
public static FloatIntHashMap newWithKeysValues(float key1, int value1, float key2, int value2, float key3, int value3)
public static FloatIntHashMap newWithKeysValues(float key1, int value1, float key2, int value2, float key3, int value3, float key4, int value4)
protected int getOccupiedWithData()
getOccupiedWithData in class AbstractMutableIntValuesMapprotected AbstractMutableIntValuesMap.SentinelValues getSentinelValues()
getSentinelValues in class AbstractMutableIntValuesMapprotected void setSentinelValuesNull()
setSentinelValuesNull in class AbstractMutableIntValuesMapprotected int getEmptyValue()
getEmptyValue in class AbstractMutableIntValuesMapprotected int getTableSize()
getTableSize in class AbstractMutableIntValuesMapprotected int getValueAtIndex(int index)
getValueAtIndex in class AbstractMutableIntValuesMappublic boolean equals(java.lang.Object obj)
com.gs.collections.api.map.primitive.FloatIntMapMap.equals(Object).equals in interface com.gs.collections.api.map.primitive.FloatIntMapequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.map.primitive.FloatIntMapMap.hashCode().hashCode in interface com.gs.collections.api.map.primitive.FloatIntMaphashCode in class java.lang.Objectpublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.map.primitive.FloatIntMaptoString in interface com.gs.collections.api.PrimitiveIterabletoString in class AbstractIntIterablepublic com.gs.collections.api.iterator.MutableIntIterator intIterator()
intIterator in interface com.gs.collections.api.IntIterableintIterator in interface com.gs.collections.api.map.primitive.MutableIntValuesMappublic <V> V injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectIntToObjectFunction<? super V,? extends V> function)
injectInto in interface com.gs.collections.api.IntIterablepublic void clear()
clear in interface com.gs.collections.api.map.primitive.MutableIntValuesMapclear in interface MutableFloatKeysMappublic void put(float key,
int value)
put in interface com.gs.collections.api.map.primitive.MutableFloatIntMappublic void putAll(com.gs.collections.api.map.primitive.FloatIntMap map)
putAll in interface com.gs.collections.api.map.primitive.MutableFloatIntMappublic void removeKey(float key)
removeKey in interface com.gs.collections.api.map.primitive.MutableFloatIntMapremoveKey in interface MutableFloatKeysMappublic void remove(float key)
remove in interface com.gs.collections.api.map.primitive.MutableFloatIntMappublic int removeKeyIfAbsent(float key,
int value)
removeKeyIfAbsent in interface com.gs.collections.api.map.primitive.MutableFloatIntMappublic int getIfAbsentPut(float key,
int value)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableFloatIntMappublic int getIfAbsentPut(float key,
com.gs.collections.api.block.function.primitive.IntFunction0 function)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableFloatIntMappublic <P> int getIfAbsentPutWith(float key,
com.gs.collections.api.block.function.primitive.IntFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface com.gs.collections.api.map.primitive.MutableFloatIntMappublic int getIfAbsentPutWithKey(float key,
com.gs.collections.api.block.function.primitive.FloatToIntFunction function)
getIfAbsentPutWithKey in interface com.gs.collections.api.map.primitive.MutableFloatIntMappublic int addToValue(float key,
int toBeAdded)
addToValue in interface com.gs.collections.api.map.primitive.MutableFloatIntMappublic int updateValue(float key,
int initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.IntToIntFunction function)
updateValue in interface com.gs.collections.api.map.primitive.MutableFloatIntMappublic FloatIntHashMap withKeyValue(float key1, int value1)
withKeyValue in interface com.gs.collections.api.map.primitive.MutableFloatIntMappublic FloatIntHashMap withKeysValues(float key1, int value1, float key2, int value2)
public FloatIntHashMap withKeysValues(float key1, int value1, float key2, int value2, float key3, int value3)
public FloatIntHashMap withKeysValues(float key1, int value1, float key2, int value2, float key3, int value3, float key4, int value4)
public FloatIntHashMap withoutKey(float key)
withoutKey in interface com.gs.collections.api.map.primitive.MutableFloatIntMappublic FloatIntHashMap withoutAllKeys(com.gs.collections.api.FloatIterable keys)
withoutAllKeys in interface com.gs.collections.api.map.primitive.MutableFloatIntMappublic com.gs.collections.api.map.primitive.MutableFloatIntMap asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.map.primitive.MutableFloatIntMappublic com.gs.collections.api.map.primitive.MutableFloatIntMap asSynchronized()
asSynchronized in interface com.gs.collections.api.map.primitive.MutableFloatIntMappublic com.gs.collections.api.map.primitive.ImmutableFloatIntMap toImmutable()
toImmutable in interface com.gs.collections.api.map.primitive.FloatIntMappublic int get(float key)
get in interface com.gs.collections.api.map.primitive.FloatIntMappublic int getIfAbsent(float key,
int ifAbsent)
getIfAbsent in interface com.gs.collections.api.map.primitive.FloatIntMappublic int getOrThrow(float key)
getOrThrow in interface com.gs.collections.api.map.primitive.FloatIntMappublic boolean containsKey(float key)
containsKey in interface com.gs.collections.api.map.primitive.FloatIntMapcontainsKey in interface FloatKeysMappublic void forEachKey(com.gs.collections.api.block.procedure.primitive.FloatProcedure procedure)
forEachKey in interface com.gs.collections.api.map.primitive.FloatIntMapforEachKey in interface FloatKeysMappublic void forEachKeyValue(com.gs.collections.api.block.procedure.primitive.FloatIntProcedure procedure)
forEachKeyValue in interface com.gs.collections.api.map.primitive.FloatIntMappublic com.gs.collections.api.LazyFloatIterable keysView()
keysView in interface com.gs.collections.api.map.primitive.FloatIntMappublic com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.FloatIntPair> keyValuesView()
keyValuesView in interface com.gs.collections.api.map.primitive.FloatIntMappublic FloatIntHashMap select(com.gs.collections.api.block.predicate.primitive.FloatIntPredicate predicate)
select in interface com.gs.collections.api.map.primitive.FloatIntMapselect in interface com.gs.collections.api.map.primitive.MutableFloatIntMappublic FloatIntHashMap reject(com.gs.collections.api.block.predicate.primitive.FloatIntPredicate predicate)
reject in interface com.gs.collections.api.map.primitive.FloatIntMapreject in interface com.gs.collections.api.map.primitive.MutableFloatIntMappublic 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 AbstractMutableIntValuesMappublic com.gs.collections.api.set.primitive.MutableFloatSet keySet()
keySet in interface com.gs.collections.api.map.primitive.FloatIntMappublic com.gs.collections.api.collection.primitive.MutableIntCollection values()
values in interface com.gs.collections.api.map.primitive.IntValuesMap