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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ShortFloatHashMap()ShortFloatHashMap(int initialCapacity)ShortFloatHashMap(ShortFloatMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description floataddToValue(short key, float toBeAdded)MutableShortFloatMapasSynchronized()MutableShortFloatMapasUnmodifiable()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(short key)booleanequals(Object obj)MutableFloatShortMapflipUniqueValues()MutableFloatIteratorfloatIterator()voidforEachKey(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)MutableShortSetkeySet()LazyShortIterablekeysView()RichIterable<ShortFloatPair>keyValuesView()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)voidreadExternal(ObjectInput in)ShortFloatHashMapreject(ShortFloatPredicate predicate)voidremove(short key)voidremoveKey(short key)floatremoveKeyIfAbsent(short key, float value)ShortFloatHashMapselect(ShortFloatPredicate predicate)ImmutableShortFloatMaptoImmutable()StringtoString()booleantrimToSize()floatupdateValue(short key, float initialValueIfAbsent, FloatToFloatFunction function)voidupdateValues(ShortFloatToFloatFunction function)MutableFloatCollectionvalues()ShortFloatHashMapwithKeysValues(short key1, float value1, short key2, float value2)ShortFloatHashMapwithKeysValues(short key1, float value1, short key2, float value2, short key3, float value3)ShortFloatHashMapwithKeysValues(short key1, float value1, short key2, float value2, short key3, float value3, short key4, float value4)ShortFloatHashMapwithKeyValue(short key1, float value1)ShortFloatHashMapwithoutAllKeys(ShortIterable keys)ShortFloatHashMapwithoutKey(short key)voidwriteExternal(ObjectOutput out)-
Methods 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, toArray
-
Methods inherited from class org.eclipse.collections.impl.primitive.AbstractFloatIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
-
Methods 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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.FloatValuesMap
containsValue, forEachValue, tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableFloatValuesMap
collect, reject, select
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableShortFloatMap
putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ShortFloatMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.impl.map.primitive.ShortKeysMap
isEmpty, notEmpty, size
-
-
-
-
Constructor Detail
-
ShortFloatHashMap
public ShortFloatHashMap()
-
ShortFloatHashMap
public ShortFloatHashMap(int initialCapacity)
-
ShortFloatHashMap
public ShortFloatHashMap(ShortFloatMap map)
-
-
Method Detail
-
newWithKeysValues
public static ShortFloatHashMap newWithKeysValues(short key1, float value1)
-
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
public boolean equals(Object obj)
- Specified by:
equalsin interfaceShortFloatMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceShortFloatMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfacePrimitiveIterable- Specified by:
toStringin interfaceShortFloatMap- Overrides:
toStringin classAbstractFloatIterable
-
floatIterator
public MutableFloatIterator 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
public void putAll(ShortFloatMap map)
- Specified by:
putAllin interfaceMutableShortFloatMap
-
updateValues
public void updateValues(ShortFloatToFloatFunction function)
- 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
public float getIfAbsentPut(short key, FloatFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableShortFloatMap
-
getIfAbsentPutWith
public <P> float getIfAbsentPutWith(short key, FloatFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableShortFloatMap
-
getIfAbsentPutWithKey
public float getIfAbsentPutWithKey(short key, ShortToFloatFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableShortFloatMap
-
addToValue
public float addToValue(short key, float toBeAdded)- Specified by:
addToValuein interfaceMutableShortFloatMap
-
updateValue
public float updateValue(short key, float initialValueIfAbsent, FloatToFloatFunction function)- Specified by:
updateValuein interfaceMutableShortFloatMap
-
withKeyValue
public ShortFloatHashMap withKeyValue(short key1, float value1)
- Specified by:
withKeyValuein interfaceMutableShortFloatMap
-
withKeysValues
public ShortFloatHashMap withKeysValues(short key1, float value1, short key2, float value2)
-
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
public ShortFloatHashMap withoutKey(short key)
- Specified by:
withoutKeyin interfaceMutableShortFloatMap
-
withoutAllKeys
public ShortFloatHashMap withoutAllKeys(ShortIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableShortFloatMap
-
asUnmodifiable
public MutableShortFloatMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableShortFloatMap
-
asSynchronized
public MutableShortFloatMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableShortFloatMap
-
toImmutable
public ImmutableShortFloatMap 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
public void forEachKey(ShortProcedure procedure)
- Specified by:
forEachKeyin interfaceShortFloatMap- Specified by:
forEachKeyin interfaceShortKeysMap
-
forEachKeyValue
public void forEachKeyValue(ShortFloatProcedure procedure)
- Specified by:
forEachKeyValuein interfaceShortFloatMap
-
keysView
public LazyShortIterable keysView()
- Specified by:
keysViewin interfaceShortFloatMap
-
keyValuesView
public RichIterable<ShortFloatPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceShortFloatMap
-
flipUniqueValues
public MutableFloatShortMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceMutableShortFloatMap- Specified by:
flipUniqueValuesin interfaceShortFloatMap
-
select
public ShortFloatHashMap select(ShortFloatPredicate predicate)
- Specified by:
selectin interfaceMutableShortFloatMap- Specified by:
selectin interfaceShortFloatMap
-
reject
public ShortFloatHashMap reject(ShortFloatPredicate predicate)
- Specified by:
rejectin interfaceMutableShortFloatMap- Specified by:
rejectin interfaceShortFloatMap
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
trimToSize
public boolean trimToSize()
- Since:
- 12.0
-
compact
@Deprecated public void 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
public MutableShortSet keySet()
- Specified by:
keySetin interfaceShortFloatMap
-
values
public MutableFloatCollection values()
- Specified by:
valuesin interfaceFloatValuesMap
-
-