Class FloatByteHashMap
- java.lang.Object
-
- org.eclipse.collections.impl.primitive.AbstractByteIterable
-
- org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableByteValuesMap
-
- org.eclipse.collections.impl.map.mutable.primitive.FloatByteHashMap
-
- All Implemented Interfaces:
Externalizable
,Serializable
,ByteIterable
,ByteValuesMap
,FloatByteMap
,MutableByteValuesMap
,MutableFloatByteMap
,PrimitiveIterable
,MutableFloatKeysMap
,FloatKeysMap
public class FloatByteHashMap extends AbstractMutableByteValuesMap implements MutableFloatByteMap, Externalizable, MutableFloatKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.- Since:
- 3.0.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FloatByteHashMap()
FloatByteHashMap(int initialCapacity)
FloatByteHashMap(FloatByteMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description byte
addToValue(float key, byte toBeAdded)
MutableFloatByteMap
asSynchronized()
MutableFloatByteMap
asUnmodifiable()
MutableByteIterator
byteIterator()
void
clear()
void
compact()
Deprecated.since 12.0 - UsetrimToSize()
insteadboolean
containsKey(float key)
boolean
equals(Object obj)
MutableByteFloatMap
flipUniqueValues()
void
forEachKey(FloatProcedure procedure)
void
forEachKeyValue(FloatByteProcedure procedure)
byte
get(float key)
byte
getAndPut(float key, byte putValue, byte defaultValue)
byte
getIfAbsent(float key, byte ifAbsent)
byte
getIfAbsentPut(float key, byte value)
byte
getIfAbsentPut(float key, ByteFunction0 function)
<P> byte
getIfAbsentPutWith(float key, ByteFunction<? super P> function, P parameter)
byte
getIfAbsentPutWithKey(float key, FloatToByteFunction function)
byte
getOrThrow(float key)
int
hashCode()
<V> V
injectInto(V injectedValue, ObjectByteToObjectFunction<? super V,? extends V> function)
MutableFloatSet
keySet()
LazyFloatIterable
keysView()
RichIterable<FloatBytePair>
keyValuesView()
static FloatByteHashMap
newWithKeysValues(float key1, byte value1)
static FloatByteHashMap
newWithKeysValues(float key1, byte value1, float key2, byte value2)
static FloatByteHashMap
newWithKeysValues(float key1, byte value1, float key2, byte value2, float key3, byte value3)
static FloatByteHashMap
newWithKeysValues(float key1, byte value1, float key2, byte value2, float key3, byte value3, float key4, byte value4)
void
put(float key, byte value)
void
putAll(FloatByteMap map)
void
readExternal(ObjectInput in)
FloatByteHashMap
reject(FloatBytePredicate predicate)
void
remove(float key)
void
removeKey(float key)
byte
removeKeyIfAbsent(float key, byte value)
FloatByteHashMap
select(FloatBytePredicate predicate)
ImmutableFloatByteMap
toImmutable()
String
toString()
boolean
trimToSize()
byte
updateValue(float key, byte initialValueIfAbsent, ByteToByteFunction function)
void
updateValues(FloatByteToByteFunction function)
MutableByteCollection
values()
FloatByteHashMap
withKeysValues(float key1, byte value1, float key2, byte value2)
FloatByteHashMap
withKeysValues(float key1, byte value1, float key2, byte value2, float key3, byte value3)
FloatByteHashMap
withKeysValues(float key1, byte value1, float key2, byte value2, float key3, byte value3, float key4, byte value4)
FloatByteHashMap
withKeyValue(float key1, byte value1)
FloatByteHashMap
withoutAllKeys(FloatIterable keys)
FloatByteHashMap
withoutKey(float key)
void
writeExternal(ObjectOutput out)
-
Methods inherited from class org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableByteValuesMap
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.AbstractByteIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
-
Methods inherited from interface org.eclipse.collections.api.ByteIterable
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.ByteValuesMap
containsValue, forEachValue, tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.FloatByteMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.impl.map.primitive.FloatKeysMap
isEmpty, notEmpty, size
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableByteValuesMap
collect, reject, select
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableFloatByteMap
putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
-
-
-
Constructor Detail
-
FloatByteHashMap
public FloatByteHashMap()
-
FloatByteHashMap
public FloatByteHashMap(int initialCapacity)
-
FloatByteHashMap
public FloatByteHashMap(FloatByteMap map)
-
-
Method Detail
-
newWithKeysValues
public static FloatByteHashMap newWithKeysValues(float key1, byte value1)
-
newWithKeysValues
public static FloatByteHashMap newWithKeysValues(float key1, byte value1, float key2, byte value2)
-
newWithKeysValues
public static FloatByteHashMap newWithKeysValues(float key1, byte value1, float key2, byte value2, float key3, byte value3)
-
newWithKeysValues
public static FloatByteHashMap newWithKeysValues(float key1, byte value1, float key2, byte value2, float key3, byte value3, float key4, byte value4)
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfaceFloatByteMap
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceFloatByteMap
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfaceFloatByteMap
- Specified by:
toString
in interfacePrimitiveIterable
- Overrides:
toString
in classAbstractByteIterable
-
byteIterator
public MutableByteIterator byteIterator()
- Specified by:
byteIterator
in interfaceByteIterable
- Specified by:
byteIterator
in interfaceMutableByteValuesMap
-
injectInto
public <V> V injectInto(V injectedValue, ObjectByteToObjectFunction<? super V,? extends V> function)
- Specified by:
injectInto
in interfaceByteIterable
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableByteValuesMap
- Specified by:
clear
in interfaceMutableFloatKeysMap
-
put
public void put(float key, byte value)
- Specified by:
put
in interfaceMutableFloatByteMap
-
putAll
public void putAll(FloatByteMap map)
- Specified by:
putAll
in interfaceMutableFloatByteMap
-
updateValues
public void updateValues(FloatByteToByteFunction function)
- Specified by:
updateValues
in interfaceMutableFloatByteMap
-
removeKey
public void removeKey(float key)
- Specified by:
removeKey
in interfaceMutableFloatByteMap
- Specified by:
removeKey
in interfaceMutableFloatKeysMap
-
remove
public void remove(float key)
- Specified by:
remove
in interfaceMutableFloatByteMap
-
removeKeyIfAbsent
public byte removeKeyIfAbsent(float key, byte value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableFloatByteMap
-
getIfAbsentPut
public byte getIfAbsentPut(float key, byte value)
- Specified by:
getIfAbsentPut
in interfaceMutableFloatByteMap
-
getAndPut
public byte getAndPut(float key, byte putValue, byte defaultValue)
- Specified by:
getAndPut
in interfaceMutableFloatByteMap
-
getIfAbsentPut
public byte getIfAbsentPut(float key, ByteFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableFloatByteMap
-
getIfAbsentPutWith
public <P> byte getIfAbsentPutWith(float key, ByteFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableFloatByteMap
-
getIfAbsentPutWithKey
public byte getIfAbsentPutWithKey(float key, FloatToByteFunction function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableFloatByteMap
-
addToValue
public byte addToValue(float key, byte toBeAdded)
- Specified by:
addToValue
in interfaceMutableFloatByteMap
-
updateValue
public byte updateValue(float key, byte initialValueIfAbsent, ByteToByteFunction function)
- Specified by:
updateValue
in interfaceMutableFloatByteMap
-
withKeyValue
public FloatByteHashMap withKeyValue(float key1, byte value1)
- Specified by:
withKeyValue
in interfaceMutableFloatByteMap
-
withKeysValues
public FloatByteHashMap withKeysValues(float key1, byte value1, float key2, byte value2)
-
withKeysValues
public FloatByteHashMap withKeysValues(float key1, byte value1, float key2, byte value2, float key3, byte value3)
-
withKeysValues
public FloatByteHashMap withKeysValues(float key1, byte value1, float key2, byte value2, float key3, byte value3, float key4, byte value4)
-
withoutKey
public FloatByteHashMap withoutKey(float key)
- Specified by:
withoutKey
in interfaceMutableFloatByteMap
-
withoutAllKeys
public FloatByteHashMap withoutAllKeys(FloatIterable keys)
- Specified by:
withoutAllKeys
in interfaceMutableFloatByteMap
-
asUnmodifiable
public MutableFloatByteMap asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableFloatByteMap
-
asSynchronized
public MutableFloatByteMap asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableFloatByteMap
-
toImmutable
public ImmutableFloatByteMap toImmutable()
- Specified by:
toImmutable
in interfaceFloatByteMap
-
get
public byte get(float key)
- Specified by:
get
in interfaceFloatByteMap
-
getIfAbsent
public byte getIfAbsent(float key, byte ifAbsent)
- Specified by:
getIfAbsent
in interfaceFloatByteMap
-
getOrThrow
public byte getOrThrow(float key)
- Specified by:
getOrThrow
in interfaceFloatByteMap
-
containsKey
public boolean containsKey(float key)
- Specified by:
containsKey
in interfaceFloatByteMap
- Specified by:
containsKey
in interfaceFloatKeysMap
-
forEachKey
public void forEachKey(FloatProcedure procedure)
- Specified by:
forEachKey
in interfaceFloatByteMap
- Specified by:
forEachKey
in interfaceFloatKeysMap
-
forEachKeyValue
public void forEachKeyValue(FloatByteProcedure procedure)
- Specified by:
forEachKeyValue
in interfaceFloatByteMap
-
keysView
public LazyFloatIterable keysView()
- Specified by:
keysView
in interfaceFloatByteMap
-
keyValuesView
public RichIterable<FloatBytePair> keyValuesView()
- Specified by:
keyValuesView
in interfaceFloatByteMap
-
flipUniqueValues
public MutableByteFloatMap flipUniqueValues()
- Specified by:
flipUniqueValues
in interfaceFloatByteMap
- Specified by:
flipUniqueValues
in interfaceMutableFloatByteMap
-
select
public FloatByteHashMap select(FloatBytePredicate predicate)
- Specified by:
select
in interfaceFloatByteMap
- Specified by:
select
in interfaceMutableFloatByteMap
-
reject
public FloatByteHashMap reject(FloatBytePredicate predicate)
- Specified by:
reject
in interfaceFloatByteMap
- Specified by:
reject
in interfaceMutableFloatByteMap
-
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 interfaceFloatByteMap
-
values
public MutableByteCollection values()
- Specified by:
values
in interfaceByteValuesMap
-
-