Class ShortFloatHashMap
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractFloatIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableFloatValuesMap
org.eclipse.collections.impl.map.mutable.primitive.ShortFloatHashMap
- All Implemented Interfaces:
Externalizable,Serializable,FloatIterable,FloatValuesMap,MutableFloatValuesMap,MutableShortFloatMap,ShortFloatMap,PrimitiveIterable,MutableShortKeysMap,ShortKeysMap
public class ShortFloatHashMap
extends AbstractMutableFloatValuesMap
implements MutableShortFloatMap, Externalizable, MutableShortKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloataddToValue(short key, float toBeAdded) booleanallSatisfyKeyValue(ShortFloatPredicate predicate) voidclear()voidcompact()Deprecated.booleancontainsKey(short key) booleanvoidforEachKey(ShortProcedure procedure) voidforEachKeyValue(ShortFloatProcedure procedure) floatget(short key) floatgetAndPut(short key, float putValue, float defaultValue) floatgetIfAbsent(short key, float ifAbsent) floatgetIfAbsentPut(short key, float value) floatgetIfAbsentPut(short key, FloatFunction0 function) <P> floatgetIfAbsentPutWith(short key, FloatFunction<? super P> function, P parameter) floatgetIfAbsentPutWithKey(short key, ShortToFloatFunction function) floatgetOrThrow(short key) inthashCode()<V> VinjectInto(V injectedValue, ObjectFloatToObjectFunction<? super V, ? extends V> function) keySet()keysView()static ShortFloatHashMapnewWithKeysValues(short key1, float value1) static ShortFloatHashMapnewWithKeysValues(short key1, float value1, short key2, float value2) static ShortFloatHashMapnewWithKeysValues(short key1, float value1, short key2, float value2, short key3, float value3) static ShortFloatHashMapnewWithKeysValues(short key1, float value1, short key2, float value2, short key3, float value3, short key4, float value4) voidput(short key, float value) voidputAll(ShortFloatMap map) voidreject(ShortFloatPredicate predicate) voidremove(short key) voidremoveKey(short key) floatremoveKeyIfAbsent(short key, float value) select(ShortFloatPredicate predicate) toString()booleanfloatupdateValue(short key, float initialValueIfAbsent, FloatToFloatFunction function) voidupdateValues(ShortFloatToFloatFunction function) values()withKeysValues(short key1, float value1, short key2, float value2) withKeysValues(short key1, float value1, short key2, float value2, short key3, float value3) withKeysValues(short key1, float value1, short key2, float value2, short key3, float value3, short key4, float value4) withKeyValue(short key1, float value1) withoutAllKeys(ShortIterable keys) withoutKey(short key) voidMethods inherited from class org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableFloatValuesMap
allSatisfy, anySatisfy, appendString, chunk, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEachValue, isEmpty, max, min, notEmpty, reject, select, size, sum, toArray, toArrayMethods inherited from class org.eclipse.collections.impl.primitive.AbstractFloatIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListMethods inherited from interface org.eclipse.collections.api.FloatIterable
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByMethods inherited from interface org.eclipse.collections.api.map.primitive.FloatValuesMap
containsValue, forEachValue, tapMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableFloatValuesMap
collect, reject, selectMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableShortFloatMap
putPair, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.map.primitive.ShortFloatMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.impl.map.primitive.ShortKeysMap
isEmpty, notEmpty, size
-
Constructor Details
-
ShortFloatHashMap
public ShortFloatHashMap() -
ShortFloatHashMap
public ShortFloatHashMap(int initialCapacity) -
ShortFloatHashMap
-
-
Method Details
-
newWithKeysValues
-
newWithKeysValues
public static ShortFloatHashMap newWithKeysValues(short key1, float value1, short key2, float value2) -
newWithKeysValues
public static ShortFloatHashMap newWithKeysValues(short key1, float value1, short key2, float value2, short key3, float value3) -
newWithKeysValues
public static ShortFloatHashMap newWithKeysValues(short key1, float value1, short key2, float value2, short key3, float value3, short key4, float value4) -
equals
- Specified by:
equalsin interfaceShortFloatMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceShortFloatMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfacePrimitiveIterable- Specified by:
toStringin interfaceShortFloatMap- Overrides:
toStringin classAbstractFloatIterable
-
floatIterator
- Specified by:
floatIteratorin interfaceFloatIterable- Specified by:
floatIteratorin interfaceMutableFloatValuesMap
-
injectInto
public <V> V injectInto(V injectedValue, ObjectFloatToObjectFunction<? super V, ? extends V> function) - Specified by:
injectIntoin interfaceFloatIterable
-
clear
public void clear()- Specified by:
clearin interfaceMutableFloatValuesMap- Specified by:
clearin interfaceMutableShortKeysMap
-
put
public void put(short key, float value) - Specified by:
putin interfaceMutableShortFloatMap
-
putAll
- Specified by:
putAllin interfaceMutableShortFloatMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableShortFloatMap
-
removeKey
public void removeKey(short key) - Specified by:
removeKeyin interfaceMutableShortFloatMap- Specified by:
removeKeyin interfaceMutableShortKeysMap
-
remove
public void remove(short key) - Specified by:
removein interfaceMutableShortFloatMap
-
removeKeyIfAbsent
public float removeKeyIfAbsent(short key, float value) - Specified by:
removeKeyIfAbsentin interfaceMutableShortFloatMap
-
getIfAbsentPut
public float getIfAbsentPut(short key, float value) - Specified by:
getIfAbsentPutin interfaceMutableShortFloatMap
-
getAndPut
public float getAndPut(short key, float putValue, float defaultValue) - Specified by:
getAndPutin interfaceMutableShortFloatMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableShortFloatMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableShortFloatMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableShortFloatMap
-
addToValue
public float addToValue(short key, float toBeAdded) - Specified by:
addToValuein interfaceMutableShortFloatMap
-
updateValue
- Specified by:
updateValuein interfaceMutableShortFloatMap
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableShortFloatMap
-
withKeysValues
-
withKeysValues
public ShortFloatHashMap withKeysValues(short key1, float value1, short key2, float value2, short key3, float value3) -
withKeysValues
public ShortFloatHashMap withKeysValues(short key1, float value1, short key2, float value2, short key3, float value3, short key4, float value4) -
withoutKey
- Specified by:
withoutKeyin interfaceMutableShortFloatMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableShortFloatMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableShortFloatMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableShortFloatMap
-
toImmutable
- Specified by:
toImmutablein interfaceShortFloatMap
-
get
public float get(short key) - Specified by:
getin interfaceShortFloatMap
-
getIfAbsent
public float getIfAbsent(short key, float ifAbsent) - Specified by:
getIfAbsentin interfaceShortFloatMap
-
getOrThrow
public float getOrThrow(short key) - Specified by:
getOrThrowin interfaceShortFloatMap
-
containsKey
public boolean containsKey(short key) - Specified by:
containsKeyin interfaceShortFloatMap- Specified by:
containsKeyin interfaceShortKeysMap
-
forEachKey
- Specified by:
forEachKeyin interfaceShortFloatMap- Specified by:
forEachKeyin interfaceShortKeysMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceShortFloatMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceShortFloatMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceShortFloatMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceShortFloatMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceMutableShortFloatMap- Specified by:
flipUniqueValuesin interfaceShortFloatMap
-
select
- Specified by:
selectin interfaceMutableShortFloatMap- Specified by:
selectin interfaceShortFloatMap
-
reject
- Specified by:
rejectin interfaceMutableShortFloatMap- Specified by:
rejectin interfaceShortFloatMap
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
trimToSize
public boolean trimToSize()- Since:
- 12.0
-
compact
Deprecated.since 12.0 - UsetrimToSize()insteadRehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels. -
keySet
- Specified by:
keySetin interfaceShortFloatMap
-
values
- Specified by:
valuesin interfaceFloatValuesMap
-
trimToSize()instead