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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FloatShortHashMap()FloatShortHashMap(int initialCapacity)FloatShortHashMap(FloatShortMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description shortaddToValue(float key, short toBeAdded)MutableFloatShortMapasSynchronized()MutableFloatShortMapasUnmodifiable()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(float key)booleanequals(Object obj)MutableShortFloatMapflipUniqueValues()voidforEachKey(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)MutableFloatSetkeySet()LazyFloatIterablekeysView()RichIterable<FloatShortPair>keyValuesView()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)voidreadExternal(ObjectInput in)FloatShortHashMapreject(FloatShortPredicate predicate)voidremove(float key)voidremoveKey(float key)shortremoveKeyIfAbsent(float key, short value)FloatShortHashMapselect(FloatShortPredicate predicate)MutableShortIteratorshortIterator()ImmutableFloatShortMaptoImmutable()StringtoString()booleantrimToSize()shortupdateValue(float key, short initialValueIfAbsent, ShortToShortFunction function)voidupdateValues(FloatShortToShortFunction function)MutableShortCollectionvalues()FloatShortHashMapwithKeysValues(float key1, short value1, float key2, short value2)FloatShortHashMapwithKeysValues(float key1, short value1, float key2, short value2, float key3, short value3)FloatShortHashMapwithKeysValues(float key1, short value1, float key2, short value2, float key3, short value3, float key4, short value4)FloatShortHashMapwithKeyValue(float key1, short value1)FloatShortHashMapwithoutAllKeys(FloatIterable keys)FloatShortHashMapwithoutKey(float key)voidwriteExternal(ObjectOutput out)-
Methods 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, toArray
-
Methods inherited from class org.eclipse.collections.impl.primitive.AbstractShortIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
-
Methods inherited from interface org.eclipse.collections.impl.map.primitive.FloatKeysMap
isEmpty, notEmpty, size
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.FloatShortMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableFloatShortMap
putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableShortValuesMap
collect, reject, select
-
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.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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ShortValuesMap
containsValue, forEachValue, tap
-
-
-
-
Constructor Detail
-
FloatShortHashMap
public FloatShortHashMap()
-
FloatShortHashMap
public FloatShortHashMap(int initialCapacity)
-
FloatShortHashMap
public FloatShortHashMap(FloatShortMap map)
-
-
Method Detail
-
newWithKeysValues
public static FloatShortHashMap newWithKeysValues(float key1, short value1)
-
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
public boolean equals(Object obj)
- Specified by:
equalsin interfaceFloatShortMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceFloatShortMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceFloatShortMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractShortIterable
-
shortIterator
public MutableShortIterator 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
public void putAll(FloatShortMap map)
- Specified by:
putAllin interfaceMutableFloatShortMap
-
updateValues
public void updateValues(FloatShortToShortFunction function)
- 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
public short getIfAbsentPut(float key, ShortFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableFloatShortMap
-
getIfAbsentPutWith
public <P> short getIfAbsentPutWith(float key, ShortFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableFloatShortMap
-
getIfAbsentPutWithKey
public short getIfAbsentPutWithKey(float key, FloatToShortFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableFloatShortMap
-
addToValue
public short addToValue(float key, short toBeAdded)- Specified by:
addToValuein interfaceMutableFloatShortMap
-
updateValue
public short updateValue(float key, short initialValueIfAbsent, ShortToShortFunction function)- Specified by:
updateValuein interfaceMutableFloatShortMap
-
withKeyValue
public FloatShortHashMap withKeyValue(float key1, short value1)
- Specified by:
withKeyValuein interfaceMutableFloatShortMap
-
withKeysValues
public FloatShortHashMap withKeysValues(float key1, short value1, float key2, short value2)
-
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
public FloatShortHashMap withoutKey(float key)
- Specified by:
withoutKeyin interfaceMutableFloatShortMap
-
withoutAllKeys
public FloatShortHashMap withoutAllKeys(FloatIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableFloatShortMap
-
asUnmodifiable
public MutableFloatShortMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableFloatShortMap
-
asSynchronized
public MutableFloatShortMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableFloatShortMap
-
toImmutable
public ImmutableFloatShortMap 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
public void forEachKey(FloatProcedure procedure)
- Specified by:
forEachKeyin interfaceFloatKeysMap- Specified by:
forEachKeyin interfaceFloatShortMap
-
forEachKeyValue
public void forEachKeyValue(FloatShortProcedure procedure)
- Specified by:
forEachKeyValuein interfaceFloatShortMap
-
keysView
public LazyFloatIterable keysView()
- Specified by:
keysViewin interfaceFloatShortMap
-
keyValuesView
public RichIterable<FloatShortPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceFloatShortMap
-
flipUniqueValues
public MutableShortFloatMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceFloatShortMap- Specified by:
flipUniqueValuesin interfaceMutableFloatShortMap
-
select
public FloatShortHashMap select(FloatShortPredicate predicate)
- Specified by:
selectin interfaceFloatShortMap- Specified by:
selectin interfaceMutableFloatShortMap
-
reject
public FloatShortHashMap reject(FloatShortPredicate predicate)
- Specified by:
rejectin interfaceFloatShortMap- Specified by:
rejectin interfaceMutableFloatShortMap
-
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 MutableFloatSet keySet()
- Specified by:
keySetin interfaceFloatShortMap
-
values
public MutableShortCollection values()
- Specified by:
valuesin interfaceShortValuesMap
-
-