public class ShortFloatHashMap extends AbstractMutableFloatValuesMap implements com.gs.collections.api.map.primitive.MutableShortFloatMap, java.io.Externalizable, MutableShortKeysMap
AbstractMutableFloatValuesMap.AbstractFloatValuesCollection, AbstractMutableFloatValuesMap.SentinelValues| Constructor and Description |
|---|
ShortFloatHashMap() |
ShortFloatHashMap(int initialCapacity) |
ShortFloatHashMap(com.gs.collections.api.map.primitive.ShortFloatMap map) |
| Modifier and Type | Method and Description |
|---|---|
float |
addToValue(short key,
float toBeAdded) |
com.gs.collections.api.map.primitive.MutableShortFloatMap |
asSynchronized() |
com.gs.collections.api.map.primitive.MutableShortFloatMap |
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(short 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.ShortProcedure procedure) |
void |
forEachKeyValue(com.gs.collections.api.block.procedure.primitive.ShortFloatProcedure procedure) |
float |
get(short key) |
protected float |
getEmptyValue() |
float |
getIfAbsent(short key,
float ifAbsent) |
float |
getIfAbsentPut(short key,
float value) |
float |
getIfAbsentPut(short key,
com.gs.collections.api.block.function.primitive.FloatFunction0 function) |
<P> float |
getIfAbsentPutWith(short key,
com.gs.collections.api.block.function.primitive.FloatFunction<? super P> function,
P parameter) |
float |
getIfAbsentPutWithKey(short key,
com.gs.collections.api.block.function.primitive.ShortToFloatFunction function) |
protected int |
getOccupiedWithData() |
float |
getOrThrow(short 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.MutableShortSet |
keySet() |
com.gs.collections.api.LazyShortIterable |
keysView() |
com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.ShortFloatPair> |
keyValuesView() |
static ShortFloatHashMap |
newWithKeysValues(short key1,
float value1) |
static ShortFloatHashMap |
newWithKeysValues(short key1,
float value1,
short key2,
float value2) |
static ShortFloatHashMap |
newWithKeysValues(short key1,
float value1,
short key2,
float value2,
short key3,
float value3) |
static ShortFloatHashMap |
newWithKeysValues(short key1,
float value1,
short key2,
float value2,
short key3,
float value3,
short key4,
float value4) |
void |
put(short key,
float value) |
void |
putAll(com.gs.collections.api.map.primitive.ShortFloatMap map) |
void |
readExternal(java.io.ObjectInput in) |
ShortFloatHashMap |
reject(com.gs.collections.api.block.predicate.primitive.ShortFloatPredicate predicate) |
void |
remove(short key) |
void |
removeKey(short key) |
float |
removeKeyIfAbsent(short key,
float value) |
ShortFloatHashMap |
select(com.gs.collections.api.block.predicate.primitive.ShortFloatPredicate predicate) |
protected void |
setSentinelValuesNull() |
com.gs.collections.api.map.primitive.ImmutableShortFloatMap |
toImmutable() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
float |
updateValue(short key,
float initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.FloatToFloatFunction function) |
com.gs.collections.api.collection.primitive.MutableFloatCollection |
values() |
ShortFloatHashMap |
withKeysValues(short key1,
float value1,
short key2,
float value2) |
ShortFloatHashMap |
withKeysValues(short key1,
float value1,
short key2,
float value2,
short key3,
float value3) |
ShortFloatHashMap |
withKeysValues(short key1,
float value1,
short key2,
float value2,
short key3,
float value3,
short key4,
float value4) |
ShortFloatHashMap |
withKeyValue(short key1,
float value1) |
ShortFloatHashMap |
withoutAllKeys(com.gs.collections.api.ShortIterable keys) |
ShortFloatHashMap |
withoutKey(short 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 ShortFloatHashMap()
public ShortFloatHashMap(int initialCapacity)
public ShortFloatHashMap(com.gs.collections.api.map.primitive.ShortFloatMap map)
public static ShortFloatHashMap newWithKeysValues(short key1, float value1)
public static ShortFloatHashMap newWithKeysValues(short key1, float value1, short key2, float value2)
public static ShortFloatHashMap newWithKeysValues(short key1, float value1, short key2, float value2, short key3, float value3)
public static ShortFloatHashMap newWithKeysValues(short key1, float value1, short key2, float value2, short key3, float value3, short 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.ShortFloatMapMap.equals(Object).equals in interface com.gs.collections.api.map.primitive.ShortFloatMapequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.map.primitive.ShortFloatMapMap.hashCode().hashCode in interface com.gs.collections.api.map.primitive.ShortFloatMaphashCode in class java.lang.Objectpublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.map.primitive.ShortFloatMaptoString 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 MutableShortKeysMappublic void put(short key,
float value)
put in interface com.gs.collections.api.map.primitive.MutableShortFloatMappublic void putAll(com.gs.collections.api.map.primitive.ShortFloatMap map)
putAll in interface com.gs.collections.api.map.primitive.MutableShortFloatMappublic void removeKey(short key)
removeKey in interface com.gs.collections.api.map.primitive.MutableShortFloatMapremoveKey in interface MutableShortKeysMappublic void remove(short key)
remove in interface com.gs.collections.api.map.primitive.MutableShortFloatMappublic float removeKeyIfAbsent(short key,
float value)
removeKeyIfAbsent in interface com.gs.collections.api.map.primitive.MutableShortFloatMappublic float getIfAbsentPut(short key,
float value)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableShortFloatMappublic float getIfAbsentPut(short key,
com.gs.collections.api.block.function.primitive.FloatFunction0 function)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableShortFloatMappublic <P> float getIfAbsentPutWith(short key,
com.gs.collections.api.block.function.primitive.FloatFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface com.gs.collections.api.map.primitive.MutableShortFloatMappublic float getIfAbsentPutWithKey(short key,
com.gs.collections.api.block.function.primitive.ShortToFloatFunction function)
getIfAbsentPutWithKey in interface com.gs.collections.api.map.primitive.MutableShortFloatMappublic float addToValue(short key,
float toBeAdded)
addToValue in interface com.gs.collections.api.map.primitive.MutableShortFloatMappublic float updateValue(short key,
float initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.FloatToFloatFunction function)
updateValue in interface com.gs.collections.api.map.primitive.MutableShortFloatMappublic ShortFloatHashMap withKeyValue(short key1, float value1)
withKeyValue in interface com.gs.collections.api.map.primitive.MutableShortFloatMappublic ShortFloatHashMap withKeysValues(short key1, float value1, short key2, float value2)
public ShortFloatHashMap withKeysValues(short key1, float value1, short key2, float value2, short key3, float value3)
public ShortFloatHashMap withKeysValues(short key1, float value1, short key2, float value2, short key3, float value3, short key4, float value4)
public ShortFloatHashMap withoutKey(short key)
withoutKey in interface com.gs.collections.api.map.primitive.MutableShortFloatMappublic ShortFloatHashMap withoutAllKeys(com.gs.collections.api.ShortIterable keys)
withoutAllKeys in interface com.gs.collections.api.map.primitive.MutableShortFloatMappublic com.gs.collections.api.map.primitive.MutableShortFloatMap asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.map.primitive.MutableShortFloatMappublic com.gs.collections.api.map.primitive.MutableShortFloatMap asSynchronized()
asSynchronized in interface com.gs.collections.api.map.primitive.MutableShortFloatMappublic com.gs.collections.api.map.primitive.ImmutableShortFloatMap toImmutable()
toImmutable in interface com.gs.collections.api.map.primitive.ShortFloatMappublic float get(short key)
get in interface com.gs.collections.api.map.primitive.ShortFloatMappublic float getIfAbsent(short key,
float ifAbsent)
getIfAbsent in interface com.gs.collections.api.map.primitive.ShortFloatMappublic float getOrThrow(short key)
getOrThrow in interface com.gs.collections.api.map.primitive.ShortFloatMappublic boolean containsKey(short key)
containsKey in interface com.gs.collections.api.map.primitive.ShortFloatMapcontainsKey in interface ShortKeysMappublic void forEachKey(com.gs.collections.api.block.procedure.primitive.ShortProcedure procedure)
forEachKey in interface com.gs.collections.api.map.primitive.ShortFloatMapforEachKey in interface ShortKeysMappublic void forEachKeyValue(com.gs.collections.api.block.procedure.primitive.ShortFloatProcedure procedure)
forEachKeyValue in interface com.gs.collections.api.map.primitive.ShortFloatMappublic com.gs.collections.api.LazyShortIterable keysView()
keysView in interface com.gs.collections.api.map.primitive.ShortFloatMappublic com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.ShortFloatPair> keyValuesView()
keyValuesView in interface com.gs.collections.api.map.primitive.ShortFloatMappublic ShortFloatHashMap select(com.gs.collections.api.block.predicate.primitive.ShortFloatPredicate predicate)
select in interface com.gs.collections.api.map.primitive.MutableShortFloatMapselect in interface com.gs.collections.api.map.primitive.ShortFloatMappublic ShortFloatHashMap reject(com.gs.collections.api.block.predicate.primitive.ShortFloatPredicate predicate)
reject in interface com.gs.collections.api.map.primitive.MutableShortFloatMapreject in interface com.gs.collections.api.map.primitive.ShortFloatMappublic 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.MutableShortSet keySet()
keySet in interface com.gs.collections.api.map.primitive.ShortFloatMappublic com.gs.collections.api.collection.primitive.MutableFloatCollection values()
values in interface com.gs.collections.api.map.primitive.FloatValuesMap