java.io.Externalizable, java.io.Serializable, LongIterable, FloatLongMap, LongValuesMap, MutableFloatLongMap, MutableLongValuesMap, PrimitiveIterable, MutableFloatKeysMap, FloatKeysMappublic class FloatLongHashMap extends AbstractMutableLongValuesMap implements MutableFloatLongMap, java.io.Externalizable, MutableFloatKeysMap
| Constructor | Description |
|---|---|
FloatLongHashMap() |
|
FloatLongHashMap(int initialCapacity) |
|
FloatLongHashMap(FloatLongMap map) |
| Modifier and Type | Method | 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(java.lang.Object obj) |
Follows the same general contract as
Map.equals(Object). |
MutableLongFloatMap |
flipUniqueValues() |
Return the LongFloatMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
void |
forEachKey(FloatProcedure procedure) |
|
void |
forEachKeyValue(FloatLongProcedure procedure) |
|
long |
get(float key) |
|
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() |
Follows the same general contract as
Map.hashCode(). |
<V> V |
injectInto(V injectedValue,
ObjectLongToObjectFunction<? super V,? extends V> function) |
|
MutableFloatSet |
keySet() |
|
LazyFloatIterable |
keysView() |
|
RichIterable<FloatLongPair> |
keyValuesView() |
|
MutableLongIterator |
longIterator() |
Returns a primitive iterator that can be used to iterate over the LongIterable in an
imperative style.
|
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(java.io.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() |
|
java.lang.String |
toString() |
Returns a string with the elements of this iterable separated by commas with spaces and
enclosed in square brackets.
|
long |
updateValue(float key,
long initialValueIfAbsent,
LongToLongFunction 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(java.io.ObjectOutput out) |
asLazy, average, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListallSatisfy, anySatisfy, appendString, chunk, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, select, size, sum, toArrayisEmpty, notEmpty, sizeallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListcontainsValue, forEachValue, tapputPaircollect, reject, selectappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, 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(java.lang.Object obj)
FloatLongMapMap.equals(Object).equals in interface FloatLongMapequals in class java.lang.Objectpublic int hashCode()
FloatLongMapMap.hashCode().hashCode in interface FloatLongMaphashCode in class java.lang.Objectpublic java.lang.String toString()
PrimitiveIterable
Assert.assertEquals("[]", IntLists.mutable.empty().toString());
Assert.assertEquals("[1]", IntLists.mutable.with(1).toString());
Assert.assertEquals("[1, 2, 3]", IntLists.mutable.with(1, 2, 3).toString());
toString in interface FloatLongMaptoString in interface PrimitiveIterabletoString in class AbstractLongIterableAbstractCollection.toString()public MutableLongIterator longIterator()
LongIterablelongIterator 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 MutableFloatKeysMapclear in interface MutableLongValuesMappublic void put(float key,
long value)
put in interface MutableFloatLongMappublic void putAll(FloatLongMap map)
putAll in interface MutableFloatLongMappublic void removeKey(float key)
removeKey in interface MutableFloatKeysMapremoveKey in interface MutableFloatLongMappublic 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 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 FloatKeysMapcontainsKey in interface FloatLongMappublic void forEachKey(FloatProcedure procedure)
forEachKey in interface FloatKeysMapforEachKey in interface FloatLongMappublic void forEachKeyValue(FloatLongProcedure procedure)
forEachKeyValue in interface FloatLongMappublic LazyFloatIterable keysView()
keysView in interface FloatLongMappublic RichIterable<FloatLongPair> keyValuesView()
keyValuesView in interface FloatLongMappublic MutableLongFloatMap flipUniqueValues()
FloatLongMapflipUniqueValues 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(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()
public MutableFloatSet keySet()
keySet in interface FloatLongMappublic MutableLongCollection values()
values in interface LongValuesMapCopyright © 2004–2018. All rights reserved.