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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ByteFloatHashMap()ByteFloatHashMap(int initialCapacity)ByteFloatHashMap(ByteFloatMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description floataddToValue(byte key, float toBeAdded)MutableByteFloatMapasSynchronized()MutableByteFloatMapasUnmodifiable()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(byte key)booleanequals(Object obj)MutableFloatByteMapflipUniqueValues()MutableFloatIteratorfloatIterator()voidforEachKey(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)MutableByteSetkeySet()LazyByteIterablekeysView()RichIterable<ByteFloatPair>keyValuesView()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)voidreadExternal(ObjectInput in)ByteFloatHashMapreject(ByteFloatPredicate predicate)voidremove(byte key)voidremoveKey(byte key)floatremoveKeyIfAbsent(byte key, float value)ByteFloatHashMapselect(ByteFloatPredicate predicate)ImmutableByteFloatMaptoImmutable()StringtoString()booleantrimToSize()floatupdateValue(byte key, float initialValueIfAbsent, FloatToFloatFunction function)voidupdateValues(ByteFloatToFloatFunction function)MutableFloatCollectionvalues()ByteFloatHashMapwithKeysValues(byte key1, float value1, byte key2, float value2)ByteFloatHashMapwithKeysValues(byte key1, float value1, byte key2, float value2, byte key3, float value3)ByteFloatHashMapwithKeysValues(byte key1, float value1, byte key2, float value2, byte key3, float value3, byte key4, float value4)ByteFloatHashMapwithKeyValue(byte key1, float value1)ByteFloatHashMapwithoutAllKeys(ByteIterable keys)ByteFloatHashMapwithoutKey(byte key)voidwriteExternal(ObjectOutput out)-
Methods 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, toArray
-
Methods inherited from class org.eclipse.collections.impl.primitive.AbstractFloatIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ByteFloatMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.impl.map.primitive.ByteKeysMap
isEmpty, notEmpty, size
-
Methods 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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.FloatValuesMap
containsValue, forEachValue, tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableByteFloatMap
putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableFloatValuesMap
collect, reject, select
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
-
-
-
Constructor Detail
-
ByteFloatHashMap
public ByteFloatHashMap()
-
ByteFloatHashMap
public ByteFloatHashMap(int initialCapacity)
-
ByteFloatHashMap
public ByteFloatHashMap(ByteFloatMap map)
-
-
Method Detail
-
newWithKeysValues
public static ByteFloatHashMap newWithKeysValues(byte key1, float value1)
-
newWithKeysValues
public static ByteFloatHashMap newWithKeysValues(byte key1, float value1, byte key2, float value2)
-
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
public boolean equals(Object obj)
- Specified by:
equalsin interfaceByteFloatMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceByteFloatMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceByteFloatMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractFloatIterable
-
floatIterator
public MutableFloatIterator 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
public void putAll(ByteFloatMap map)
- Specified by:
putAllin interfaceMutableByteFloatMap
-
updateValues
public void updateValues(ByteFloatToFloatFunction function)
- 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
public float getIfAbsentPut(byte key, FloatFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableByteFloatMap
-
getIfAbsentPutWith
public <P> float getIfAbsentPutWith(byte key, FloatFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableByteFloatMap
-
getIfAbsentPutWithKey
public float getIfAbsentPutWithKey(byte key, ByteToFloatFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableByteFloatMap
-
addToValue
public float addToValue(byte key, float toBeAdded)- Specified by:
addToValuein interfaceMutableByteFloatMap
-
updateValue
public float updateValue(byte key, float initialValueIfAbsent, FloatToFloatFunction function)- Specified by:
updateValuein interfaceMutableByteFloatMap
-
withKeyValue
public ByteFloatHashMap withKeyValue(byte key1, float value1)
- Specified by:
withKeyValuein interfaceMutableByteFloatMap
-
withKeysValues
public ByteFloatHashMap withKeysValues(byte key1, float value1, byte key2, float value2)
-
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
public ByteFloatHashMap withoutKey(byte key)
- Specified by:
withoutKeyin interfaceMutableByteFloatMap
-
withoutAllKeys
public ByteFloatHashMap withoutAllKeys(ByteIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableByteFloatMap
-
asUnmodifiable
public MutableByteFloatMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableByteFloatMap
-
asSynchronized
public MutableByteFloatMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableByteFloatMap
-
toImmutable
public ImmutableByteFloatMap 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
public void forEachKey(ByteProcedure procedure)
- Specified by:
forEachKeyin interfaceByteFloatMap- Specified by:
forEachKeyin interfaceByteKeysMap
-
forEachKeyValue
public void forEachKeyValue(ByteFloatProcedure procedure)
- Specified by:
forEachKeyValuein interfaceByteFloatMap
-
keysView
public LazyByteIterable keysView()
- Specified by:
keysViewin interfaceByteFloatMap
-
keyValuesView
public RichIterable<ByteFloatPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceByteFloatMap
-
flipUniqueValues
public MutableFloatByteMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceByteFloatMap- Specified by:
flipUniqueValuesin interfaceMutableByteFloatMap
-
select
public ByteFloatHashMap select(ByteFloatPredicate predicate)
- Specified by:
selectin interfaceByteFloatMap- Specified by:
selectin interfaceMutableByteFloatMap
-
reject
public ByteFloatHashMap reject(ByteFloatPredicate predicate)
- Specified by:
rejectin interfaceByteFloatMap- Specified by:
rejectin interfaceMutableByteFloatMap
-
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 MutableByteSet keySet()
- Specified by:
keySetin interfaceByteFloatMap
-
values
public MutableFloatCollection values()
- Specified by:
valuesin interfaceFloatValuesMap
-
-