Externalizable
, Serializable
, CharIterable
, CharValuesMap
, FloatCharMap
, MutableCharValuesMap
, MutableFloatCharMap
, PrimitiveIterable
, MutableFloatKeysMap
, FloatKeysMap
public class FloatCharHashMap extends AbstractMutableCharValuesMap implements MutableFloatCharMap, Externalizable, MutableFloatKeysMap
Constructor | Description |
---|---|
FloatCharHashMap() |
|
FloatCharHashMap(int initialCapacity) |
|
FloatCharHashMap(FloatCharMap map) |
Modifier and Type | Method | Description |
---|---|---|
char |
addToValue(float key,
char toBeAdded) |
|
MutableFloatCharMap |
asSynchronized() |
|
MutableFloatCharMap |
asUnmodifiable() |
|
MutableCharIterator |
charIterator() |
Returns a primitive iterator that can be used to iterate over the CharIterable in an
imperative style.
|
void |
clear() |
|
void |
compact() |
Rehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels.
|
boolean |
containsKey(float key) |
|
boolean |
equals(Object obj) |
Follows the same general contract as
Map.equals(Object) . |
void |
forEachKey(FloatProcedure procedure) |
|
void |
forEachKeyValue(FloatCharProcedure procedure) |
|
char |
get(float key) |
|
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() |
Follows the same general contract as
Map.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() |
Returns a string with the elements of this iterable separated by commas with spaces and
enclosed in square brackets.
|
char |
updateValue(float key,
char initialValueIfAbsent,
CharToCharFunction 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) |
asLazy, average, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
allSatisfy, anySatisfy, appendString, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, select, size, sum, toArray
allSatisfy, anySatisfy, asLazy, average, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
containsValue, forEachValue
isEmpty, notEmpty, size
collect, reject, select
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
public FloatCharHashMap()
public FloatCharHashMap(int initialCapacity)
public FloatCharHashMap(FloatCharMap map)
public static FloatCharHashMap newWithKeysValues(float key1, char value1)
public static FloatCharHashMap newWithKeysValues(float key1, char value1, float key2, char value2)
public static FloatCharHashMap newWithKeysValues(float key1, char value1, float key2, char value2, float key3, char value3)
public static FloatCharHashMap newWithKeysValues(float key1, char value1, float key2, char value2, float key3, char value3, float key4, char value4)
public boolean equals(Object obj)
FloatCharMap
Map.equals(Object)
.equals
in interface FloatCharMap
equals
in class Object
public int hashCode()
FloatCharMap
Map.hashCode()
.hashCode
in interface FloatCharMap
hashCode
in class Object
public String toString()
PrimitiveIterable
Assert.assertEquals("[]", IntLists.mutable.empty().toString()); Assert.assertEquals("[1]", IntLists.mutable.with(1).toString()); Assert.assertEquals("[1, 2, 3]", IntLists.mutable.with(1, 2, 3).toString());
toString
in interface FloatCharMap
toString
in interface PrimitiveIterable
toString
in class AbstractCharIterable
AbstractCollection.toString()
public MutableCharIterator charIterator()
CharIterable
charIterator
in interface CharIterable
charIterator
in interface MutableCharValuesMap
public <V> V injectInto(V injectedValue, ObjectCharToObjectFunction<? super V,? extends V> function)
injectInto
in interface CharIterable
public void clear()
clear
in interface MutableCharValuesMap
clear
in interface MutableFloatKeysMap
public void put(float key, char value)
put
in interface MutableFloatCharMap
public void putAll(FloatCharMap map)
putAll
in interface MutableFloatCharMap
public void removeKey(float key)
removeKey
in interface MutableFloatCharMap
removeKey
in interface MutableFloatKeysMap
public void remove(float key)
remove
in interface MutableFloatCharMap
public char removeKeyIfAbsent(float key, char value)
removeKeyIfAbsent
in interface MutableFloatCharMap
public char getIfAbsentPut(float key, char value)
getIfAbsentPut
in interface MutableFloatCharMap
public char getIfAbsentPut(float key, CharFunction0 function)
getIfAbsentPut
in interface MutableFloatCharMap
public <P> char getIfAbsentPutWith(float key, CharFunction<? super P> function, P parameter)
getIfAbsentPutWith
in interface MutableFloatCharMap
public char getIfAbsentPutWithKey(float key, FloatToCharFunction function)
getIfAbsentPutWithKey
in interface MutableFloatCharMap
public char addToValue(float key, char toBeAdded)
addToValue
in interface MutableFloatCharMap
public char updateValue(float key, char initialValueIfAbsent, CharToCharFunction function)
updateValue
in interface MutableFloatCharMap
public FloatCharHashMap withKeyValue(float key1, char value1)
withKeyValue
in interface MutableFloatCharMap
public FloatCharHashMap withKeysValues(float key1, char value1, float key2, char value2)
public FloatCharHashMap withKeysValues(float key1, char value1, float key2, char value2, float key3, char value3)
public FloatCharHashMap withKeysValues(float key1, char value1, float key2, char value2, float key3, char value3, float key4, char value4)
public FloatCharHashMap withoutKey(float key)
withoutKey
in interface MutableFloatCharMap
public FloatCharHashMap withoutAllKeys(FloatIterable keys)
withoutAllKeys
in interface MutableFloatCharMap
public MutableFloatCharMap asUnmodifiable()
asUnmodifiable
in interface MutableFloatCharMap
public MutableFloatCharMap asSynchronized()
asSynchronized
in interface MutableFloatCharMap
public ImmutableFloatCharMap toImmutable()
toImmutable
in interface FloatCharMap
public char get(float key)
get
in interface FloatCharMap
public char getIfAbsent(float key, char ifAbsent)
getIfAbsent
in interface FloatCharMap
public char getOrThrow(float key)
getOrThrow
in interface FloatCharMap
public boolean containsKey(float key)
containsKey
in interface FloatCharMap
containsKey
in interface FloatKeysMap
public void forEachKey(FloatProcedure procedure)
forEachKey
in interface FloatCharMap
forEachKey
in interface FloatKeysMap
public void forEachKeyValue(FloatCharProcedure procedure)
forEachKeyValue
in interface FloatCharMap
public LazyFloatIterable keysView()
keysView
in interface FloatCharMap
public RichIterable<FloatCharPair> keyValuesView()
keyValuesView
in interface FloatCharMap
public FloatCharHashMap select(FloatCharPredicate predicate)
select
in interface FloatCharMap
select
in interface MutableFloatCharMap
public FloatCharHashMap reject(FloatCharPredicate predicate)
reject
in interface FloatCharMap
reject
in interface MutableFloatCharMap
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void compact()
public MutableFloatSet keySet()
keySet
in interface FloatCharMap
public MutableCharCollection values()
values
in interface CharValuesMap
Copyright © 2004–2017. All rights reserved.