public class LongFloatHashMap extends AbstractMutableFloatValuesMap implements MutableLongFloatMap, Externalizable, MutableLongKeysMap
| Constructor and Description |
|---|
LongFloatHashMap() |
LongFloatHashMap(int initialCapacity) |
LongFloatHashMap(LongFloatMap map) |
| Modifier and Type | Method and Description |
|---|---|
float |
addToValue(long key,
float toBeAdded) |
MutableLongFloatMap |
asSynchronized() |
MutableLongFloatMap |
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(long key) |
boolean |
equals(Object obj) |
MutableFloatLongMap |
flipUniqueValues() |
MutableFloatIterator |
floatIterator() |
void |
forEachKey(LongProcedure procedure) |
void |
forEachKeyValue(LongFloatProcedure procedure) |
float |
get(long key) |
float |
getAndPut(long key,
float putValue,
float defaultValue) |
float |
getIfAbsent(long key,
float ifAbsent) |
float |
getIfAbsentPut(long key,
float value) |
float |
getIfAbsentPut(long key,
FloatFunction0 function) |
<P> float |
getIfAbsentPutWith(long key,
FloatFunction<? super P> function,
P parameter) |
float |
getIfAbsentPutWithKey(long key,
LongToFloatFunction function) |
float |
getOrThrow(long key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
ObjectFloatToObjectFunction<? super V,? extends V> function) |
MutableLongSet |
keySet() |
LazyLongIterable |
keysView() |
RichIterable<LongFloatPair> |
keyValuesView() |
static LongFloatHashMap |
newWithKeysValues(long key1,
float value1) |
static LongFloatHashMap |
newWithKeysValues(long key1,
float value1,
long key2,
float value2) |
static LongFloatHashMap |
newWithKeysValues(long key1,
float value1,
long key2,
float value2,
long key3,
float value3) |
static LongFloatHashMap |
newWithKeysValues(long key1,
float value1,
long key2,
float value2,
long key3,
float value3,
long key4,
float value4) |
void |
put(long key,
float value) |
void |
putAll(LongFloatMap map) |
void |
readExternal(ObjectInput in) |
LongFloatHashMap |
reject(LongFloatPredicate predicate) |
void |
remove(long key) |
void |
removeKey(long key) |
float |
removeKeyIfAbsent(long key,
float value) |
LongFloatHashMap |
select(LongFloatPredicate predicate) |
ImmutableLongFloatMap |
toImmutable() |
String |
toString() |
float |
updateValue(long key,
float initialValueIfAbsent,
FloatToFloatFunction function) |
void |
updateValues(LongFloatToFloatFunction function) |
MutableFloatCollection |
values() |
LongFloatHashMap |
withKeysValues(long key1,
float value1,
long key2,
float value2) |
LongFloatHashMap |
withKeysValues(long key1,
float value1,
long key2,
float value2,
long key3,
float value3) |
LongFloatHashMap |
withKeysValues(long key1,
float value1,
long key2,
float value2,
long key3,
float value3,
long key4,
float value4) |
LongFloatHashMap |
withKeyValue(long key1,
float value1) |
LongFloatHashMap |
withoutAllKeys(LongIterable keys) |
LongFloatHashMap |
withoutKey(long 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 LongFloatHashMap()
public LongFloatHashMap(int initialCapacity)
public LongFloatHashMap(LongFloatMap map)
public static LongFloatHashMap newWithKeysValues(long key1, float value1)
public static LongFloatHashMap newWithKeysValues(long key1, float value1, long key2, float value2)
public static LongFloatHashMap newWithKeysValues(long key1, float value1, long key2, float value2, long key3, float value3)
public static LongFloatHashMap newWithKeysValues(long key1, float value1, long key2, float value2, long key3, float value3, long key4, float value4)
public boolean equals(Object obj)
equals in interface LongFloatMapequals in class Objectpublic int hashCode()
hashCode in interface LongFloatMaphashCode in class Objectpublic String toString()
toString in interface LongFloatMaptoString in interface PrimitiveIterabletoString in class AbstractFloatIterablepublic MutableFloatIterator floatIterator()
floatIterator in interface FloatIterablefloatIterator in interface MutableFloatValuesMappublic <V> V injectInto(V injectedValue,
ObjectFloatToObjectFunction<? super V,? extends V> function)
injectInto in interface FloatIterablepublic void clear()
clear in interface MutableFloatValuesMapclear in interface MutableLongKeysMappublic void put(long key,
float value)
put in interface MutableLongFloatMappublic void putAll(LongFloatMap map)
putAll in interface MutableLongFloatMappublic void updateValues(LongFloatToFloatFunction function)
updateValues in interface MutableLongFloatMappublic void removeKey(long key)
removeKey in interface MutableLongFloatMapremoveKey in interface MutableLongKeysMappublic void remove(long key)
remove in interface MutableLongFloatMappublic float removeKeyIfAbsent(long key,
float value)
removeKeyIfAbsent in interface MutableLongFloatMappublic float getIfAbsentPut(long key,
float value)
getIfAbsentPut in interface MutableLongFloatMappublic float getAndPut(long key,
float putValue,
float defaultValue)
getAndPut in interface MutableLongFloatMappublic float getIfAbsentPut(long key,
FloatFunction0 function)
getIfAbsentPut in interface MutableLongFloatMappublic <P> float getIfAbsentPutWith(long key,
FloatFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableLongFloatMappublic float getIfAbsentPutWithKey(long key,
LongToFloatFunction function)
getIfAbsentPutWithKey in interface MutableLongFloatMappublic float addToValue(long key,
float toBeAdded)
addToValue in interface MutableLongFloatMappublic float updateValue(long key,
float initialValueIfAbsent,
FloatToFloatFunction function)
updateValue in interface MutableLongFloatMappublic LongFloatHashMap withKeyValue(long key1, float value1)
withKeyValue in interface MutableLongFloatMappublic LongFloatHashMap withKeysValues(long key1, float value1, long key2, float value2)
public LongFloatHashMap withKeysValues(long key1, float value1, long key2, float value2, long key3, float value3)
public LongFloatHashMap withKeysValues(long key1, float value1, long key2, float value2, long key3, float value3, long key4, float value4)
public LongFloatHashMap withoutKey(long key)
withoutKey in interface MutableLongFloatMappublic LongFloatHashMap withoutAllKeys(LongIterable keys)
withoutAllKeys in interface MutableLongFloatMappublic MutableLongFloatMap asUnmodifiable()
asUnmodifiable in interface MutableLongFloatMappublic MutableLongFloatMap asSynchronized()
asSynchronized in interface MutableLongFloatMappublic ImmutableLongFloatMap toImmutable()
toImmutable in interface LongFloatMappublic float get(long key)
get in interface LongFloatMappublic float getIfAbsent(long key,
float ifAbsent)
getIfAbsent in interface LongFloatMappublic float getOrThrow(long key)
getOrThrow in interface LongFloatMappublic boolean containsKey(long key)
containsKey in interface LongFloatMapcontainsKey in interface LongKeysMappublic void forEachKey(LongProcedure procedure)
forEachKey in interface LongFloatMapforEachKey in interface LongKeysMappublic void forEachKeyValue(LongFloatProcedure procedure)
forEachKeyValue in interface LongFloatMappublic LazyLongIterable keysView()
keysView in interface LongFloatMappublic RichIterable<LongFloatPair> keyValuesView()
keyValuesView in interface LongFloatMappublic MutableFloatLongMap flipUniqueValues()
flipUniqueValues in interface LongFloatMapflipUniqueValues in interface MutableLongFloatMappublic LongFloatHashMap select(LongFloatPredicate predicate)
select in interface LongFloatMapselect in interface MutableLongFloatMappublic LongFloatHashMap reject(LongFloatPredicate predicate)
reject in interface LongFloatMapreject in interface MutableLongFloatMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void compact()
public MutableLongSet keySet()
keySet in interface LongFloatMappublic MutableFloatCollection values()
values in interface FloatValuesMapCopyright © 2004–2022. All rights reserved.