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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FloatCharHashMap()FloatCharHashMap(int initialCapacity)FloatCharHashMap(FloatCharMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description charaddToValue(float key, char toBeAdded)MutableFloatCharMapasSynchronized()MutableFloatCharMapasUnmodifiable()MutableCharIteratorcharIterator()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(float key)booleanequals(Object obj)MutableCharFloatMapflipUniqueValues()voidforEachKey(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)MutableFloatSetkeySet()LazyFloatIterablekeysView()RichIterable<FloatCharPair>keyValuesView()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)voidreadExternal(ObjectInput in)FloatCharHashMapreject(FloatCharPredicate predicate)voidremove(float key)voidremoveKey(float key)charremoveKeyIfAbsent(float key, char value)FloatCharHashMapselect(FloatCharPredicate predicate)ImmutableFloatCharMaptoImmutable()StringtoString()booleantrimToSize()charupdateValue(float key, char initialValueIfAbsent, CharToCharFunction function)voidupdateValues(FloatCharToCharFunction function)MutableCharCollectionvalues()FloatCharHashMapwithKeysValues(float key1, char value1, float key2, char value2)FloatCharHashMapwithKeysValues(float key1, char value1, float key2, char value2, float key3, char value3)FloatCharHashMapwithKeysValues(float key1, char value1, float key2, char value2, float key3, char value3, float key4, char value4)FloatCharHashMapwithKeyValue(float key1, char value1)FloatCharHashMapwithoutAllKeys(FloatIterable keys)FloatCharHashMapwithoutKey(float key)voidwriteExternal(ObjectOutput out)-
Methods 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, toArray
-
Methods inherited from class org.eclipse.collections.impl.primitive.AbstractCharIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
-
Methods 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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.CharValuesMap
containsValue, forEachValue, tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.FloatCharMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.impl.map.primitive.FloatKeysMap
isEmpty, notEmpty, size
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableCharValuesMap
collect, reject, select
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableFloatCharMap
putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
-
-
-
Constructor Detail
-
FloatCharHashMap
public FloatCharHashMap()
-
FloatCharHashMap
public FloatCharHashMap(int initialCapacity)
-
FloatCharHashMap
public FloatCharHashMap(FloatCharMap map)
-
-
Method Detail
-
newWithKeysValues
public static FloatCharHashMap newWithKeysValues(float key1, char value1)
-
newWithKeysValues
public static FloatCharHashMap newWithKeysValues(float key1, char value1, float key2, char value2)
-
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
public boolean equals(Object obj)
- Specified by:
equalsin interfaceFloatCharMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceFloatCharMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceFloatCharMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractCharIterable
-
charIterator
public MutableCharIterator 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
public void putAll(FloatCharMap map)
- Specified by:
putAllin interfaceMutableFloatCharMap
-
updateValues
public void updateValues(FloatCharToCharFunction function)
- 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
public char getIfAbsentPut(float key, CharFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableFloatCharMap
-
getIfAbsentPutWith
public <P> char getIfAbsentPutWith(float key, CharFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableFloatCharMap
-
getIfAbsentPutWithKey
public char getIfAbsentPutWithKey(float key, FloatToCharFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableFloatCharMap
-
addToValue
public char addToValue(float key, char toBeAdded)- Specified by:
addToValuein interfaceMutableFloatCharMap
-
updateValue
public char updateValue(float key, char initialValueIfAbsent, CharToCharFunction function)- Specified by:
updateValuein interfaceMutableFloatCharMap
-
withKeyValue
public FloatCharHashMap withKeyValue(float key1, char value1)
- Specified by:
withKeyValuein interfaceMutableFloatCharMap
-
withKeysValues
public FloatCharHashMap withKeysValues(float key1, char value1, float key2, char value2)
-
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
public FloatCharHashMap withoutKey(float key)
- Specified by:
withoutKeyin interfaceMutableFloatCharMap
-
withoutAllKeys
public FloatCharHashMap withoutAllKeys(FloatIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableFloatCharMap
-
asUnmodifiable
public MutableFloatCharMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableFloatCharMap
-
asSynchronized
public MutableFloatCharMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableFloatCharMap
-
toImmutable
public ImmutableFloatCharMap 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
public void forEachKey(FloatProcedure procedure)
- Specified by:
forEachKeyin interfaceFloatCharMap- Specified by:
forEachKeyin interfaceFloatKeysMap
-
forEachKeyValue
public void forEachKeyValue(FloatCharProcedure procedure)
- Specified by:
forEachKeyValuein interfaceFloatCharMap
-
keysView
public LazyFloatIterable keysView()
- Specified by:
keysViewin interfaceFloatCharMap
-
keyValuesView
public RichIterable<FloatCharPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceFloatCharMap
-
flipUniqueValues
public MutableCharFloatMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceFloatCharMap- Specified by:
flipUniqueValuesin interfaceMutableFloatCharMap
-
select
public FloatCharHashMap select(FloatCharPredicate predicate)
- Specified by:
selectin interfaceFloatCharMap- Specified by:
selectin interfaceMutableFloatCharMap
-
reject
public FloatCharHashMap reject(FloatCharPredicate predicate)
- Specified by:
rejectin interfaceFloatCharMap- Specified by:
rejectin interfaceMutableFloatCharMap
-
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 MutableFloatSet keySet()
- Specified by:
keySetin interfaceFloatCharMap
-
values
public MutableCharCollection values()
- Specified by:
valuesin interfaceCharValuesMap
-
-