Class ByteFloatHashMap
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractFloatIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableFloatValuesMap
org.eclipse.collections.impl.map.mutable.primitive.ByteFloatHashMap
- All Implemented Interfaces:
Externalizable,Serializable,FloatIterable,ByteFloatMap,FloatValuesMap,MutableByteFloatMap,MutableFloatValuesMap,PrimitiveIterable,MutableByteKeysMap,ByteKeysMap
public class ByteFloatHashMap
extends AbstractMutableFloatValuesMap
implements MutableByteFloatMap, Externalizable, MutableByteKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloataddToValue(byte key, float toBeAdded) booleanallSatisfyKeyValue(ByteFloatPredicate predicate) voidclear()voidcompact()Deprecated.booleancontainsKey(byte key) booleanvoidforEachKey(ByteProcedure procedure) voidforEachKeyValue(ByteFloatProcedure procedure) floatget(byte key) floatgetAndPut(byte key, float putValue, float defaultValue) floatgetIfAbsent(byte key, float ifAbsent) floatgetIfAbsentPut(byte key, float value) floatgetIfAbsentPut(byte key, FloatFunction0 function) <P> floatgetIfAbsentPutWith(byte key, FloatFunction<? super P> function, P parameter) floatgetIfAbsentPutWithKey(byte key, ByteToFloatFunction function) floatgetOrThrow(byte key) inthashCode()<V> VinjectInto(V injectedValue, ObjectFloatToObjectFunction<? super V, ? extends V> function) keySet()keysView()static ByteFloatHashMapnewWithKeysValues(byte key1, float value1) static ByteFloatHashMapnewWithKeysValues(byte key1, float value1, byte key2, float value2) static ByteFloatHashMapnewWithKeysValues(byte key1, float value1, byte key2, float value2, byte key3, float value3) static ByteFloatHashMapnewWithKeysValues(byte key1, float value1, byte key2, float value2, byte key3, float value3, byte key4, float value4) voidput(byte key, float value) voidputAll(ByteFloatMap map) voidreject(ByteFloatPredicate predicate) voidremove(byte key) voidremoveKey(byte key) floatremoveKeyIfAbsent(byte key, float value) select(ByteFloatPredicate predicate) toString()booleanfloatupdateValue(byte key, float initialValueIfAbsent, FloatToFloatFunction function) voidupdateValues(ByteFloatToFloatFunction function) values()withKeysValues(byte key1, float value1, byte key2, float value2) withKeysValues(byte key1, float value1, byte key2, float value2, byte key3, float value3) withKeysValues(byte key1, float value1, byte key2, float value2, byte key3, float value3, byte key4, float value4) withKeyValue(byte key1, float value1) withoutAllKeys(ByteIterable keys) withoutKey(byte key) voidMethods inherited from class org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableFloatValuesMap
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.AbstractFloatIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListMethods inherited from interface org.eclipse.collections.api.map.primitive.ByteFloatMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.impl.map.primitive.ByteKeysMap
isEmpty, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.FloatIterable
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.FloatValuesMap
containsValue, forEachValue, tapMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableByteFloatMap
putPair, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableFloatValuesMap
collect, reject, selectMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
Constructor Details
-
ByteFloatHashMap
public ByteFloatHashMap() -
ByteFloatHashMap
public ByteFloatHashMap(int initialCapacity) -
ByteFloatHashMap
-
-
Method Details
-
newWithKeysValues
-
newWithKeysValues
-
newWithKeysValues
public static ByteFloatHashMap newWithKeysValues(byte key1, float value1, byte key2, float value2, byte key3, float value3) -
newWithKeysValues
public static ByteFloatHashMap newWithKeysValues(byte key1, float value1, byte key2, float value2, byte key3, float value3, byte key4, float value4) -
equals
- Specified by:
equalsin interfaceByteFloatMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceByteFloatMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceByteFloatMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractFloatIterable
-
floatIterator
- Specified by:
floatIteratorin interfaceFloatIterable- Specified by:
floatIteratorin interfaceMutableFloatValuesMap
-
injectInto
public <V> V injectInto(V injectedValue, ObjectFloatToObjectFunction<? super V, ? extends V> function) - Specified by:
injectIntoin interfaceFloatIterable
-
clear
public void clear()- Specified by:
clearin interfaceMutableByteKeysMap- Specified by:
clearin interfaceMutableFloatValuesMap
-
put
public void put(byte key, float value) - Specified by:
putin interfaceMutableByteFloatMap
-
putAll
- Specified by:
putAllin interfaceMutableByteFloatMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableByteFloatMap
-
removeKey
public void removeKey(byte key) - Specified by:
removeKeyin interfaceMutableByteFloatMap- Specified by:
removeKeyin interfaceMutableByteKeysMap
-
remove
public void remove(byte key) - Specified by:
removein interfaceMutableByteFloatMap
-
removeKeyIfAbsent
public float removeKeyIfAbsent(byte key, float value) - Specified by:
removeKeyIfAbsentin interfaceMutableByteFloatMap
-
getIfAbsentPut
public float getIfAbsentPut(byte key, float value) - Specified by:
getIfAbsentPutin interfaceMutableByteFloatMap
-
getAndPut
public float getAndPut(byte key, float putValue, float defaultValue) - Specified by:
getAndPutin interfaceMutableByteFloatMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableByteFloatMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableByteFloatMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableByteFloatMap
-
addToValue
public float addToValue(byte key, float toBeAdded) - Specified by:
addToValuein interfaceMutableByteFloatMap
-
updateValue
- Specified by:
updateValuein interfaceMutableByteFloatMap
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableByteFloatMap
-
withKeysValues
-
withKeysValues
public ByteFloatHashMap withKeysValues(byte key1, float value1, byte key2, float value2, byte key3, float value3) -
withKeysValues
public ByteFloatHashMap withKeysValues(byte key1, float value1, byte key2, float value2, byte key3, float value3, byte key4, float value4) -
withoutKey
- Specified by:
withoutKeyin interfaceMutableByteFloatMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableByteFloatMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableByteFloatMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableByteFloatMap
-
toImmutable
- Specified by:
toImmutablein interfaceByteFloatMap
-
get
public float get(byte key) - Specified by:
getin interfaceByteFloatMap
-
getIfAbsent
public float getIfAbsent(byte key, float ifAbsent) - Specified by:
getIfAbsentin interfaceByteFloatMap
-
getOrThrow
public float getOrThrow(byte key) - Specified by:
getOrThrowin interfaceByteFloatMap
-
containsKey
public boolean containsKey(byte key) - Specified by:
containsKeyin interfaceByteFloatMap- Specified by:
containsKeyin interfaceByteKeysMap
-
forEachKey
- Specified by:
forEachKeyin interfaceByteFloatMap- Specified by:
forEachKeyin interfaceByteKeysMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceByteFloatMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceByteFloatMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceByteFloatMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceByteFloatMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceByteFloatMap- Specified by:
flipUniqueValuesin interfaceMutableByteFloatMap
-
select
- Specified by:
selectin interfaceByteFloatMap- Specified by:
selectin interfaceMutableByteFloatMap
-
reject
- Specified by:
rejectin interfaceByteFloatMap- Specified by:
rejectin interfaceMutableByteFloatMap
-
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 interfaceByteFloatMap
-
values
- Specified by:
valuesin interfaceFloatValuesMap
-
trimToSize()instead