public class ShortFloatHashMap extends AbstractMutableFloatValuesMap implements org.eclipse.collections.api.map.primitive.MutableShortFloatMap, Externalizable, MutableShortKeysMap
| Constructor and Description |
|---|
ShortFloatHashMap() |
ShortFloatHashMap(int initialCapacity) |
ShortFloatHashMap(org.eclipse.collections.api.map.primitive.ShortFloatMap map) |
| Modifier and Type | Method and Description |
|---|---|
float |
addToValue(short key,
float toBeAdded) |
org.eclipse.collections.api.map.primitive.MutableShortFloatMap |
asSynchronized() |
org.eclipse.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(Object obj) |
org.eclipse.collections.api.iterator.MutableFloatIterator |
floatIterator() |
void |
forEachKey(org.eclipse.collections.api.block.procedure.primitive.ShortProcedure procedure) |
void |
forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ShortFloatProcedure procedure) |
float |
get(short key) |
float |
getIfAbsent(short key,
float ifAbsent) |
float |
getIfAbsentPut(short key,
float value) |
float |
getIfAbsentPut(short key,
org.eclipse.collections.api.block.function.primitive.FloatFunction0 function) |
<P> float |
getIfAbsentPutWith(short key,
org.eclipse.collections.api.block.function.primitive.FloatFunction<? super P> function,
P parameter) |
float |
getIfAbsentPutWithKey(short key,
org.eclipse.collections.api.block.function.primitive.ShortToFloatFunction function) |
float |
getOrThrow(short key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectFloatToObjectFunction<? super V,? extends V> function) |
org.eclipse.collections.api.set.primitive.MutableShortSet |
keySet() |
org.eclipse.collections.api.LazyShortIterable |
keysView() |
org.eclipse.collections.api.RichIterable<org.eclipse.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(org.eclipse.collections.api.map.primitive.ShortFloatMap map) |
void |
readExternal(ObjectInput in) |
ShortFloatHashMap |
reject(org.eclipse.collections.api.block.predicate.primitive.ShortFloatPredicate predicate) |
void |
remove(short key) |
void |
removeKey(short key) |
float |
removeKeyIfAbsent(short key,
float value) |
ShortFloatHashMap |
select(org.eclipse.collections.api.block.predicate.primitive.ShortFloatPredicate predicate) |
org.eclipse.collections.api.map.primitive.ImmutableShortFloatMap |
toImmutable() |
String |
toString() |
float |
updateValue(short key,
float initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.FloatToFloatFunction function) |
org.eclipse.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(org.eclipse.collections.api.ShortIterable keys) |
ShortFloatHashMap |
withoutKey(short 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, toArrayappendString, appendString, asLazy, average, containsAll, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListcollect, 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(org.eclipse.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)
public boolean equals(Object obj)
public int hashCode()
public String toString()
toString in interface org.eclipse.collections.api.map.primitive.ShortFloatMaptoString in interface org.eclipse.collections.api.PrimitiveIterabletoString in class AbstractFloatIterablepublic org.eclipse.collections.api.iterator.MutableFloatIterator floatIterator()
floatIterator in interface org.eclipse.collections.api.FloatIterablefloatIterator in interface org.eclipse.collections.api.map.primitive.MutableFloatValuesMappublic <V> V injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectFloatToObjectFunction<? super V,? extends V> function)
injectInto in interface org.eclipse.collections.api.FloatIterablepublic void clear()
clear in interface org.eclipse.collections.api.map.primitive.MutableFloatValuesMapclear in interface MutableShortKeysMappublic void put(short key,
float value)
put in interface org.eclipse.collections.api.map.primitive.MutableShortFloatMappublic void putAll(org.eclipse.collections.api.map.primitive.ShortFloatMap map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableShortFloatMappublic void removeKey(short key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableShortFloatMapremoveKey in interface MutableShortKeysMappublic void remove(short key)
remove in interface org.eclipse.collections.api.map.primitive.MutableShortFloatMappublic float removeKeyIfAbsent(short key,
float value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableShortFloatMappublic float getIfAbsentPut(short key,
float value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableShortFloatMappublic float getIfAbsentPut(short key,
org.eclipse.collections.api.block.function.primitive.FloatFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableShortFloatMappublic <P> float getIfAbsentPutWith(short key,
org.eclipse.collections.api.block.function.primitive.FloatFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableShortFloatMappublic float getIfAbsentPutWithKey(short key,
org.eclipse.collections.api.block.function.primitive.ShortToFloatFunction function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableShortFloatMappublic float addToValue(short key,
float toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableShortFloatMappublic float updateValue(short key,
float initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.FloatToFloatFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableShortFloatMappublic ShortFloatHashMap withKeyValue(short key1, float value1)
withKeyValue in interface org.eclipse.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 org.eclipse.collections.api.map.primitive.MutableShortFloatMappublic ShortFloatHashMap withoutAllKeys(org.eclipse.collections.api.ShortIterable keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableShortFloatMappublic org.eclipse.collections.api.map.primitive.MutableShortFloatMap asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableShortFloatMappublic org.eclipse.collections.api.map.primitive.MutableShortFloatMap asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableShortFloatMappublic org.eclipse.collections.api.map.primitive.ImmutableShortFloatMap toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.ShortFloatMappublic float get(short key)
get in interface org.eclipse.collections.api.map.primitive.ShortFloatMappublic float getIfAbsent(short key,
float ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.ShortFloatMappublic float getOrThrow(short key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.ShortFloatMappublic boolean containsKey(short key)
containsKey in interface org.eclipse.collections.api.map.primitive.ShortFloatMapcontainsKey in interface ShortKeysMappublic void forEachKey(org.eclipse.collections.api.block.procedure.primitive.ShortProcedure procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.ShortFloatMapforEachKey in interface ShortKeysMappublic void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ShortFloatProcedure procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.ShortFloatMappublic org.eclipse.collections.api.LazyShortIterable keysView()
keysView in interface org.eclipse.collections.api.map.primitive.ShortFloatMappublic org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.ShortFloatPair> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.ShortFloatMappublic ShortFloatHashMap select(org.eclipse.collections.api.block.predicate.primitive.ShortFloatPredicate predicate)
select in interface org.eclipse.collections.api.map.primitive.MutableShortFloatMapselect in interface org.eclipse.collections.api.map.primitive.ShortFloatMappublic ShortFloatHashMap reject(org.eclipse.collections.api.block.predicate.primitive.ShortFloatPredicate predicate)
reject in interface org.eclipse.collections.api.map.primitive.MutableShortFloatMapreject in interface org.eclipse.collections.api.map.primitive.ShortFloatMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void compact()
public org.eclipse.collections.api.set.primitive.MutableShortSet keySet()
keySet in interface org.eclipse.collections.api.map.primitive.ShortFloatMappublic org.eclipse.collections.api.collection.primitive.MutableFloatCollection values()
values in interface org.eclipse.collections.api.map.primitive.FloatValuesMapCopyright © 2004–2018. All rights reserved.