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)
Follows the same general contract as
Map.equals(Object) . |
MutableFloatIterator |
floatIterator() |
void |
forEachKey(LongProcedure procedure) |
void |
forEachKeyValue(LongFloatProcedure procedure) |
float |
get(long key) |
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()
Follows the same general contract as
Map.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()
Returns a string representation of this PrimitiveIterable.
|
float |
updateValue(long key,
float initialValueIfAbsent,
FloatToFloatFunction 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, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, select, size, sum, toArray
asLazy, average, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
collect, reject, select
containsValue, forEachValue
allSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
isEmpty, notEmpty, size
public 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)
LongFloatMap
Map.equals(Object)
.equals
in interface LongFloatMap
equals
in class Object
public int hashCode()
LongFloatMap
Map.hashCode()
.hashCode
in interface LongFloatMap
hashCode
in class Object
public String toString()
PrimitiveIterable
toString
in interface LongFloatMap
toString
in interface PrimitiveIterable
toString
in class AbstractFloatIterable
public MutableFloatIterator floatIterator()
floatIterator
in interface FloatIterable
floatIterator
in interface MutableFloatValuesMap
public <V> V injectInto(V injectedValue, ObjectFloatToObjectFunction<? super V,? extends V> function)
injectInto
in interface FloatIterable
public void clear()
clear
in interface MutableFloatValuesMap
clear
in interface MutableLongKeysMap
public void put(long key, float value)
put
in interface MutableLongFloatMap
public void putAll(LongFloatMap map)
putAll
in interface MutableLongFloatMap
public void removeKey(long key)
removeKey
in interface MutableLongFloatMap
removeKey
in interface MutableLongKeysMap
public void remove(long key)
remove
in interface MutableLongFloatMap
public float removeKeyIfAbsent(long key, float value)
removeKeyIfAbsent
in interface MutableLongFloatMap
public float getIfAbsentPut(long key, float value)
getIfAbsentPut
in interface MutableLongFloatMap
public float getIfAbsentPut(long key, FloatFunction0 function)
getIfAbsentPut
in interface MutableLongFloatMap
public <P> float getIfAbsentPutWith(long key, FloatFunction<? super P> function, P parameter)
getIfAbsentPutWith
in interface MutableLongFloatMap
public float getIfAbsentPutWithKey(long key, LongToFloatFunction function)
getIfAbsentPutWithKey
in interface MutableLongFloatMap
public float addToValue(long key, float toBeAdded)
addToValue
in interface MutableLongFloatMap
public float updateValue(long key, float initialValueIfAbsent, FloatToFloatFunction function)
updateValue
in interface MutableLongFloatMap
public LongFloatHashMap withKeyValue(long key1, float value1)
withKeyValue
in interface MutableLongFloatMap
public 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 MutableLongFloatMap
public LongFloatHashMap withoutAllKeys(LongIterable keys)
withoutAllKeys
in interface MutableLongFloatMap
public MutableLongFloatMap asUnmodifiable()
asUnmodifiable
in interface MutableLongFloatMap
public MutableLongFloatMap asSynchronized()
asSynchronized
in interface MutableLongFloatMap
public ImmutableLongFloatMap toImmutable()
toImmutable
in interface LongFloatMap
public float get(long key)
get
in interface LongFloatMap
public float getIfAbsent(long key, float ifAbsent)
getIfAbsent
in interface LongFloatMap
public float getOrThrow(long key)
getOrThrow
in interface LongFloatMap
public boolean containsKey(long key)
containsKey
in interface LongFloatMap
containsKey
in interface LongKeysMap
public void forEachKey(LongProcedure procedure)
forEachKey
in interface LongFloatMap
forEachKey
in interface LongKeysMap
public void forEachKeyValue(LongFloatProcedure procedure)
forEachKeyValue
in interface LongFloatMap
public LazyLongIterable keysView()
keysView
in interface LongFloatMap
public RichIterable<LongFloatPair> keyValuesView()
keyValuesView
in interface LongFloatMap
public LongFloatHashMap select(LongFloatPredicate predicate)
select
in interface LongFloatMap
select
in interface MutableLongFloatMap
public LongFloatHashMap reject(LongFloatPredicate predicate)
reject
in interface LongFloatMap
reject
in interface MutableLongFloatMap
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void compact()
public MutableLongSet keySet()
keySet
in interface LongFloatMap
public MutableFloatCollection values()
values
in interface FloatValuesMap
Copyright © 2004–2016. All rights reserved.