public class FloatCharHashMap extends AbstractMutableCharValuesMap implements com.gs.collections.api.map.primitive.MutableFloatCharMap, java.io.Externalizable, MutableFloatKeysMap
AbstractMutableCharValuesMap.AbstractCharValuesCollection, AbstractMutableCharValuesMap.SentinelValues| Constructor and Description |
|---|
FloatCharHashMap() |
FloatCharHashMap(com.gs.collections.api.map.primitive.FloatCharMap map) |
FloatCharHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
char |
addToValue(float key,
char toBeAdded) |
com.gs.collections.api.map.primitive.MutableFloatCharMap |
asSynchronized() |
com.gs.collections.api.map.primitive.MutableFloatCharMap |
asUnmodifiable() |
com.gs.collections.api.iterator.MutableCharIterator |
charIterator() |
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(java.lang.Object obj)
Follows the same general contract as
Map.equals(Object). |
void |
forEachKey(com.gs.collections.api.block.procedure.primitive.FloatProcedure procedure) |
void |
forEachKeyValue(com.gs.collections.api.block.procedure.primitive.FloatCharProcedure procedure) |
char |
get(float key) |
protected char |
getEmptyValue() |
char |
getIfAbsent(float key,
char ifAbsent) |
char |
getIfAbsentPut(float key,
char value) |
char |
getIfAbsentPut(float key,
com.gs.collections.api.block.function.primitive.CharFunction0 function) |
<P> char |
getIfAbsentPutWith(float key,
com.gs.collections.api.block.function.primitive.CharFunction<? super P> function,
P parameter) |
char |
getIfAbsentPutWithKey(float key,
com.gs.collections.api.block.function.primitive.FloatToCharFunction function) |
protected int |
getOccupiedWithData() |
char |
getOrThrow(float key) |
protected AbstractMutableCharValuesMap.SentinelValues |
getSentinelValues() |
protected int |
getTableSize() |
protected char |
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.ObjectCharToObjectFunction<? super V,? extends V> function) |
protected boolean |
isNonSentinelAtIndex(int index) |
com.gs.collections.api.set.primitive.MutableFloatSet |
keySet() |
com.gs.collections.api.LazyFloatIterable |
keysView() |
com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.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(com.gs.collections.api.map.primitive.FloatCharMap map) |
void |
readExternal(java.io.ObjectInput in) |
FloatCharHashMap |
reject(com.gs.collections.api.block.predicate.primitive.FloatCharPredicate predicate) |
void |
remove(float key) |
void |
removeKey(float key) |
char |
removeKeyIfAbsent(float key,
char value) |
FloatCharHashMap |
select(com.gs.collections.api.block.predicate.primitive.FloatCharPredicate predicate) |
protected void |
setSentinelValuesNull() |
com.gs.collections.api.map.primitive.ImmutableFloatCharMap |
toImmutable() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
char |
updateValue(float key,
char initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.CharToCharFunction function) |
com.gs.collections.api.collection.primitive.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(com.gs.collections.api.FloatIterable keys) |
FloatCharHashMap |
withoutKey(float 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 FloatCharHashMap()
public FloatCharHashMap(int initialCapacity)
public FloatCharHashMap(com.gs.collections.api.map.primitive.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)
protected int getOccupiedWithData()
getOccupiedWithData in class AbstractMutableCharValuesMapprotected AbstractMutableCharValuesMap.SentinelValues getSentinelValues()
getSentinelValues in class AbstractMutableCharValuesMapprotected void setSentinelValuesNull()
setSentinelValuesNull in class AbstractMutableCharValuesMapprotected char getEmptyValue()
getEmptyValue in class AbstractMutableCharValuesMapprotected int getTableSize()
getTableSize in class AbstractMutableCharValuesMapprotected char getValueAtIndex(int index)
getValueAtIndex in class AbstractMutableCharValuesMappublic boolean equals(java.lang.Object obj)
com.gs.collections.api.map.primitive.FloatCharMapMap.equals(Object).equals in interface com.gs.collections.api.map.primitive.FloatCharMapequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.map.primitive.FloatCharMapMap.hashCode().hashCode in interface com.gs.collections.api.map.primitive.FloatCharMaphashCode in class java.lang.Objectpublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.map.primitive.FloatCharMaptoString in interface com.gs.collections.api.PrimitiveIterabletoString in class AbstractCharIterablepublic com.gs.collections.api.iterator.MutableCharIterator charIterator()
charIterator in interface com.gs.collections.api.CharIterablecharIterator in interface com.gs.collections.api.map.primitive.MutableCharValuesMappublic <V> V injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectCharToObjectFunction<? super V,? extends V> function)
injectInto in interface com.gs.collections.api.CharIterablepublic void clear()
clear in interface com.gs.collections.api.map.primitive.MutableCharValuesMapclear in interface MutableFloatKeysMappublic void put(float key,
char value)
put in interface com.gs.collections.api.map.primitive.MutableFloatCharMappublic void putAll(com.gs.collections.api.map.primitive.FloatCharMap map)
putAll in interface com.gs.collections.api.map.primitive.MutableFloatCharMappublic void removeKey(float key)
removeKey in interface com.gs.collections.api.map.primitive.MutableFloatCharMapremoveKey in interface MutableFloatKeysMappublic void remove(float key)
remove in interface com.gs.collections.api.map.primitive.MutableFloatCharMappublic char removeKeyIfAbsent(float key,
char value)
removeKeyIfAbsent in interface com.gs.collections.api.map.primitive.MutableFloatCharMappublic char getIfAbsentPut(float key,
char value)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableFloatCharMappublic char getIfAbsentPut(float key,
com.gs.collections.api.block.function.primitive.CharFunction0 function)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableFloatCharMappublic <P> char getIfAbsentPutWith(float key,
com.gs.collections.api.block.function.primitive.CharFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface com.gs.collections.api.map.primitive.MutableFloatCharMappublic char getIfAbsentPutWithKey(float key,
com.gs.collections.api.block.function.primitive.FloatToCharFunction function)
getIfAbsentPutWithKey in interface com.gs.collections.api.map.primitive.MutableFloatCharMappublic char addToValue(float key,
char toBeAdded)
addToValue in interface com.gs.collections.api.map.primitive.MutableFloatCharMappublic char updateValue(float key,
char initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.CharToCharFunction function)
updateValue in interface com.gs.collections.api.map.primitive.MutableFloatCharMappublic FloatCharHashMap withKeyValue(float key1, char value1)
withKeyValue in interface com.gs.collections.api.map.primitive.MutableFloatCharMappublic 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 com.gs.collections.api.map.primitive.MutableFloatCharMappublic FloatCharHashMap withoutAllKeys(com.gs.collections.api.FloatIterable keys)
withoutAllKeys in interface com.gs.collections.api.map.primitive.MutableFloatCharMappublic com.gs.collections.api.map.primitive.MutableFloatCharMap asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.map.primitive.MutableFloatCharMappublic com.gs.collections.api.map.primitive.MutableFloatCharMap asSynchronized()
asSynchronized in interface com.gs.collections.api.map.primitive.MutableFloatCharMappublic com.gs.collections.api.map.primitive.ImmutableFloatCharMap toImmutable()
toImmutable in interface com.gs.collections.api.map.primitive.FloatCharMappublic char get(float key)
get in interface com.gs.collections.api.map.primitive.FloatCharMappublic char getIfAbsent(float key,
char ifAbsent)
getIfAbsent in interface com.gs.collections.api.map.primitive.FloatCharMappublic char getOrThrow(float key)
getOrThrow in interface com.gs.collections.api.map.primitive.FloatCharMappublic boolean containsKey(float key)
containsKey in interface com.gs.collections.api.map.primitive.FloatCharMapcontainsKey in interface FloatKeysMappublic void forEachKey(com.gs.collections.api.block.procedure.primitive.FloatProcedure procedure)
forEachKey in interface com.gs.collections.api.map.primitive.FloatCharMapforEachKey in interface FloatKeysMappublic void forEachKeyValue(com.gs.collections.api.block.procedure.primitive.FloatCharProcedure procedure)
forEachKeyValue in interface com.gs.collections.api.map.primitive.FloatCharMappublic com.gs.collections.api.LazyFloatIterable keysView()
keysView in interface com.gs.collections.api.map.primitive.FloatCharMappublic com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.FloatCharPair> keyValuesView()
keyValuesView in interface com.gs.collections.api.map.primitive.FloatCharMappublic FloatCharHashMap select(com.gs.collections.api.block.predicate.primitive.FloatCharPredicate predicate)
select in interface com.gs.collections.api.map.primitive.FloatCharMapselect in interface com.gs.collections.api.map.primitive.MutableFloatCharMappublic FloatCharHashMap reject(com.gs.collections.api.block.predicate.primitive.FloatCharPredicate predicate)
reject in interface com.gs.collections.api.map.primitive.FloatCharMapreject in interface com.gs.collections.api.map.primitive.MutableFloatCharMappublic 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 AbstractMutableCharValuesMappublic com.gs.collections.api.set.primitive.MutableFloatSet keySet()
keySet in interface com.gs.collections.api.map.primitive.FloatCharMappublic com.gs.collections.api.collection.primitive.MutableCharCollection values()
values in interface com.gs.collections.api.map.primitive.CharValuesMap