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 byteaddToValue(float key, byte toBeAdded)MutableFloatByteMapasSynchronized()MutableFloatByteMapasUnmodifiable()MutableByteIteratorbyteIterator()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(float key)booleanequals(Object obj)MutableByteFloatMapflipUniqueValues()voidforEachKey(FloatProcedure procedure)voidforEachKeyValue(FloatByteProcedure procedure)byteget(float key)bytegetAndPut(float key, byte putValue, byte defaultValue)bytegetIfAbsent(float key, byte ifAbsent)bytegetIfAbsentPut(float key, byte value)bytegetIfAbsentPut(float key, ByteFunction0 function)<P> bytegetIfAbsentPutWith(float key, ByteFunction<? super P> function, P parameter)bytegetIfAbsentPutWithKey(float key, FloatToByteFunction function)bytegetOrThrow(float key)inthashCode()<V> VinjectInto(V injectedValue, ObjectByteToObjectFunction<? super V,? extends V> function)MutableFloatSetkeySet()LazyFloatIterablekeysView()RichIterable<FloatBytePair>keyValuesView()static FloatByteHashMapnewWithKeysValues(float key1, byte value1)static FloatByteHashMapnewWithKeysValues(float key1, byte value1, float key2, byte value2)static FloatByteHashMapnewWithKeysValues(float key1, byte value1, float key2, byte value2, float key3, byte value3)static FloatByteHashMapnewWithKeysValues(float key1, byte value1, float key2, byte value2, float key3, byte value3, float key4, byte value4)voidput(float key, byte value)voidputAll(FloatByteMap map)voidreadExternal(ObjectInput in)FloatByteHashMapreject(FloatBytePredicate predicate)voidremove(float key)voidremoveKey(float key)byteremoveKeyIfAbsent(float key, byte value)FloatByteHashMapselect(FloatBytePredicate predicate)ImmutableFloatByteMaptoImmutable()StringtoString()booleantrimToSize()byteupdateValue(float key, byte initialValueIfAbsent, ByteToByteFunction function)voidupdateValues(FloatByteToByteFunction function)MutableByteCollectionvalues()FloatByteHashMapwithKeysValues(float key1, byte value1, float key2, byte value2)FloatByteHashMapwithKeysValues(float key1, byte value1, float key2, byte value2, float key3, byte value3)FloatByteHashMapwithKeysValues(float key1, byte value1, float key2, byte value2, float key3, byte value3, float key4, byte value4)FloatByteHashMapwithKeyValue(float key1, byte value1)FloatByteHashMapwithoutAllKeys(FloatIterable keys)FloatByteHashMapwithoutKey(float key)voidwriteExternal(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:
equalsin interfaceFloatByteMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceFloatByteMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceFloatByteMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractByteIterable
-
byteIterator
public MutableByteIterator byteIterator()
- Specified by:
byteIteratorin interfaceByteIterable- Specified by:
byteIteratorin interfaceMutableByteValuesMap
-
injectInto
public <V> V injectInto(V injectedValue, ObjectByteToObjectFunction<? super V,? extends V> function)- Specified by:
injectIntoin interfaceByteIterable
-
clear
public void clear()
- Specified by:
clearin interfaceMutableByteValuesMap- Specified by:
clearin interfaceMutableFloatKeysMap
-
put
public void put(float key, byte value)- Specified by:
putin interfaceMutableFloatByteMap
-
putAll
public void putAll(FloatByteMap map)
- Specified by:
putAllin interfaceMutableFloatByteMap
-
updateValues
public void updateValues(FloatByteToByteFunction function)
- Specified by:
updateValuesin interfaceMutableFloatByteMap
-
removeKey
public void removeKey(float key)
- Specified by:
removeKeyin interfaceMutableFloatByteMap- Specified by:
removeKeyin interfaceMutableFloatKeysMap
-
remove
public void remove(float key)
- Specified by:
removein interfaceMutableFloatByteMap
-
removeKeyIfAbsent
public byte removeKeyIfAbsent(float key, byte value)- Specified by:
removeKeyIfAbsentin interfaceMutableFloatByteMap
-
getIfAbsentPut
public byte getIfAbsentPut(float key, byte value)- Specified by:
getIfAbsentPutin interfaceMutableFloatByteMap
-
getAndPut
public byte getAndPut(float key, byte putValue, byte defaultValue)- Specified by:
getAndPutin interfaceMutableFloatByteMap
-
getIfAbsentPut
public byte getIfAbsentPut(float key, ByteFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableFloatByteMap
-
getIfAbsentPutWith
public <P> byte getIfAbsentPutWith(float key, ByteFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableFloatByteMap
-
getIfAbsentPutWithKey
public byte getIfAbsentPutWithKey(float key, FloatToByteFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableFloatByteMap
-
addToValue
public byte addToValue(float key, byte toBeAdded)- Specified by:
addToValuein interfaceMutableFloatByteMap
-
updateValue
public byte updateValue(float key, byte initialValueIfAbsent, ByteToByteFunction function)- Specified by:
updateValuein interfaceMutableFloatByteMap
-
withKeyValue
public FloatByteHashMap withKeyValue(float key1, byte value1)
- Specified by:
withKeyValuein 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:
withoutKeyin interfaceMutableFloatByteMap
-
withoutAllKeys
public FloatByteHashMap withoutAllKeys(FloatIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableFloatByteMap
-
asUnmodifiable
public MutableFloatByteMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableFloatByteMap
-
asSynchronized
public MutableFloatByteMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableFloatByteMap
-
toImmutable
public ImmutableFloatByteMap toImmutable()
- Specified by:
toImmutablein interfaceFloatByteMap
-
get
public byte get(float key)
- Specified by:
getin interfaceFloatByteMap
-
getIfAbsent
public byte getIfAbsent(float key, byte ifAbsent)- Specified by:
getIfAbsentin interfaceFloatByteMap
-
getOrThrow
public byte getOrThrow(float key)
- Specified by:
getOrThrowin interfaceFloatByteMap
-
containsKey
public boolean containsKey(float key)
- Specified by:
containsKeyin interfaceFloatByteMap- Specified by:
containsKeyin interfaceFloatKeysMap
-
forEachKey
public void forEachKey(FloatProcedure procedure)
- Specified by:
forEachKeyin interfaceFloatByteMap- Specified by:
forEachKeyin interfaceFloatKeysMap
-
forEachKeyValue
public void forEachKeyValue(FloatByteProcedure procedure)
- Specified by:
forEachKeyValuein interfaceFloatByteMap
-
keysView
public LazyFloatIterable keysView()
- Specified by:
keysViewin interfaceFloatByteMap
-
keyValuesView
public RichIterable<FloatBytePair> keyValuesView()
- Specified by:
keyValuesViewin interfaceFloatByteMap
-
flipUniqueValues
public MutableByteFloatMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceFloatByteMap- Specified by:
flipUniqueValuesin interfaceMutableFloatByteMap
-
select
public FloatByteHashMap select(FloatBytePredicate predicate)
- Specified by:
selectin interfaceFloatByteMap- Specified by:
selectin interfaceMutableFloatByteMap
-
reject
public FloatByteHashMap reject(FloatBytePredicate predicate)
- Specified by:
rejectin interfaceFloatByteMap- Specified by:
rejectin interfaceMutableFloatByteMap
-
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 interfaceFloatByteMap
-
values
public MutableByteCollection values()
- Specified by:
valuesin interfaceByteValuesMap
-
-