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 char
addToValue(float key, char toBeAdded)
MutableFloatCharMap
asSynchronized()
MutableFloatCharMap
asUnmodifiable()
MutableCharIterator
charIterator()
void
clear()
void
compact()
Deprecated.since 12.0 - UsetrimToSize()
insteadboolean
containsKey(float key)
boolean
equals(Object obj)
MutableCharFloatMap
flipUniqueValues()
void
forEachKey(FloatProcedure procedure)
void
forEachKeyValue(FloatCharProcedure procedure)
char
get(float key)
char
getAndPut(float key, char putValue, char defaultValue)
char
getIfAbsent(float key, char ifAbsent)
char
getIfAbsentPut(float key, char value)
char
getIfAbsentPut(float key, CharFunction0 function)
<P> char
getIfAbsentPutWith(float key, CharFunction<? super P> function, P parameter)
char
getIfAbsentPutWithKey(float key, FloatToCharFunction function)
char
getOrThrow(float key)
int
hashCode()
<V> V
injectInto(V injectedValue, ObjectCharToObjectFunction<? super V,? extends V> function)
MutableFloatSet
keySet()
LazyFloatIterable
keysView()
RichIterable<FloatCharPair>
keyValuesView()
static FloatCharHashMap
newWithKeysValues(float key1, char value1)
static FloatCharHashMap
newWithKeysValues(float key1, char value1, float key2, char value2)
static FloatCharHashMap
newWithKeysValues(float key1, char value1, float key2, char value2, float key3, char value3)
static FloatCharHashMap
newWithKeysValues(float key1, char value1, float key2, char value2, float key3, char value3, float key4, char value4)
void
put(float key, char value)
void
putAll(FloatCharMap map)
void
readExternal(ObjectInput in)
FloatCharHashMap
reject(FloatCharPredicate predicate)
void
remove(float key)
void
removeKey(float key)
char
removeKeyIfAbsent(float key, char value)
FloatCharHashMap
select(FloatCharPredicate predicate)
ImmutableFloatCharMap
toImmutable()
String
toString()
boolean
trimToSize()
char
updateValue(float key, char initialValueIfAbsent, CharToCharFunction function)
void
updateValues(FloatCharToCharFunction function)
MutableCharCollection
values()
FloatCharHashMap
withKeysValues(float key1, char value1, float key2, char value2)
FloatCharHashMap
withKeysValues(float key1, char value1, float key2, char value2, float key3, char value3)
FloatCharHashMap
withKeysValues(float key1, char value1, float key2, char value2, float key3, char value3, float key4, char value4)
FloatCharHashMap
withKeyValue(float key1, char value1)
FloatCharHashMap
withoutAllKeys(FloatIterable keys)
FloatCharHashMap
withoutKey(float key)
void
writeExternal(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:
equals
in interfaceFloatCharMap
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceFloatCharMap
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfaceFloatCharMap
- Specified by:
toString
in interfacePrimitiveIterable
- Overrides:
toString
in classAbstractCharIterable
-
charIterator
public MutableCharIterator charIterator()
- Specified by:
charIterator
in interfaceCharIterable
- Specified by:
charIterator
in interfaceMutableCharValuesMap
-
injectInto
public <V> V injectInto(V injectedValue, ObjectCharToObjectFunction<? super V,? extends V> function)
- Specified by:
injectInto
in interfaceCharIterable
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableCharValuesMap
- Specified by:
clear
in interfaceMutableFloatKeysMap
-
put
public void put(float key, char value)
- Specified by:
put
in interfaceMutableFloatCharMap
-
putAll
public void putAll(FloatCharMap map)
- Specified by:
putAll
in interfaceMutableFloatCharMap
-
updateValues
public void updateValues(FloatCharToCharFunction function)
- Specified by:
updateValues
in interfaceMutableFloatCharMap
-
removeKey
public void removeKey(float key)
- Specified by:
removeKey
in interfaceMutableFloatCharMap
- Specified by:
removeKey
in interfaceMutableFloatKeysMap
-
remove
public void remove(float key)
- Specified by:
remove
in interfaceMutableFloatCharMap
-
removeKeyIfAbsent
public char removeKeyIfAbsent(float key, char value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableFloatCharMap
-
getIfAbsentPut
public char getIfAbsentPut(float key, char value)
- Specified by:
getIfAbsentPut
in interfaceMutableFloatCharMap
-
getAndPut
public char getAndPut(float key, char putValue, char defaultValue)
- Specified by:
getAndPut
in interfaceMutableFloatCharMap
-
getIfAbsentPut
public char getIfAbsentPut(float key, CharFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableFloatCharMap
-
getIfAbsentPutWith
public <P> char getIfAbsentPutWith(float key, CharFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableFloatCharMap
-
getIfAbsentPutWithKey
public char getIfAbsentPutWithKey(float key, FloatToCharFunction function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableFloatCharMap
-
addToValue
public char addToValue(float key, char toBeAdded)
- Specified by:
addToValue
in interfaceMutableFloatCharMap
-
updateValue
public char updateValue(float key, char initialValueIfAbsent, CharToCharFunction function)
- Specified by:
updateValue
in interfaceMutableFloatCharMap
-
withKeyValue
public FloatCharHashMap withKeyValue(float key1, char value1)
- Specified by:
withKeyValue
in 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:
withoutKey
in interfaceMutableFloatCharMap
-
withoutAllKeys
public FloatCharHashMap withoutAllKeys(FloatIterable keys)
- Specified by:
withoutAllKeys
in interfaceMutableFloatCharMap
-
asUnmodifiable
public MutableFloatCharMap asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableFloatCharMap
-
asSynchronized
public MutableFloatCharMap asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableFloatCharMap
-
toImmutable
public ImmutableFloatCharMap toImmutable()
- Specified by:
toImmutable
in interfaceFloatCharMap
-
get
public char get(float key)
- Specified by:
get
in interfaceFloatCharMap
-
getIfAbsent
public char getIfAbsent(float key, char ifAbsent)
- Specified by:
getIfAbsent
in interfaceFloatCharMap
-
getOrThrow
public char getOrThrow(float key)
- Specified by:
getOrThrow
in interfaceFloatCharMap
-
containsKey
public boolean containsKey(float key)
- Specified by:
containsKey
in interfaceFloatCharMap
- Specified by:
containsKey
in interfaceFloatKeysMap
-
forEachKey
public void forEachKey(FloatProcedure procedure)
- Specified by:
forEachKey
in interfaceFloatCharMap
- Specified by:
forEachKey
in interfaceFloatKeysMap
-
forEachKeyValue
public void forEachKeyValue(FloatCharProcedure procedure)
- Specified by:
forEachKeyValue
in interfaceFloatCharMap
-
keysView
public LazyFloatIterable keysView()
- Specified by:
keysView
in interfaceFloatCharMap
-
keyValuesView
public RichIterable<FloatCharPair> keyValuesView()
- Specified by:
keyValuesView
in interfaceFloatCharMap
-
flipUniqueValues
public MutableCharFloatMap flipUniqueValues()
- Specified by:
flipUniqueValues
in interfaceFloatCharMap
- Specified by:
flipUniqueValues
in interfaceMutableFloatCharMap
-
select
public FloatCharHashMap select(FloatCharPredicate predicate)
- Specified by:
select
in interfaceFloatCharMap
- Specified by:
select
in interfaceMutableFloatCharMap
-
reject
public FloatCharHashMap reject(FloatCharPredicate predicate)
- Specified by:
reject
in interfaceFloatCharMap
- Specified by:
reject
in interfaceMutableFloatCharMap
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
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:
keySet
in interfaceFloatCharMap
-
values
public MutableCharCollection values()
- Specified by:
values
in interfaceCharValuesMap
-
-