public class LongFloatHashMap extends AbstractMutableFloatValuesMap implements com.gs.collections.api.map.primitive.MutableLongFloatMap, java.io.Externalizable, MutableLongKeysMap
AbstractMutableFloatValuesMap.AbstractFloatValuesCollection, AbstractMutableFloatValuesMap.SentinelValues| Constructor and Description |
|---|
LongFloatHashMap() |
LongFloatHashMap(int initialCapacity) |
LongFloatHashMap(com.gs.collections.api.map.primitive.LongFloatMap map) |
| Modifier and Type | Method and Description |
|---|---|
float |
addToValue(long key,
float toBeAdded) |
com.gs.collections.api.map.primitive.MutableLongFloatMap |
asSynchronized() |
com.gs.collections.api.map.primitive.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(java.lang.Object obj)
Follows the same general contract as
Map.equals(Object). |
com.gs.collections.api.iterator.MutableFloatIterator |
floatIterator() |
void |
forEachKey(com.gs.collections.api.block.procedure.primitive.LongProcedure procedure) |
void |
forEachKeyValue(com.gs.collections.api.block.procedure.primitive.LongFloatProcedure procedure) |
float |
get(long key) |
protected float |
getEmptyValue() |
float |
getIfAbsent(long key,
float ifAbsent) |
float |
getIfAbsentPut(long key,
float value) |
float |
getIfAbsentPut(long key,
com.gs.collections.api.block.function.primitive.FloatFunction0 function) |
<P> float |
getIfAbsentPutWith(long key,
com.gs.collections.api.block.function.primitive.FloatFunction<? super P> function,
P parameter) |
float |
getIfAbsentPutWithKey(long key,
com.gs.collections.api.block.function.primitive.LongToFloatFunction function) |
protected int |
getOccupiedWithData() |
float |
getOrThrow(long key) |
protected AbstractMutableFloatValuesMap.SentinelValues |
getSentinelValues() |
protected int |
getTableSize() |
protected float |
getValueAtIndex(int index) |
int |
hashCode()
Follows the same general contract as
Map.hashCode(). |
<V> V |
injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectFloatToObjectFunction<? super V,? extends V> function) |
protected boolean |
isNonSentinelAtIndex(int index) |
com.gs.collections.api.set.primitive.MutableLongSet |
keySet() |
com.gs.collections.api.LazyLongIterable |
keysView() |
com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.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(com.gs.collections.api.map.primitive.LongFloatMap map) |
void |
readExternal(java.io.ObjectInput in) |
LongFloatHashMap |
reject(com.gs.collections.api.block.predicate.primitive.LongFloatPredicate predicate) |
void |
remove(long key) |
void |
removeKey(long key) |
float |
removeKeyIfAbsent(long key,
float value) |
LongFloatHashMap |
select(com.gs.collections.api.block.predicate.primitive.LongFloatPredicate predicate) |
protected void |
setSentinelValuesNull() |
com.gs.collections.api.map.primitive.ImmutableLongFloatMap |
toImmutable() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
float |
updateValue(long key,
float initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.FloatToFloatFunction function) |
com.gs.collections.api.collection.primitive.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(com.gs.collections.api.LongIterable keys) |
LongFloatHashMap |
withoutKey(long key) |
void |
writeExternal(java.io.ObjectOutput out) |
addEmptyKeyValue, addRemovedKeyValue, allSatisfy, anySatisfy, appendString, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, removeEmptyKey, removeRemovedKey, select, size, sum, toArrayappendString, appendString, asLazy, average, containsAll, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListclone, finalize, getClass, notify, notifyAll, wait, wait, waitcollect, reject, selectcontainsValue, forEachValueallSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeisEmpty, notEmpty, sizepublic LongFloatHashMap()
public LongFloatHashMap(int initialCapacity)
public LongFloatHashMap(com.gs.collections.api.map.primitive.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)
protected int getOccupiedWithData()
getOccupiedWithData in class AbstractMutableFloatValuesMapprotected AbstractMutableFloatValuesMap.SentinelValues getSentinelValues()
getSentinelValues in class AbstractMutableFloatValuesMapprotected void setSentinelValuesNull()
setSentinelValuesNull in class AbstractMutableFloatValuesMapprotected float getEmptyValue()
getEmptyValue in class AbstractMutableFloatValuesMapprotected int getTableSize()
getTableSize in class AbstractMutableFloatValuesMapprotected float getValueAtIndex(int index)
getValueAtIndex in class AbstractMutableFloatValuesMappublic boolean equals(java.lang.Object obj)
com.gs.collections.api.map.primitive.LongFloatMapMap.equals(Object).equals in interface com.gs.collections.api.map.primitive.LongFloatMapequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.map.primitive.LongFloatMapMap.hashCode().hashCode in interface com.gs.collections.api.map.primitive.LongFloatMaphashCode in class java.lang.Objectpublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.map.primitive.LongFloatMaptoString in interface com.gs.collections.api.PrimitiveIterabletoString in class AbstractFloatIterablepublic com.gs.collections.api.iterator.MutableFloatIterator floatIterator()
floatIterator in interface com.gs.collections.api.FloatIterablefloatIterator in interface com.gs.collections.api.map.primitive.MutableFloatValuesMappublic <V> V injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectFloatToObjectFunction<? super V,? extends V> function)
injectInto in interface com.gs.collections.api.FloatIterablepublic void clear()
clear in interface com.gs.collections.api.map.primitive.MutableFloatValuesMapclear in interface MutableLongKeysMappublic void put(long key,
float value)
put in interface com.gs.collections.api.map.primitive.MutableLongFloatMappublic void putAll(com.gs.collections.api.map.primitive.LongFloatMap map)
putAll in interface com.gs.collections.api.map.primitive.MutableLongFloatMappublic void removeKey(long key)
removeKey in interface com.gs.collections.api.map.primitive.MutableLongFloatMapremoveKey in interface MutableLongKeysMappublic void remove(long key)
remove in interface com.gs.collections.api.map.primitive.MutableLongFloatMappublic float removeKeyIfAbsent(long key,
float value)
removeKeyIfAbsent in interface com.gs.collections.api.map.primitive.MutableLongFloatMappublic float getIfAbsentPut(long key,
float value)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableLongFloatMappublic float getIfAbsentPut(long key,
com.gs.collections.api.block.function.primitive.FloatFunction0 function)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableLongFloatMappublic <P> float getIfAbsentPutWith(long key,
com.gs.collections.api.block.function.primitive.FloatFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface com.gs.collections.api.map.primitive.MutableLongFloatMappublic float getIfAbsentPutWithKey(long key,
com.gs.collections.api.block.function.primitive.LongToFloatFunction function)
getIfAbsentPutWithKey in interface com.gs.collections.api.map.primitive.MutableLongFloatMappublic float addToValue(long key,
float toBeAdded)
addToValue in interface com.gs.collections.api.map.primitive.MutableLongFloatMappublic float updateValue(long key,
float initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.FloatToFloatFunction function)
updateValue in interface com.gs.collections.api.map.primitive.MutableLongFloatMappublic LongFloatHashMap withKeyValue(long key1, float value1)
withKeyValue in interface com.gs.collections.api.map.primitive.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 com.gs.collections.api.map.primitive.MutableLongFloatMappublic LongFloatHashMap withoutAllKeys(com.gs.collections.api.LongIterable keys)
withoutAllKeys in interface com.gs.collections.api.map.primitive.MutableLongFloatMappublic com.gs.collections.api.map.primitive.MutableLongFloatMap asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.map.primitive.MutableLongFloatMappublic com.gs.collections.api.map.primitive.MutableLongFloatMap asSynchronized()
asSynchronized in interface com.gs.collections.api.map.primitive.MutableLongFloatMappublic com.gs.collections.api.map.primitive.ImmutableLongFloatMap toImmutable()
toImmutable in interface com.gs.collections.api.map.primitive.LongFloatMappublic float get(long key)
get in interface com.gs.collections.api.map.primitive.LongFloatMappublic float getIfAbsent(long key,
float ifAbsent)
getIfAbsent in interface com.gs.collections.api.map.primitive.LongFloatMappublic float getOrThrow(long key)
getOrThrow in interface com.gs.collections.api.map.primitive.LongFloatMappublic boolean containsKey(long key)
containsKey in interface com.gs.collections.api.map.primitive.LongFloatMapcontainsKey in interface LongKeysMappublic void forEachKey(com.gs.collections.api.block.procedure.primitive.LongProcedure procedure)
forEachKey in interface com.gs.collections.api.map.primitive.LongFloatMapforEachKey in interface LongKeysMappublic void forEachKeyValue(com.gs.collections.api.block.procedure.primitive.LongFloatProcedure procedure)
forEachKeyValue in interface com.gs.collections.api.map.primitive.LongFloatMappublic com.gs.collections.api.LazyLongIterable keysView()
keysView in interface com.gs.collections.api.map.primitive.LongFloatMappublic com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.LongFloatPair> keyValuesView()
keyValuesView in interface com.gs.collections.api.map.primitive.LongFloatMappublic LongFloatHashMap select(com.gs.collections.api.block.predicate.primitive.LongFloatPredicate predicate)
select in interface com.gs.collections.api.map.primitive.LongFloatMapselect in interface com.gs.collections.api.map.primitive.MutableLongFloatMappublic LongFloatHashMap reject(com.gs.collections.api.block.predicate.primitive.LongFloatPredicate predicate)
reject in interface com.gs.collections.api.map.primitive.LongFloatMapreject in interface com.gs.collections.api.map.primitive.MutableLongFloatMappublic 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()
protected boolean isNonSentinelAtIndex(int index)
isNonSentinelAtIndex in class AbstractMutableFloatValuesMappublic com.gs.collections.api.set.primitive.MutableLongSet keySet()
keySet in interface com.gs.collections.api.map.primitive.LongFloatMappublic com.gs.collections.api.collection.primitive.MutableFloatCollection values()
values in interface com.gs.collections.api.map.primitive.FloatValuesMap