public class FloatIntHashMap extends AbstractMutableIntValuesMap implements MutableFloatIntMap, Externalizable, MutableFloatKeysMap
| Constructor and Description |
|---|
FloatIntHashMap() |
FloatIntHashMap(FloatIntMap map) |
FloatIntHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
int |
addToValue(float key,
int toBeAdded) |
MutableFloatIntMap |
asSynchronized() |
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(Object obj) |
MutableIntFloatMap |
flipUniqueValues() |
void |
forEachKey(FloatProcedure procedure) |
void |
forEachKeyValue(FloatIntProcedure procedure) |
int |
get(float key) |
int |
getAndPut(float key,
int putValue,
int defaultValue) |
int |
getIfAbsent(float key,
int ifAbsent) |
int |
getIfAbsentPut(float key,
int value) |
int |
getIfAbsentPut(float key,
IntFunction0 function) |
<P> int |
getIfAbsentPutWith(float key,
IntFunction<? super P> function,
P parameter) |
int |
getIfAbsentPutWithKey(float key,
FloatToIntFunction function) |
int |
getOrThrow(float key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
ObjectIntToObjectFunction<? super V,? extends V> function) |
MutableIntIterator |
intIterator() |
MutableFloatSet |
keySet() |
LazyFloatIterable |
keysView() |
RichIterable<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(FloatIntMap map) |
void |
readExternal(ObjectInput in) |
FloatIntHashMap |
reject(FloatIntPredicate predicate) |
void |
remove(float key) |
void |
removeKey(float key) |
int |
removeKeyIfAbsent(float key,
int value) |
FloatIntHashMap |
select(FloatIntPredicate predicate) |
ImmutableFloatIntMap |
toImmutable() |
String |
toString() |
int |
updateValue(float key,
int initialValueIfAbsent,
IntToIntFunction function) |
void |
updateValues(FloatIntToIntFunction function) |
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(FloatIterable keys) |
FloatIntHashMap |
withoutKey(float key) |
void |
writeExternal(ObjectOutput out) |
allSatisfy, anySatisfy, appendString, chunk, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEachValue, isEmpty, max, min, notEmpty, reject, select, size, sum, toArray, toArrayasLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListputPair, withAllKeyValuesinjectIntoKeyValuecollect, reject, selectcontainsValue, forEachValue, tapallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeisEmpty, notEmpty, sizepublic FloatIntHashMap()
public FloatIntHashMap(int initialCapacity)
public FloatIntHashMap(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)
public boolean equals(Object obj)
equals in interface FloatIntMapequals in class Objectpublic int hashCode()
hashCode in interface FloatIntMaphashCode in class Objectpublic String toString()
toString in interface FloatIntMaptoString in interface PrimitiveIterabletoString in class AbstractIntIterablepublic MutableIntIterator intIterator()
intIterator in interface IntIterableintIterator in interface MutableIntValuesMappublic <V> V injectInto(V injectedValue,
ObjectIntToObjectFunction<? super V,? extends V> function)
injectInto in interface IntIterablepublic void clear()
clear in interface MutableIntValuesMapclear in interface MutableFloatKeysMappublic void put(float key,
int value)
put in interface MutableFloatIntMappublic void putAll(FloatIntMap map)
putAll in interface MutableFloatIntMappublic void updateValues(FloatIntToIntFunction function)
updateValues in interface MutableFloatIntMappublic void removeKey(float key)
removeKey in interface MutableFloatIntMapremoveKey in interface MutableFloatKeysMappublic void remove(float key)
remove in interface MutableFloatIntMappublic int removeKeyIfAbsent(float key,
int value)
removeKeyIfAbsent in interface MutableFloatIntMappublic int getIfAbsentPut(float key,
int value)
getIfAbsentPut in interface MutableFloatIntMappublic int getAndPut(float key,
int putValue,
int defaultValue)
getAndPut in interface MutableFloatIntMappublic int getIfAbsentPut(float key,
IntFunction0 function)
getIfAbsentPut in interface MutableFloatIntMappublic <P> int getIfAbsentPutWith(float key,
IntFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableFloatIntMappublic int getIfAbsentPutWithKey(float key,
FloatToIntFunction function)
getIfAbsentPutWithKey in interface MutableFloatIntMappublic int addToValue(float key,
int toBeAdded)
addToValue in interface MutableFloatIntMappublic int updateValue(float key,
int initialValueIfAbsent,
IntToIntFunction function)
updateValue in interface MutableFloatIntMappublic FloatIntHashMap withKeyValue(float key1, int value1)
withKeyValue in interface 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 MutableFloatIntMappublic FloatIntHashMap withoutAllKeys(FloatIterable keys)
withoutAllKeys in interface MutableFloatIntMappublic MutableFloatIntMap asUnmodifiable()
asUnmodifiable in interface MutableFloatIntMappublic MutableFloatIntMap asSynchronized()
asSynchronized in interface MutableFloatIntMappublic ImmutableFloatIntMap toImmutable()
toImmutable in interface FloatIntMappublic int get(float key)
get in interface FloatIntMappublic int getIfAbsent(float key,
int ifAbsent)
getIfAbsent in interface FloatIntMappublic int getOrThrow(float key)
getOrThrow in interface FloatIntMappublic boolean containsKey(float key)
containsKey in interface FloatIntMapcontainsKey in interface FloatKeysMappublic void forEachKey(FloatProcedure procedure)
forEachKey in interface FloatIntMapforEachKey in interface FloatKeysMappublic void forEachKeyValue(FloatIntProcedure procedure)
forEachKeyValue in interface FloatIntMappublic LazyFloatIterable keysView()
keysView in interface FloatIntMappublic RichIterable<FloatIntPair> keyValuesView()
keyValuesView in interface FloatIntMappublic MutableIntFloatMap flipUniqueValues()
flipUniqueValues in interface FloatIntMapflipUniqueValues in interface MutableFloatIntMappublic FloatIntHashMap select(FloatIntPredicate predicate)
select in interface FloatIntMapselect in interface MutableFloatIntMappublic FloatIntHashMap reject(FloatIntPredicate predicate)
reject in interface FloatIntMapreject in interface MutableFloatIntMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void compact()
public MutableFloatSet keySet()
keySet in interface FloatIntMappublic MutableIntCollection values()
values in interface IntValuesMapCopyright © 2004–2022. All rights reserved.