Class CharFloatHashMap
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractFloatIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableFloatValuesMap
org.eclipse.collections.impl.map.mutable.primitive.CharFloatHashMap
- All Implemented Interfaces:
Externalizable,Serializable,FloatIterable,CharFloatMap,FloatValuesMap,MutableCharFloatMap,MutableFloatValuesMap,PrimitiveIterable,MutableCharKeysMap,CharKeysMap
public class CharFloatHashMap
extends AbstractMutableFloatValuesMap
implements MutableCharFloatMap, Externalizable, MutableCharKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloataddToValue(char key, float toBeAdded) booleanallSatisfyKeyValue(CharFloatPredicate predicate) voidclear()voidcompact()Deprecated.booleancontainsKey(char key) booleanvoidforEachKey(CharProcedure procedure) voidforEachKeyValue(CharFloatProcedure procedure) floatget(char key) floatgetAndPut(char key, float putValue, float defaultValue) floatgetIfAbsent(char key, float ifAbsent) floatgetIfAbsentPut(char key, float value) floatgetIfAbsentPut(char key, FloatFunction0 function) <P> floatgetIfAbsentPutWith(char key, FloatFunction<? super P> function, P parameter) floatgetIfAbsentPutWithKey(char key, CharToFloatFunction function) floatgetOrThrow(char key) inthashCode()<V> VinjectInto(V injectedValue, ObjectFloatToObjectFunction<? super V, ? extends V> function) keySet()keysView()static CharFloatHashMapnewWithKeysValues(char key1, float value1) static CharFloatHashMapnewWithKeysValues(char key1, float value1, char key2, float value2) static CharFloatHashMapnewWithKeysValues(char key1, float value1, char key2, float value2, char key3, float value3) static CharFloatHashMapnewWithKeysValues(char key1, float value1, char key2, float value2, char key3, float value3, char key4, float value4) voidput(char key, float value) voidputAll(CharFloatMap map) voidreject(CharFloatPredicate predicate) voidremove(char key) voidremoveKey(char key) floatremoveKeyIfAbsent(char key, float value) select(CharFloatPredicate predicate) toString()booleanfloatupdateValue(char key, float initialValueIfAbsent, FloatToFloatFunction function) voidupdateValues(CharFloatToFloatFunction function) values()withKeysValues(char key1, float value1, char key2, float value2) withKeysValues(char key1, float value1, char key2, float value2, char key3, float value3) withKeysValues(char key1, float value1, char key2, float value2, char key3, float value3, char key4, float value4) withKeyValue(char key1, float value1) withoutAllKeys(CharIterable keys) withoutKey(char 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.CharFloatMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.impl.map.primitive.CharKeysMap
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.MutableCharFloatMap
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
-
CharFloatHashMap
public CharFloatHashMap() -
CharFloatHashMap
public CharFloatHashMap(int initialCapacity) -
CharFloatHashMap
-
-
Method Details
-
newWithKeysValues
-
newWithKeysValues
-
newWithKeysValues
public static CharFloatHashMap newWithKeysValues(char key1, float value1, char key2, float value2, char key3, float value3) -
newWithKeysValues
public static CharFloatHashMap newWithKeysValues(char key1, float value1, char key2, float value2, char key3, float value3, char key4, float value4) -
equals
- Specified by:
equalsin interfaceCharFloatMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCharFloatMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceCharFloatMap- 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 interfaceMutableCharKeysMap- Specified by:
clearin interfaceMutableFloatValuesMap
-
put
public void put(char key, float value) - Specified by:
putin interfaceMutableCharFloatMap
-
putAll
- Specified by:
putAllin interfaceMutableCharFloatMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableCharFloatMap
-
removeKey
public void removeKey(char key) - Specified by:
removeKeyin interfaceMutableCharFloatMap- Specified by:
removeKeyin interfaceMutableCharKeysMap
-
remove
public void remove(char key) - Specified by:
removein interfaceMutableCharFloatMap
-
removeKeyIfAbsent
public float removeKeyIfAbsent(char key, float value) - Specified by:
removeKeyIfAbsentin interfaceMutableCharFloatMap
-
getIfAbsentPut
public float getIfAbsentPut(char key, float value) - Specified by:
getIfAbsentPutin interfaceMutableCharFloatMap
-
getAndPut
public float getAndPut(char key, float putValue, float defaultValue) - Specified by:
getAndPutin interfaceMutableCharFloatMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableCharFloatMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableCharFloatMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableCharFloatMap
-
addToValue
public float addToValue(char key, float toBeAdded) - Specified by:
addToValuein interfaceMutableCharFloatMap
-
updateValue
- Specified by:
updateValuein interfaceMutableCharFloatMap
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableCharFloatMap
-
withKeysValues
-
withKeysValues
public CharFloatHashMap withKeysValues(char key1, float value1, char key2, float value2, char key3, float value3) -
withKeysValues
public CharFloatHashMap withKeysValues(char key1, float value1, char key2, float value2, char key3, float value3, char key4, float value4) -
withoutKey
- Specified by:
withoutKeyin interfaceMutableCharFloatMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableCharFloatMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableCharFloatMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableCharFloatMap
-
toImmutable
- Specified by:
toImmutablein interfaceCharFloatMap
-
get
public float get(char key) - Specified by:
getin interfaceCharFloatMap
-
getIfAbsent
public float getIfAbsent(char key, float ifAbsent) - Specified by:
getIfAbsentin interfaceCharFloatMap
-
getOrThrow
public float getOrThrow(char key) - Specified by:
getOrThrowin interfaceCharFloatMap
-
containsKey
public boolean containsKey(char key) - Specified by:
containsKeyin interfaceCharFloatMap- Specified by:
containsKeyin interfaceCharKeysMap
-
forEachKey
- Specified by:
forEachKeyin interfaceCharFloatMap- Specified by:
forEachKeyin interfaceCharKeysMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceCharFloatMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceCharFloatMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceCharFloatMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceCharFloatMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceCharFloatMap- Specified by:
flipUniqueValuesin interfaceMutableCharFloatMap
-
select
- Specified by:
selectin interfaceCharFloatMap- Specified by:
selectin interfaceMutableCharFloatMap
-
reject
- Specified by:
rejectin interfaceCharFloatMap- Specified by:
rejectin interfaceMutableCharFloatMap
-
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 interfaceCharFloatMap
-
values
- Specified by:
valuesin interfaceFloatValuesMap
-
trimToSize()instead