public class CharFloatHashMap extends AbstractMutableFloatValuesMap implements com.gs.collections.api.map.primitive.MutableCharFloatMap, java.io.Externalizable, MutableCharKeysMap
AbstractMutableFloatValuesMap.AbstractFloatValuesCollection, AbstractMutableFloatValuesMap.SentinelValues| Constructor and Description |
|---|
CharFloatHashMap() |
CharFloatHashMap(com.gs.collections.api.map.primitive.CharFloatMap map) |
CharFloatHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
float |
addToValue(char key,
float toBeAdded) |
com.gs.collections.api.map.primitive.MutableCharFloatMap |
asSynchronized() |
com.gs.collections.api.map.primitive.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(java.lang.Object obj)
Follows the same general contract as
Map.equals(Object). |
com.gs.collections.api.iterator.MutableFloatIterator |
floatIterator() |
void |
forEachKey(com.gs.collections.api.block.procedure.primitive.CharProcedure procedure) |
void |
forEachKeyValue(com.gs.collections.api.block.procedure.primitive.CharFloatProcedure procedure) |
float |
get(char key) |
protected float |
getEmptyValue() |
float |
getIfAbsent(char key,
float ifAbsent) |
float |
getIfAbsentPut(char key,
float value) |
float |
getIfAbsentPut(char key,
com.gs.collections.api.block.function.primitive.FloatFunction0 function) |
<P> float |
getIfAbsentPutWith(char key,
com.gs.collections.api.block.function.primitive.FloatFunction<? super P> function,
P parameter) |
float |
getIfAbsentPutWithKey(char key,
com.gs.collections.api.block.function.primitive.CharToFloatFunction function) |
protected int |
getOccupiedWithData() |
float |
getOrThrow(char key) |
protected AbstractMutableFloatValuesMap.SentinelValues |
getSentinelValues() |
protected int |
getTableSize() |
protected float |
getValueAtIndex(int index) |
int |
hashCode()
Follows the same general contract as
Map.hashCode(). |
<V> V |
injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectFloatToObjectFunction<? super V,? extends V> function) |
protected boolean |
isNonSentinelAtIndex(int index) |
com.gs.collections.api.set.primitive.MutableCharSet |
keySet() |
com.gs.collections.api.LazyCharIterable |
keysView() |
com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.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(com.gs.collections.api.map.primitive.CharFloatMap map) |
void |
readExternal(java.io.ObjectInput in) |
CharFloatHashMap |
reject(com.gs.collections.api.block.predicate.primitive.CharFloatPredicate predicate) |
void |
remove(char key) |
void |
removeKey(char key) |
float |
removeKeyIfAbsent(char key,
float value) |
CharFloatHashMap |
select(com.gs.collections.api.block.predicate.primitive.CharFloatPredicate predicate) |
protected void |
setSentinelValuesNull() |
com.gs.collections.api.map.primitive.ImmutableCharFloatMap |
toImmutable() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
float |
updateValue(char key,
float initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.FloatToFloatFunction function) |
com.gs.collections.api.collection.primitive.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(com.gs.collections.api.CharIterable keys) |
CharFloatHashMap |
withoutKey(char key) |
void |
writeExternal(java.io.ObjectOutput out) |
addEmptyKeyValue, addRemovedKeyValue, allSatisfy, anySatisfy, appendString, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, removeEmptyKey, removeRemovedKey, select, size, sum, toArrayappendString, appendString, asLazy, average, containsAll, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListclone, finalize, getClass, notify, notifyAll, wait, wait, waitcollect, reject, selectcontainsValue, forEachValueallSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeisEmpty, notEmpty, sizepublic CharFloatHashMap()
public CharFloatHashMap(int initialCapacity)
public CharFloatHashMap(com.gs.collections.api.map.primitive.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)
protected int getOccupiedWithData()
getOccupiedWithData in class AbstractMutableFloatValuesMapprotected AbstractMutableFloatValuesMap.SentinelValues getSentinelValues()
getSentinelValues in class AbstractMutableFloatValuesMapprotected void setSentinelValuesNull()
setSentinelValuesNull in class AbstractMutableFloatValuesMapprotected float getEmptyValue()
getEmptyValue in class AbstractMutableFloatValuesMapprotected int getTableSize()
getTableSize in class AbstractMutableFloatValuesMapprotected float getValueAtIndex(int index)
getValueAtIndex in class AbstractMutableFloatValuesMappublic boolean equals(java.lang.Object obj)
com.gs.collections.api.map.primitive.CharFloatMapMap.equals(Object).equals in interface com.gs.collections.api.map.primitive.CharFloatMapequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.map.primitive.CharFloatMapMap.hashCode().hashCode in interface com.gs.collections.api.map.primitive.CharFloatMaphashCode in class java.lang.Objectpublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.map.primitive.CharFloatMaptoString in interface com.gs.collections.api.PrimitiveIterabletoString in class AbstractFloatIterablepublic com.gs.collections.api.iterator.MutableFloatIterator floatIterator()
floatIterator in interface com.gs.collections.api.FloatIterablefloatIterator in interface com.gs.collections.api.map.primitive.MutableFloatValuesMappublic <V> V injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectFloatToObjectFunction<? super V,? extends V> function)
injectInto in interface com.gs.collections.api.FloatIterablepublic void clear()
clear in interface com.gs.collections.api.map.primitive.MutableFloatValuesMapclear in interface MutableCharKeysMappublic void put(char key,
float value)
put in interface com.gs.collections.api.map.primitive.MutableCharFloatMappublic void putAll(com.gs.collections.api.map.primitive.CharFloatMap map)
putAll in interface com.gs.collections.api.map.primitive.MutableCharFloatMappublic void removeKey(char key)
removeKey in interface com.gs.collections.api.map.primitive.MutableCharFloatMapremoveKey in interface MutableCharKeysMappublic void remove(char key)
remove in interface com.gs.collections.api.map.primitive.MutableCharFloatMappublic float removeKeyIfAbsent(char key,
float value)
removeKeyIfAbsent in interface com.gs.collections.api.map.primitive.MutableCharFloatMappublic float getIfAbsentPut(char key,
float value)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableCharFloatMappublic float getIfAbsentPut(char key,
com.gs.collections.api.block.function.primitive.FloatFunction0 function)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableCharFloatMappublic <P> float getIfAbsentPutWith(char key,
com.gs.collections.api.block.function.primitive.FloatFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface com.gs.collections.api.map.primitive.MutableCharFloatMappublic float getIfAbsentPutWithKey(char key,
com.gs.collections.api.block.function.primitive.CharToFloatFunction function)
getIfAbsentPutWithKey in interface com.gs.collections.api.map.primitive.MutableCharFloatMappublic float addToValue(char key,
float toBeAdded)
addToValue in interface com.gs.collections.api.map.primitive.MutableCharFloatMappublic float updateValue(char key,
float initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.FloatToFloatFunction function)
updateValue in interface com.gs.collections.api.map.primitive.MutableCharFloatMappublic CharFloatHashMap withKeyValue(char key1, float value1)
withKeyValue in interface com.gs.collections.api.map.primitive.MutableCharFloatMappublic 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 com.gs.collections.api.map.primitive.MutableCharFloatMappublic CharFloatHashMap withoutAllKeys(com.gs.collections.api.CharIterable keys)
withoutAllKeys in interface com.gs.collections.api.map.primitive.MutableCharFloatMappublic com.gs.collections.api.map.primitive.MutableCharFloatMap asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.map.primitive.MutableCharFloatMappublic com.gs.collections.api.map.primitive.MutableCharFloatMap asSynchronized()
asSynchronized in interface com.gs.collections.api.map.primitive.MutableCharFloatMappublic com.gs.collections.api.map.primitive.ImmutableCharFloatMap toImmutable()
toImmutable in interface com.gs.collections.api.map.primitive.CharFloatMappublic float get(char key)
get in interface com.gs.collections.api.map.primitive.CharFloatMappublic float getIfAbsent(char key,
float ifAbsent)
getIfAbsent in interface com.gs.collections.api.map.primitive.CharFloatMappublic float getOrThrow(char key)
getOrThrow in interface com.gs.collections.api.map.primitive.CharFloatMappublic boolean containsKey(char key)
containsKey in interface com.gs.collections.api.map.primitive.CharFloatMapcontainsKey in interface CharKeysMappublic void forEachKey(com.gs.collections.api.block.procedure.primitive.CharProcedure procedure)
forEachKey in interface com.gs.collections.api.map.primitive.CharFloatMapforEachKey in interface CharKeysMappublic void forEachKeyValue(com.gs.collections.api.block.procedure.primitive.CharFloatProcedure procedure)
forEachKeyValue in interface com.gs.collections.api.map.primitive.CharFloatMappublic com.gs.collections.api.LazyCharIterable keysView()
keysView in interface com.gs.collections.api.map.primitive.CharFloatMappublic com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.CharFloatPair> keyValuesView()
keyValuesView in interface com.gs.collections.api.map.primitive.CharFloatMappublic CharFloatHashMap select(com.gs.collections.api.block.predicate.primitive.CharFloatPredicate predicate)
select in interface com.gs.collections.api.map.primitive.CharFloatMapselect in interface com.gs.collections.api.map.primitive.MutableCharFloatMappublic CharFloatHashMap reject(com.gs.collections.api.block.predicate.primitive.CharFloatPredicate predicate)
reject in interface com.gs.collections.api.map.primitive.CharFloatMapreject in interface com.gs.collections.api.map.primitive.MutableCharFloatMappublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic void compact()
protected boolean isNonSentinelAtIndex(int index)
isNonSentinelAtIndex in class AbstractMutableFloatValuesMappublic com.gs.collections.api.set.primitive.MutableCharSet keySet()
keySet in interface com.gs.collections.api.map.primitive.CharFloatMappublic com.gs.collections.api.collection.primitive.MutableFloatCollection values()
values in interface com.gs.collections.api.map.primitive.FloatValuesMap