public class CharFloatHashMap extends AbstractMutableFloatValuesMap implements MutableCharFloatMap, Externalizable, MutableCharKeysMap
Constructor and Description |
---|
CharFloatHashMap() |
CharFloatHashMap(CharFloatMap map) |
CharFloatHashMap(int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
float |
addToValue(char key,
float toBeAdded) |
MutableCharFloatMap |
asSynchronized() |
MutableCharFloatMap |
asUnmodifiable() |
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(char key) |
boolean |
equals(Object obj)
Follows the same general contract as
Map.equals(Object) . |
MutableFloatIterator |
floatIterator() |
void |
forEachKey(CharProcedure procedure) |
void |
forEachKeyValue(CharFloatProcedure procedure) |
float |
get(char key) |
float |
getIfAbsent(char key,
float ifAbsent) |
float |
getIfAbsentPut(char key,
float value) |
float |
getIfAbsentPut(char key,
FloatFunction0 function) |
<P> float |
getIfAbsentPutWith(char key,
FloatFunction<? super P> function,
P parameter) |
float |
getIfAbsentPutWithKey(char key,
CharToFloatFunction function) |
float |
getOrThrow(char key) |
int |
hashCode()
Follows the same general contract as
Map.hashCode() . |
<V> V |
injectInto(V injectedValue,
ObjectFloatToObjectFunction<? super V,? extends V> function) |
MutableCharSet |
keySet() |
LazyCharIterable |
keysView() |
RichIterable<CharFloatPair> |
keyValuesView() |
static CharFloatHashMap |
newWithKeysValues(char key1,
float value1) |
static CharFloatHashMap |
newWithKeysValues(char key1,
float value1,
char key2,
float value2) |
static CharFloatHashMap |
newWithKeysValues(char key1,
float value1,
char key2,
float value2,
char key3,
float value3) |
static CharFloatHashMap |
newWithKeysValues(char key1,
float value1,
char key2,
float value2,
char key3,
float value3,
char key4,
float value4) |
void |
put(char key,
float value) |
void |
putAll(CharFloatMap map) |
void |
readExternal(ObjectInput in) |
CharFloatHashMap |
reject(CharFloatPredicate predicate) |
void |
remove(char key) |
void |
removeKey(char key) |
float |
removeKeyIfAbsent(char key,
float value) |
CharFloatHashMap |
select(CharFloatPredicate predicate) |
ImmutableCharFloatMap |
toImmutable() |
String |
toString()
Returns a string representation of this PrimitiveIterable.
|
float |
updateValue(char key,
float initialValueIfAbsent,
FloatToFloatFunction function) |
MutableFloatCollection |
values() |
CharFloatHashMap |
withKeysValues(char key1,
float value1,
char key2,
float value2) |
CharFloatHashMap |
withKeysValues(char key1,
float value1,
char key2,
float value2,
char key3,
float value3) |
CharFloatHashMap |
withKeysValues(char key1,
float value1,
char key2,
float value2,
char key3,
float value3,
char key4,
float value4) |
CharFloatHashMap |
withKeyValue(char key1,
float value1) |
CharFloatHashMap |
withoutAllKeys(CharIterable keys) |
CharFloatHashMap |
withoutKey(char key) |
void |
writeExternal(ObjectOutput out) |
allSatisfy, anySatisfy, appendString, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, select, size, sum, toArray
asLazy, average, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
collect, reject, select
containsValue, forEachValue
allSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
isEmpty, notEmpty, size
public CharFloatHashMap()
public CharFloatHashMap(int initialCapacity)
public CharFloatHashMap(CharFloatMap map)
public static CharFloatHashMap newWithKeysValues(char key1, float value1)
public static CharFloatHashMap newWithKeysValues(char key1, float value1, char key2, float value2)
public static CharFloatHashMap newWithKeysValues(char key1, float value1, char key2, float value2, char key3, float value3)
public static CharFloatHashMap newWithKeysValues(char key1, float value1, char key2, float value2, char key3, float value3, char key4, float value4)
public boolean equals(Object obj)
CharFloatMap
Map.equals(Object)
.equals
in interface CharFloatMap
equals
in class Object
public int hashCode()
CharFloatMap
Map.hashCode()
.hashCode
in interface CharFloatMap
hashCode
in class Object
public String toString()
PrimitiveIterable
toString
in interface CharFloatMap
toString
in interface PrimitiveIterable
toString
in class AbstractFloatIterable
public MutableFloatIterator floatIterator()
floatIterator
in interface FloatIterable
floatIterator
in interface MutableFloatValuesMap
public <V> V injectInto(V injectedValue, ObjectFloatToObjectFunction<? super V,? extends V> function)
injectInto
in interface FloatIterable
public void clear()
clear
in interface MutableFloatValuesMap
clear
in interface MutableCharKeysMap
public void put(char key, float value)
put
in interface MutableCharFloatMap
public void putAll(CharFloatMap map)
putAll
in interface MutableCharFloatMap
public void removeKey(char key)
removeKey
in interface MutableCharFloatMap
removeKey
in interface MutableCharKeysMap
public void remove(char key)
remove
in interface MutableCharFloatMap
public float removeKeyIfAbsent(char key, float value)
removeKeyIfAbsent
in interface MutableCharFloatMap
public float getIfAbsentPut(char key, float value)
getIfAbsentPut
in interface MutableCharFloatMap
public float getIfAbsentPut(char key, FloatFunction0 function)
getIfAbsentPut
in interface MutableCharFloatMap
public <P> float getIfAbsentPutWith(char key, FloatFunction<? super P> function, P parameter)
getIfAbsentPutWith
in interface MutableCharFloatMap
public float getIfAbsentPutWithKey(char key, CharToFloatFunction function)
getIfAbsentPutWithKey
in interface MutableCharFloatMap
public float addToValue(char key, float toBeAdded)
addToValue
in interface MutableCharFloatMap
public float updateValue(char key, float initialValueIfAbsent, FloatToFloatFunction function)
updateValue
in interface MutableCharFloatMap
public CharFloatHashMap withKeyValue(char key1, float value1)
withKeyValue
in interface MutableCharFloatMap
public CharFloatHashMap withKeysValues(char key1, float value1, char key2, float value2)
public CharFloatHashMap withKeysValues(char key1, float value1, char key2, float value2, char key3, float value3)
public CharFloatHashMap withKeysValues(char key1, float value1, char key2, float value2, char key3, float value3, char key4, float value4)
public CharFloatHashMap withoutKey(char key)
withoutKey
in interface MutableCharFloatMap
public CharFloatHashMap withoutAllKeys(CharIterable keys)
withoutAllKeys
in interface MutableCharFloatMap
public MutableCharFloatMap asUnmodifiable()
asUnmodifiable
in interface MutableCharFloatMap
public MutableCharFloatMap asSynchronized()
asSynchronized
in interface MutableCharFloatMap
public ImmutableCharFloatMap toImmutable()
toImmutable
in interface CharFloatMap
public float get(char key)
get
in interface CharFloatMap
public float getIfAbsent(char key, float ifAbsent)
getIfAbsent
in interface CharFloatMap
public float getOrThrow(char key)
getOrThrow
in interface CharFloatMap
public boolean containsKey(char key)
containsKey
in interface CharFloatMap
containsKey
in interface CharKeysMap
public void forEachKey(CharProcedure procedure)
forEachKey
in interface CharFloatMap
forEachKey
in interface CharKeysMap
public void forEachKeyValue(CharFloatProcedure procedure)
forEachKeyValue
in interface CharFloatMap
public LazyCharIterable keysView()
keysView
in interface CharFloatMap
public RichIterable<CharFloatPair> keyValuesView()
keyValuesView
in interface CharFloatMap
public CharFloatHashMap select(CharFloatPredicate predicate)
select
in interface CharFloatMap
select
in interface MutableCharFloatMap
public CharFloatHashMap reject(CharFloatPredicate predicate)
reject
in interface CharFloatMap
reject
in interface MutableCharFloatMap
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 MutableCharSet keySet()
keySet
in interface CharFloatMap
public MutableFloatCollection values()
values
in interface FloatValuesMap
Copyright © 2004–2016. All rights reserved.