public class FloatLongHashMap extends AbstractMutableLongValuesMap implements MutableFloatLongMap, Externalizable, MutableFloatKeysMap
| Constructor and Description |
|---|
FloatLongHashMap() |
FloatLongHashMap(FloatLongMap map) |
FloatLongHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
long |
addToValue(float key,
long toBeAdded) |
MutableFloatLongMap |
asSynchronized() |
MutableFloatLongMap |
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) |
MutableLongFloatMap |
flipUniqueValues() |
void |
forEachKey(FloatProcedure procedure) |
void |
forEachKeyValue(FloatLongProcedure procedure) |
long |
get(float key) |
long |
getAndPut(float key,
long putValue,
long defaultValue) |
long |
getIfAbsent(float key,
long ifAbsent) |
long |
getIfAbsentPut(float key,
long value) |
long |
getIfAbsentPut(float key,
LongFunction0 function) |
<P> long |
getIfAbsentPutWith(float key,
LongFunction<? super P> function,
P parameter) |
long |
getIfAbsentPutWithKey(float key,
FloatToLongFunction function) |
long |
getOrThrow(float key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
ObjectLongToObjectFunction<? super V,? extends V> function) |
MutableFloatSet |
keySet() |
LazyFloatIterable |
keysView() |
RichIterable<FloatLongPair> |
keyValuesView() |
MutableLongIterator |
longIterator() |
static FloatLongHashMap |
newWithKeysValues(float key1,
long value1) |
static FloatLongHashMap |
newWithKeysValues(float key1,
long value1,
float key2,
long value2) |
static FloatLongHashMap |
newWithKeysValues(float key1,
long value1,
float key2,
long value2,
float key3,
long value3) |
static FloatLongHashMap |
newWithKeysValues(float key1,
long value1,
float key2,
long value2,
float key3,
long value3,
float key4,
long value4) |
void |
put(float key,
long value) |
void |
putAll(FloatLongMap map) |
void |
readExternal(ObjectInput in) |
FloatLongHashMap |
reject(FloatLongPredicate predicate) |
void |
remove(float key) |
void |
removeKey(float key) |
long |
removeKeyIfAbsent(float key,
long value) |
FloatLongHashMap |
select(FloatLongPredicate predicate) |
ImmutableFloatLongMap |
toImmutable() |
String |
toString() |
long |
updateValue(float key,
long initialValueIfAbsent,
LongToLongFunction function) |
void |
updateValues(FloatLongToLongFunction function) |
MutableLongCollection |
values() |
FloatLongHashMap |
withKeysValues(float key1,
long value1,
float key2,
long value2) |
FloatLongHashMap |
withKeysValues(float key1,
long value1,
float key2,
long value2,
float key3,
long value3) |
FloatLongHashMap |
withKeysValues(float key1,
long value1,
float key2,
long value2,
float key3,
long value3,
float key4,
long value4) |
FloatLongHashMap |
withKeyValue(float key1,
long value1) |
FloatLongHashMap |
withoutAllKeys(FloatIterable keys) |
FloatLongHashMap |
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 FloatLongHashMap()
public FloatLongHashMap(int initialCapacity)
public FloatLongHashMap(FloatLongMap map)
public static FloatLongHashMap newWithKeysValues(float key1, long value1)
public static FloatLongHashMap newWithKeysValues(float key1, long value1, float key2, long value2)
public static FloatLongHashMap newWithKeysValues(float key1, long value1, float key2, long value2, float key3, long value3)
public static FloatLongHashMap newWithKeysValues(float key1, long value1, float key2, long value2, float key3, long value3, float key4, long value4)
public boolean equals(Object obj)
equals in interface FloatLongMapequals in class Objectpublic int hashCode()
hashCode in interface FloatLongMaphashCode in class Objectpublic String toString()
toString in interface FloatLongMaptoString in interface PrimitiveIterabletoString in class AbstractLongIterablepublic MutableLongIterator longIterator()
longIterator in interface LongIterablelongIterator in interface MutableLongValuesMappublic <V> V injectInto(V injectedValue,
ObjectLongToObjectFunction<? super V,? extends V> function)
injectInto in interface LongIterablepublic void clear()
clear in interface MutableLongValuesMapclear in interface MutableFloatKeysMappublic void put(float key,
long value)
put in interface MutableFloatLongMappublic void putAll(FloatLongMap map)
putAll in interface MutableFloatLongMappublic void updateValues(FloatLongToLongFunction function)
updateValues in interface MutableFloatLongMappublic void removeKey(float key)
removeKey in interface MutableFloatLongMapremoveKey in interface MutableFloatKeysMappublic void remove(float key)
remove in interface MutableFloatLongMappublic long removeKeyIfAbsent(float key,
long value)
removeKeyIfAbsent in interface MutableFloatLongMappublic long getIfAbsentPut(float key,
long value)
getIfAbsentPut in interface MutableFloatLongMappublic long getAndPut(float key,
long putValue,
long defaultValue)
getAndPut in interface MutableFloatLongMappublic long getIfAbsentPut(float key,
LongFunction0 function)
getIfAbsentPut in interface MutableFloatLongMappublic <P> long getIfAbsentPutWith(float key,
LongFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableFloatLongMappublic long getIfAbsentPutWithKey(float key,
FloatToLongFunction function)
getIfAbsentPutWithKey in interface MutableFloatLongMappublic long addToValue(float key,
long toBeAdded)
addToValue in interface MutableFloatLongMappublic long updateValue(float key,
long initialValueIfAbsent,
LongToLongFunction function)
updateValue in interface MutableFloatLongMappublic FloatLongHashMap withKeyValue(float key1, long value1)
withKeyValue in interface MutableFloatLongMappublic FloatLongHashMap withKeysValues(float key1, long value1, float key2, long value2)
public FloatLongHashMap withKeysValues(float key1, long value1, float key2, long value2, float key3, long value3)
public FloatLongHashMap withKeysValues(float key1, long value1, float key2, long value2, float key3, long value3, float key4, long value4)
public FloatLongHashMap withoutKey(float key)
withoutKey in interface MutableFloatLongMappublic FloatLongHashMap withoutAllKeys(FloatIterable keys)
withoutAllKeys in interface MutableFloatLongMappublic MutableFloatLongMap asUnmodifiable()
asUnmodifiable in interface MutableFloatLongMappublic MutableFloatLongMap asSynchronized()
asSynchronized in interface MutableFloatLongMappublic ImmutableFloatLongMap toImmutable()
toImmutable in interface FloatLongMappublic long get(float key)
get in interface FloatLongMappublic long getIfAbsent(float key,
long ifAbsent)
getIfAbsent in interface FloatLongMappublic long getOrThrow(float key)
getOrThrow in interface FloatLongMappublic boolean containsKey(float key)
containsKey in interface FloatLongMapcontainsKey in interface FloatKeysMappublic void forEachKey(FloatProcedure procedure)
forEachKey in interface FloatLongMapforEachKey in interface FloatKeysMappublic void forEachKeyValue(FloatLongProcedure procedure)
forEachKeyValue in interface FloatLongMappublic LazyFloatIterable keysView()
keysView in interface FloatLongMappublic RichIterable<FloatLongPair> keyValuesView()
keyValuesView in interface FloatLongMappublic MutableLongFloatMap flipUniqueValues()
flipUniqueValues in interface FloatLongMapflipUniqueValues in interface MutableFloatLongMappublic FloatLongHashMap select(FloatLongPredicate predicate)
select in interface FloatLongMapselect in interface MutableFloatLongMappublic FloatLongHashMap reject(FloatLongPredicate predicate)
reject in interface FloatLongMapreject in interface MutableFloatLongMappublic 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 FloatLongMappublic MutableLongCollection values()
values in interface LongValuesMapCopyright © 2004–2022. All rights reserved.