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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CharFloatHashMap()CharFloatHashMap(int initialCapacity)CharFloatHashMap(CharFloatMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description floataddToValue(char key, float toBeAdded)MutableCharFloatMapasSynchronized()MutableCharFloatMapasUnmodifiable()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(char key)booleanequals(Object obj)MutableFloatCharMapflipUniqueValues()MutableFloatIteratorfloatIterator()voidforEachKey(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)MutableCharSetkeySet()LazyCharIterablekeysView()RichIterable<CharFloatPair>keyValuesView()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)voidreadExternal(ObjectInput in)CharFloatHashMapreject(CharFloatPredicate predicate)voidremove(char key)voidremoveKey(char key)floatremoveKeyIfAbsent(char key, float value)CharFloatHashMapselect(CharFloatPredicate predicate)ImmutableCharFloatMaptoImmutable()StringtoString()booleantrimToSize()floatupdateValue(char key, float initialValueIfAbsent, FloatToFloatFunction function)voidupdateValues(CharFloatToFloatFunction function)MutableFloatCollectionvalues()CharFloatHashMapwithKeysValues(char key1, float value1, char key2, float value2)CharFloatHashMapwithKeysValues(char key1, float value1, char key2, float value2, char key3, float value3)CharFloatHashMapwithKeysValues(char key1, float value1, char key2, float value2, char key3, float value3, char key4, float value4)CharFloatHashMapwithKeyValue(char key1, float value1)CharFloatHashMapwithoutAllKeys(CharIterable keys)CharFloatHashMapwithoutKey(char 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.CharFloatMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.impl.map.primitive.CharKeysMap
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.MutableCharFloatMap
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
-
CharFloatHashMap
public CharFloatHashMap()
-
CharFloatHashMap
public CharFloatHashMap(int initialCapacity)
-
CharFloatHashMap
public CharFloatHashMap(CharFloatMap map)
-
-
Method Detail
-
newWithKeysValues
public static CharFloatHashMap newWithKeysValues(char key1, float value1)
-
newWithKeysValues
public static CharFloatHashMap newWithKeysValues(char key1, float value1, char key2, float value2)
-
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
public boolean equals(Object obj)
- Specified by:
equalsin interfaceCharFloatMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceCharFloatMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceCharFloatMap- 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 interfaceMutableCharKeysMap- Specified by:
clearin interfaceMutableFloatValuesMap
-
put
public void put(char key, float value)- Specified by:
putin interfaceMutableCharFloatMap
-
putAll
public void putAll(CharFloatMap map)
- Specified by:
putAllin interfaceMutableCharFloatMap
-
updateValues
public void updateValues(CharFloatToFloatFunction function)
- 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
public float getIfAbsentPut(char key, FloatFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableCharFloatMap
-
getIfAbsentPutWith
public <P> float getIfAbsentPutWith(char key, FloatFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableCharFloatMap
-
getIfAbsentPutWithKey
public float getIfAbsentPutWithKey(char key, CharToFloatFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableCharFloatMap
-
addToValue
public float addToValue(char key, float toBeAdded)- Specified by:
addToValuein interfaceMutableCharFloatMap
-
updateValue
public float updateValue(char key, float initialValueIfAbsent, FloatToFloatFunction function)- Specified by:
updateValuein interfaceMutableCharFloatMap
-
withKeyValue
public CharFloatHashMap withKeyValue(char key1, float value1)
- Specified by:
withKeyValuein interfaceMutableCharFloatMap
-
withKeysValues
public CharFloatHashMap withKeysValues(char key1, float value1, char key2, float value2)
-
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
public CharFloatHashMap withoutKey(char key)
- Specified by:
withoutKeyin interfaceMutableCharFloatMap
-
withoutAllKeys
public CharFloatHashMap withoutAllKeys(CharIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableCharFloatMap
-
asUnmodifiable
public MutableCharFloatMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableCharFloatMap
-
asSynchronized
public MutableCharFloatMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableCharFloatMap
-
toImmutable
public ImmutableCharFloatMap 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
public void forEachKey(CharProcedure procedure)
- Specified by:
forEachKeyin interfaceCharFloatMap- Specified by:
forEachKeyin interfaceCharKeysMap
-
forEachKeyValue
public void forEachKeyValue(CharFloatProcedure procedure)
- Specified by:
forEachKeyValuein interfaceCharFloatMap
-
keysView
public LazyCharIterable keysView()
- Specified by:
keysViewin interfaceCharFloatMap
-
keyValuesView
public RichIterable<CharFloatPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceCharFloatMap
-
flipUniqueValues
public MutableFloatCharMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceCharFloatMap- Specified by:
flipUniqueValuesin interfaceMutableCharFloatMap
-
select
public CharFloatHashMap select(CharFloatPredicate predicate)
- Specified by:
selectin interfaceCharFloatMap- Specified by:
selectin interfaceMutableCharFloatMap
-
reject
public CharFloatHashMap reject(CharFloatPredicate predicate)
- Specified by:
rejectin interfaceCharFloatMap- Specified by:
rejectin interfaceMutableCharFloatMap
-
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 MutableCharSet keySet()
- Specified by:
keySetin interfaceCharFloatMap
-
values
public MutableFloatCollection values()
- Specified by:
valuesin interfaceFloatValuesMap
-
-