Class FloatCharHashMap
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractCharIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableCharValuesMap
org.eclipse.collections.impl.map.mutable.primitive.FloatCharHashMap
- All Implemented Interfaces:
Externalizable,Serializable,CharIterable,CharValuesMap,FloatCharMap,MutableCharValuesMap,MutableFloatCharMap,PrimitiveIterable,MutableFloatKeysMap,FloatKeysMap
public class FloatCharHashMap
extends AbstractMutableCharValuesMap
implements MutableFloatCharMap, Externalizable, MutableFloatKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncharaddToValue(float key, char toBeAdded) booleanallSatisfyKeyValue(FloatCharPredicate predicate) voidclear()voidcompact()Deprecated.booleancontainsKey(float key) booleanvoidforEachKey(FloatProcedure procedure) voidforEachKeyValue(FloatCharProcedure procedure) charget(float key) chargetAndPut(float key, char putValue, char defaultValue) chargetIfAbsent(float key, char ifAbsent) chargetIfAbsentPut(float key, char value) chargetIfAbsentPut(float key, CharFunction0 function) <P> chargetIfAbsentPutWith(float key, CharFunction<? super P> function, P parameter) chargetIfAbsentPutWithKey(float key, FloatToCharFunction function) chargetOrThrow(float key) inthashCode()<V> VinjectInto(V injectedValue, ObjectCharToObjectFunction<? super V, ? extends V> function) keySet()keysView()static FloatCharHashMapnewWithKeysValues(float key1, char value1) static FloatCharHashMapnewWithKeysValues(float key1, char value1, float key2, char value2) static FloatCharHashMapnewWithKeysValues(float key1, char value1, float key2, char value2, float key3, char value3) static FloatCharHashMapnewWithKeysValues(float key1, char value1, float key2, char value2, float key3, char value3, float key4, char value4) voidput(float key, char value) voidputAll(FloatCharMap map) voidreject(FloatCharPredicate predicate) voidremove(float key) voidremoveKey(float key) charremoveKeyIfAbsent(float key, char value) select(FloatCharPredicate predicate) toString()booleancharupdateValue(float key, char initialValueIfAbsent, CharToCharFunction function) voidupdateValues(FloatCharToCharFunction function) values()withKeysValues(float key1, char value1, float key2, char value2) withKeysValues(float key1, char value1, float key2, char value2, float key3, char value3) withKeysValues(float key1, char value1, float key2, char value2, float key3, char value3, float key4, char value4) withKeyValue(float key1, char value1) withoutAllKeys(FloatIterable keys) withoutKey(float key) voidMethods inherited from class org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableCharValuesMap
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.AbstractCharIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListMethods inherited from interface org.eclipse.collections.api.CharIterable
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.CharValuesMap
containsValue, forEachValue, tapMethods inherited from interface org.eclipse.collections.api.map.primitive.FloatCharMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.impl.map.primitive.FloatKeysMap
isEmpty, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableCharValuesMap
collect, reject, selectMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableFloatCharMap
putPair, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
Constructor Details
-
FloatCharHashMap
public FloatCharHashMap() -
FloatCharHashMap
public FloatCharHashMap(int initialCapacity) -
FloatCharHashMap
-
-
Method Details
-
newWithKeysValues
-
newWithKeysValues
-
newWithKeysValues
public static FloatCharHashMap newWithKeysValues(float key1, char value1, float key2, char value2, float key3, char value3) -
newWithKeysValues
public static FloatCharHashMap newWithKeysValues(float key1, char value1, float key2, char value2, float key3, char value3, float key4, char value4) -
equals
- Specified by:
equalsin interfaceFloatCharMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceFloatCharMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceFloatCharMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractCharIterable
-
charIterator
- Specified by:
charIteratorin interfaceCharIterable- Specified by:
charIteratorin interfaceMutableCharValuesMap
-
injectInto
public <V> V injectInto(V injectedValue, ObjectCharToObjectFunction<? super V, ? extends V> function) - Specified by:
injectIntoin interfaceCharIterable
-
clear
public void clear()- Specified by:
clearin interfaceMutableCharValuesMap- Specified by:
clearin interfaceMutableFloatKeysMap
-
put
public void put(float key, char value) - Specified by:
putin interfaceMutableFloatCharMap
-
putAll
- Specified by:
putAllin interfaceMutableFloatCharMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableFloatCharMap
-
removeKey
public void removeKey(float key) - Specified by:
removeKeyin interfaceMutableFloatCharMap- Specified by:
removeKeyin interfaceMutableFloatKeysMap
-
remove
public void remove(float key) - Specified by:
removein interfaceMutableFloatCharMap
-
removeKeyIfAbsent
public char removeKeyIfAbsent(float key, char value) - Specified by:
removeKeyIfAbsentin interfaceMutableFloatCharMap
-
getIfAbsentPut
public char getIfAbsentPut(float key, char value) - Specified by:
getIfAbsentPutin interfaceMutableFloatCharMap
-
getAndPut
public char getAndPut(float key, char putValue, char defaultValue) - Specified by:
getAndPutin interfaceMutableFloatCharMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableFloatCharMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableFloatCharMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableFloatCharMap
-
addToValue
public char addToValue(float key, char toBeAdded) - Specified by:
addToValuein interfaceMutableFloatCharMap
-
updateValue
- Specified by:
updateValuein interfaceMutableFloatCharMap
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableFloatCharMap
-
withKeysValues
-
withKeysValues
public FloatCharHashMap withKeysValues(float key1, char value1, float key2, char value2, float key3, char value3) -
withKeysValues
public FloatCharHashMap withKeysValues(float key1, char value1, float key2, char value2, float key3, char value3, float key4, char value4) -
withoutKey
- Specified by:
withoutKeyin interfaceMutableFloatCharMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableFloatCharMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableFloatCharMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableFloatCharMap
-
toImmutable
- Specified by:
toImmutablein interfaceFloatCharMap
-
get
public char get(float key) - Specified by:
getin interfaceFloatCharMap
-
getIfAbsent
public char getIfAbsent(float key, char ifAbsent) - Specified by:
getIfAbsentin interfaceFloatCharMap
-
getOrThrow
public char getOrThrow(float key) - Specified by:
getOrThrowin interfaceFloatCharMap
-
containsKey
public boolean containsKey(float key) - Specified by:
containsKeyin interfaceFloatCharMap- Specified by:
containsKeyin interfaceFloatKeysMap
-
forEachKey
- Specified by:
forEachKeyin interfaceFloatCharMap- Specified by:
forEachKeyin interfaceFloatKeysMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceFloatCharMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceFloatCharMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceFloatCharMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceFloatCharMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceFloatCharMap- Specified by:
flipUniqueValuesin interfaceMutableFloatCharMap
-
select
- Specified by:
selectin interfaceFloatCharMap- Specified by:
selectin interfaceMutableFloatCharMap
-
reject
- Specified by:
rejectin interfaceFloatCharMap- Specified by:
rejectin interfaceMutableFloatCharMap
-
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 interfaceFloatCharMap
-
values
- Specified by:
valuesin interfaceCharValuesMap
-
trimToSize()instead