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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyteaddToValue(float key, byte toBeAdded) booleanallSatisfyKeyValue(FloatBytePredicate predicate) voidclear()voidcompact()Deprecated.booleancontainsKey(float key) booleanvoidforEachKey(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) keySet()keysView()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) voidreject(FloatBytePredicate predicate) voidremove(float key) voidremoveKey(float key) byteremoveKeyIfAbsent(float key, byte value) select(FloatBytePredicate predicate) toString()booleanbyteupdateValue(float key, byte initialValueIfAbsent, ByteToByteFunction function) voidupdateValues(FloatByteToByteFunction function) values()withKeysValues(float key1, byte value1, float key2, byte value2) withKeysValues(float key1, byte value1, float key2, byte value2, float key3, byte value3) withKeysValues(float key1, byte value1, float key2, byte value2, float key3, byte value3, float key4, byte value4) withKeyValue(float key1, byte value1) withoutAllKeys(FloatIterable keys) withoutKey(float key) voidMethods 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, toArrayMethods inherited from class org.eclipse.collections.impl.primitive.AbstractByteIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListMethods 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, toSortedListByMethods inherited from interface org.eclipse.collections.api.map.primitive.ByteValuesMap
containsValue, forEachValue, tapMethods inherited from interface org.eclipse.collections.api.map.primitive.FloatByteMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.impl.map.primitive.FloatKeysMap
isEmpty, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableByteValuesMap
collect, reject, selectMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableFloatByteMap
putPair, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
Constructor Details
-
FloatByteHashMap
public FloatByteHashMap() -
FloatByteHashMap
public FloatByteHashMap(int initialCapacity) -
FloatByteHashMap
-
-
Method Details
-
newWithKeysValues
-
newWithKeysValues
-
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
- Specified by:
equalsin interfaceFloatByteMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceFloatByteMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceFloatByteMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractByteIterable
-
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
- Specified by:
putAllin interfaceMutableFloatByteMap
-
updateValues
- 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
- Specified by:
getIfAbsentPutin interfaceMutableFloatByteMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableFloatByteMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableFloatByteMap
-
addToValue
public byte addToValue(float key, byte toBeAdded) - Specified by:
addToValuein interfaceMutableFloatByteMap
-
updateValue
- Specified by:
updateValuein interfaceMutableFloatByteMap
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableFloatByteMap
-
withKeysValues
-
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
- Specified by:
withoutKeyin interfaceMutableFloatByteMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableFloatByteMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableFloatByteMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableFloatByteMap
-
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
- Specified by:
forEachKeyin interfaceFloatByteMap- Specified by:
forEachKeyin interfaceFloatKeysMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceFloatByteMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceFloatByteMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceFloatByteMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceFloatByteMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceFloatByteMap- Specified by:
flipUniqueValuesin interfaceMutableFloatByteMap
-
select
- Specified by:
selectin interfaceFloatByteMap- Specified by:
selectin interfaceMutableFloatByteMap
-
reject
- Specified by:
rejectin interfaceFloatByteMap- Specified by:
rejectin interfaceMutableFloatByteMap
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
trimToSize
public boolean trimToSize()- Since:
- 12.0
-
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
- Specified by:
keySetin interfaceFloatByteMap
-
values
- Specified by:
valuesin interfaceByteValuesMap
-
trimToSize()instead