Class FloatShortHashMap
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractShortIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableShortValuesMap
org.eclipse.collections.impl.map.mutable.primitive.FloatShortHashMap
- All Implemented Interfaces:
Externalizable,Serializable,FloatShortMap,MutableFloatShortMap,MutableShortValuesMap,ShortValuesMap,PrimitiveIterable,ShortIterable,MutableFloatKeysMap,FloatKeysMap
public class FloatShortHashMap
extends AbstractMutableShortValuesMap
implements MutableFloatShortMap, Externalizable, MutableFloatKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionshortaddToValue(float key, short toBeAdded) booleanallSatisfyKeyValue(FloatShortPredicate predicate) voidclear()voidcompact()Deprecated.booleancontainsKey(float key) booleanvoidforEachKey(FloatProcedure procedure) voidforEachKeyValue(FloatShortProcedure procedure) shortget(float key) shortgetAndPut(float key, short putValue, short defaultValue) shortgetIfAbsent(float key, short ifAbsent) shortgetIfAbsentPut(float key, short value) shortgetIfAbsentPut(float key, ShortFunction0 function) <P> shortgetIfAbsentPutWith(float key, ShortFunction<? super P> function, P parameter) shortgetIfAbsentPutWithKey(float key, FloatToShortFunction function) shortgetOrThrow(float key) inthashCode()<V> VinjectInto(V injectedValue, ObjectShortToObjectFunction<? super V, ? extends V> function) keySet()keysView()static FloatShortHashMapnewWithKeysValues(float key1, short value1) static FloatShortHashMapnewWithKeysValues(float key1, short value1, float key2, short value2) static FloatShortHashMapnewWithKeysValues(float key1, short value1, float key2, short value2, float key3, short value3) static FloatShortHashMapnewWithKeysValues(float key1, short value1, float key2, short value2, float key3, short value3, float key4, short value4) voidput(float key, short value) voidputAll(FloatShortMap map) voidreject(FloatShortPredicate predicate) voidremove(float key) voidremoveKey(float key) shortremoveKeyIfAbsent(float key, short value) select(FloatShortPredicate predicate) toString()booleanshortupdateValue(float key, short initialValueIfAbsent, ShortToShortFunction function) voidupdateValues(FloatShortToShortFunction function) values()withKeysValues(float key1, short value1, float key2, short value2) withKeysValues(float key1, short value1, float key2, short value2, float key3, short value3) withKeysValues(float key1, short value1, float key2, short value2, float key3, short value3, float key4, short value4) withKeyValue(float key1, short value1) withoutAllKeys(FloatIterable keys) withoutKey(float key) voidMethods inherited from class org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableShortValuesMap
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.AbstractShortIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListMethods inherited from interface org.eclipse.collections.impl.map.primitive.FloatKeysMap
isEmpty, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.map.primitive.FloatShortMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableFloatShortMap
putPair, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableShortValuesMap
collect, reject, selectMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.ShortIterable
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.ShortValuesMap
containsValue, forEachValue, tap
-
Constructor Details
-
FloatShortHashMap
public FloatShortHashMap() -
FloatShortHashMap
public FloatShortHashMap(int initialCapacity) -
FloatShortHashMap
-
-
Method Details
-
newWithKeysValues
-
newWithKeysValues
public static FloatShortHashMap newWithKeysValues(float key1, short value1, float key2, short value2) -
newWithKeysValues
public static FloatShortHashMap newWithKeysValues(float key1, short value1, float key2, short value2, float key3, short value3) -
newWithKeysValues
public static FloatShortHashMap newWithKeysValues(float key1, short value1, float key2, short value2, float key3, short value3, float key4, short value4) -
equals
- Specified by:
equalsin interfaceFloatShortMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceFloatShortMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceFloatShortMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractShortIterable
-
shortIterator
- Specified by:
shortIteratorin interfaceMutableShortValuesMap- Specified by:
shortIteratorin interfaceShortIterable
-
injectInto
public <V> V injectInto(V injectedValue, ObjectShortToObjectFunction<? super V, ? extends V> function) - Specified by:
injectIntoin interfaceShortIterable
-
clear
public void clear()- Specified by:
clearin interfaceMutableFloatKeysMap- Specified by:
clearin interfaceMutableShortValuesMap
-
put
public void put(float key, short value) - Specified by:
putin interfaceMutableFloatShortMap
-
putAll
- Specified by:
putAllin interfaceMutableFloatShortMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableFloatShortMap
-
removeKey
public void removeKey(float key) - Specified by:
removeKeyin interfaceMutableFloatKeysMap- Specified by:
removeKeyin interfaceMutableFloatShortMap
-
remove
public void remove(float key) - Specified by:
removein interfaceMutableFloatShortMap
-
removeKeyIfAbsent
public short removeKeyIfAbsent(float key, short value) - Specified by:
removeKeyIfAbsentin interfaceMutableFloatShortMap
-
getIfAbsentPut
public short getIfAbsentPut(float key, short value) - Specified by:
getIfAbsentPutin interfaceMutableFloatShortMap
-
getAndPut
public short getAndPut(float key, short putValue, short defaultValue) - Specified by:
getAndPutin interfaceMutableFloatShortMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableFloatShortMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableFloatShortMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableFloatShortMap
-
addToValue
public short addToValue(float key, short toBeAdded) - Specified by:
addToValuein interfaceMutableFloatShortMap
-
updateValue
- Specified by:
updateValuein interfaceMutableFloatShortMap
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableFloatShortMap
-
withKeysValues
-
withKeysValues
public FloatShortHashMap withKeysValues(float key1, short value1, float key2, short value2, float key3, short value3) -
withKeysValues
public FloatShortHashMap withKeysValues(float key1, short value1, float key2, short value2, float key3, short value3, float key4, short value4) -
withoutKey
- Specified by:
withoutKeyin interfaceMutableFloatShortMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableFloatShortMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableFloatShortMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableFloatShortMap
-
toImmutable
- Specified by:
toImmutablein interfaceFloatShortMap
-
get
public short get(float key) - Specified by:
getin interfaceFloatShortMap
-
getIfAbsent
public short getIfAbsent(float key, short ifAbsent) - Specified by:
getIfAbsentin interfaceFloatShortMap
-
getOrThrow
public short getOrThrow(float key) - Specified by:
getOrThrowin interfaceFloatShortMap
-
containsKey
public boolean containsKey(float key) - Specified by:
containsKeyin interfaceFloatKeysMap- Specified by:
containsKeyin interfaceFloatShortMap
-
forEachKey
- Specified by:
forEachKeyin interfaceFloatKeysMap- Specified by:
forEachKeyin interfaceFloatShortMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceFloatShortMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceFloatShortMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceFloatShortMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceFloatShortMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceFloatShortMap- Specified by:
flipUniqueValuesin interfaceMutableFloatShortMap
-
select
- Specified by:
selectin interfaceFloatShortMap- Specified by:
selectin interfaceMutableFloatShortMap
-
reject
- Specified by:
rejectin interfaceFloatShortMap- Specified by:
rejectin interfaceMutableFloatShortMap
-
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 interfaceFloatShortMap
-
values
- Specified by:
valuesin interfaceShortValuesMap
-
trimToSize()instead