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 short
addToValue(float key, short toBeAdded)
MutableFloatShortMap
asSynchronized()
MutableFloatShortMap
asUnmodifiable()
void
clear()
void
compact()
Deprecated.since 12.0 - UsetrimToSize()
insteadboolean
containsKey(float key)
boolean
equals(Object obj)
MutableShortFloatMap
flipUniqueValues()
void
forEachKey(FloatProcedure procedure)
void
forEachKeyValue(FloatShortProcedure procedure)
short
get(float key)
short
getAndPut(float key, short putValue, short defaultValue)
short
getIfAbsent(float key, short ifAbsent)
short
getIfAbsentPut(float key, short value)
short
getIfAbsentPut(float key, ShortFunction0 function)
<P> short
getIfAbsentPutWith(float key, ShortFunction<? super P> function, P parameter)
short
getIfAbsentPutWithKey(float key, FloatToShortFunction function)
short
getOrThrow(float key)
int
hashCode()
<V> V
injectInto(V injectedValue, ObjectShortToObjectFunction<? super V,? extends V> function)
MutableFloatSet
keySet()
LazyFloatIterable
keysView()
RichIterable<FloatShortPair>
keyValuesView()
static FloatShortHashMap
newWithKeysValues(float key1, short value1)
static FloatShortHashMap
newWithKeysValues(float key1, short value1, float key2, short value2)
static FloatShortHashMap
newWithKeysValues(float key1, short value1, float key2, short value2, float key3, short value3)
static FloatShortHashMap
newWithKeysValues(float key1, short value1, float key2, short value2, float key3, short value3, float key4, short value4)
void
put(float key, short value)
void
putAll(FloatShortMap map)
void
readExternal(ObjectInput in)
FloatShortHashMap
reject(FloatShortPredicate predicate)
void
remove(float key)
void
removeKey(float key)
short
removeKeyIfAbsent(float key, short value)
FloatShortHashMap
select(FloatShortPredicate predicate)
MutableShortIterator
shortIterator()
ImmutableFloatShortMap
toImmutable()
String
toString()
boolean
trimToSize()
short
updateValue(float key, short initialValueIfAbsent, ShortToShortFunction function)
void
updateValues(FloatShortToShortFunction function)
MutableShortCollection
values()
FloatShortHashMap
withKeysValues(float key1, short value1, float key2, short value2)
FloatShortHashMap
withKeysValues(float key1, short value1, float key2, short value2, float key3, short value3)
FloatShortHashMap
withKeysValues(float key1, short value1, float key2, short value2, float key3, short value3, float key4, short value4)
FloatShortHashMap
withKeyValue(float key1, short value1)
FloatShortHashMap
withoutAllKeys(FloatIterable keys)
FloatShortHashMap
withoutKey(float key)
void
writeExternal(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:
equals
in interfaceFloatShortMap
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceFloatShortMap
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfaceFloatShortMap
- Specified by:
toString
in interfacePrimitiveIterable
- Overrides:
toString
in classAbstractShortIterable
-
shortIterator
public MutableShortIterator shortIterator()
- Specified by:
shortIterator
in interfaceMutableShortValuesMap
- Specified by:
shortIterator
in interfaceShortIterable
-
injectInto
public <V> V injectInto(V injectedValue, ObjectShortToObjectFunction<? super V,? extends V> function)
- Specified by:
injectInto
in interfaceShortIterable
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableFloatKeysMap
- Specified by:
clear
in interfaceMutableShortValuesMap
-
put
public void put(float key, short value)
- Specified by:
put
in interfaceMutableFloatShortMap
-
putAll
public void putAll(FloatShortMap map)
- Specified by:
putAll
in interfaceMutableFloatShortMap
-
updateValues
public void updateValues(FloatShortToShortFunction function)
- Specified by:
updateValues
in interfaceMutableFloatShortMap
-
removeKey
public void removeKey(float key)
- Specified by:
removeKey
in interfaceMutableFloatKeysMap
- Specified by:
removeKey
in interfaceMutableFloatShortMap
-
remove
public void remove(float key)
- Specified by:
remove
in interfaceMutableFloatShortMap
-
removeKeyIfAbsent
public short removeKeyIfAbsent(float key, short value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableFloatShortMap
-
getIfAbsentPut
public short getIfAbsentPut(float key, short value)
- Specified by:
getIfAbsentPut
in interfaceMutableFloatShortMap
-
getAndPut
public short getAndPut(float key, short putValue, short defaultValue)
- Specified by:
getAndPut
in interfaceMutableFloatShortMap
-
getIfAbsentPut
public short getIfAbsentPut(float key, ShortFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableFloatShortMap
-
getIfAbsentPutWith
public <P> short getIfAbsentPutWith(float key, ShortFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableFloatShortMap
-
getIfAbsentPutWithKey
public short getIfAbsentPutWithKey(float key, FloatToShortFunction function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableFloatShortMap
-
addToValue
public short addToValue(float key, short toBeAdded)
- Specified by:
addToValue
in interfaceMutableFloatShortMap
-
updateValue
public short updateValue(float key, short initialValueIfAbsent, ShortToShortFunction function)
- Specified by:
updateValue
in interfaceMutableFloatShortMap
-
withKeyValue
public FloatShortHashMap withKeyValue(float key1, short value1)
- Specified by:
withKeyValue
in 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:
withoutKey
in interfaceMutableFloatShortMap
-
withoutAllKeys
public FloatShortHashMap withoutAllKeys(FloatIterable keys)
- Specified by:
withoutAllKeys
in interfaceMutableFloatShortMap
-
asUnmodifiable
public MutableFloatShortMap asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableFloatShortMap
-
asSynchronized
public MutableFloatShortMap asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableFloatShortMap
-
toImmutable
public ImmutableFloatShortMap toImmutable()
- Specified by:
toImmutable
in interfaceFloatShortMap
-
get
public short get(float key)
- Specified by:
get
in interfaceFloatShortMap
-
getIfAbsent
public short getIfAbsent(float key, short ifAbsent)
- Specified by:
getIfAbsent
in interfaceFloatShortMap
-
getOrThrow
public short getOrThrow(float key)
- Specified by:
getOrThrow
in interfaceFloatShortMap
-
containsKey
public boolean containsKey(float key)
- Specified by:
containsKey
in interfaceFloatKeysMap
- Specified by:
containsKey
in interfaceFloatShortMap
-
forEachKey
public void forEachKey(FloatProcedure procedure)
- Specified by:
forEachKey
in interfaceFloatKeysMap
- Specified by:
forEachKey
in interfaceFloatShortMap
-
forEachKeyValue
public void forEachKeyValue(FloatShortProcedure procedure)
- Specified by:
forEachKeyValue
in interfaceFloatShortMap
-
keysView
public LazyFloatIterable keysView()
- Specified by:
keysView
in interfaceFloatShortMap
-
keyValuesView
public RichIterable<FloatShortPair> keyValuesView()
- Specified by:
keyValuesView
in interfaceFloatShortMap
-
flipUniqueValues
public MutableShortFloatMap flipUniqueValues()
- Specified by:
flipUniqueValues
in interfaceFloatShortMap
- Specified by:
flipUniqueValues
in interfaceMutableFloatShortMap
-
select
public FloatShortHashMap select(FloatShortPredicate predicate)
- Specified by:
select
in interfaceFloatShortMap
- Specified by:
select
in interfaceMutableFloatShortMap
-
reject
public FloatShortHashMap reject(FloatShortPredicate predicate)
- Specified by:
reject
in interfaceFloatShortMap
- Specified by:
reject
in interfaceMutableFloatShortMap
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
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:
keySet
in interfaceFloatShortMap
-
values
public MutableShortCollection values()
- Specified by:
values
in interfaceShortValuesMap
-
-