public class DoubleFloatHashMap extends AbstractMutableFloatValuesMap implements com.gs.collections.api.map.primitive.MutableDoubleFloatMap, java.io.Externalizable, MutableDoubleKeysMap
AbstractMutableFloatValuesMap.AbstractFloatValuesCollection, AbstractMutableFloatValuesMap.SentinelValues| Constructor and Description |
|---|
DoubleFloatHashMap() |
DoubleFloatHashMap(com.gs.collections.api.map.primitive.DoubleFloatMap map) |
DoubleFloatHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
float |
addToValue(double key,
float toBeAdded) |
com.gs.collections.api.map.primitive.MutableDoubleFloatMap |
asSynchronized() |
com.gs.collections.api.map.primitive.MutableDoubleFloatMap |
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(double 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.DoubleProcedure procedure) |
void |
forEachKeyValue(com.gs.collections.api.block.procedure.primitive.DoubleFloatProcedure procedure) |
float |
get(double key) |
protected float |
getEmptyValue() |
float |
getIfAbsent(double key,
float ifAbsent) |
float |
getIfAbsentPut(double key,
float value) |
float |
getIfAbsentPut(double key,
com.gs.collections.api.block.function.primitive.FloatFunction0 function) |
<P> float |
getIfAbsentPutWith(double key,
com.gs.collections.api.block.function.primitive.FloatFunction<? super P> function,
P parameter) |
float |
getIfAbsentPutWithKey(double key,
com.gs.collections.api.block.function.primitive.DoubleToFloatFunction function) |
protected int |
getOccupiedWithData() |
float |
getOrThrow(double 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.MutableDoubleSet |
keySet() |
com.gs.collections.api.LazyDoubleIterable |
keysView() |
com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.DoubleFloatPair> |
keyValuesView() |
static DoubleFloatHashMap |
newWithKeysValues(double key1,
float value1) |
static DoubleFloatHashMap |
newWithKeysValues(double key1,
float value1,
double key2,
float value2) |
static DoubleFloatHashMap |
newWithKeysValues(double key1,
float value1,
double key2,
float value2,
double key3,
float value3) |
static DoubleFloatHashMap |
newWithKeysValues(double key1,
float value1,
double key2,
float value2,
double key3,
float value3,
double key4,
float value4) |
void |
put(double key,
float value) |
void |
putAll(com.gs.collections.api.map.primitive.DoubleFloatMap map) |
void |
readExternal(java.io.ObjectInput in) |
DoubleFloatHashMap |
reject(com.gs.collections.api.block.predicate.primitive.DoubleFloatPredicate predicate) |
void |
remove(double key) |
void |
removeKey(double key) |
float |
removeKeyIfAbsent(double key,
float value) |
DoubleFloatHashMap |
select(com.gs.collections.api.block.predicate.primitive.DoubleFloatPredicate predicate) |
protected void |
setSentinelValuesNull() |
com.gs.collections.api.map.primitive.ImmutableDoubleFloatMap |
toImmutable() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
float |
updateValue(double key,
float initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.FloatToFloatFunction function) |
com.gs.collections.api.collection.primitive.MutableFloatCollection |
values() |
DoubleFloatHashMap |
withKeysValues(double key1,
float value1,
double key2,
float value2) |
DoubleFloatHashMap |
withKeysValues(double key1,
float value1,
double key2,
float value2,
double key3,
float value3) |
DoubleFloatHashMap |
withKeysValues(double key1,
float value1,
double key2,
float value2,
double key3,
float value3,
double key4,
float value4) |
DoubleFloatHashMap |
withKeyValue(double key1,
float value1) |
DoubleFloatHashMap |
withoutAllKeys(com.gs.collections.api.DoubleIterable keys) |
DoubleFloatHashMap |
withoutKey(double 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 DoubleFloatHashMap()
public DoubleFloatHashMap(int initialCapacity)
public DoubleFloatHashMap(com.gs.collections.api.map.primitive.DoubleFloatMap map)
public static DoubleFloatHashMap newWithKeysValues(double key1, float value1)
public static DoubleFloatHashMap newWithKeysValues(double key1, float value1, double key2, float value2)
public static DoubleFloatHashMap newWithKeysValues(double key1, float value1, double key2, float value2, double key3, float value3)
public static DoubleFloatHashMap newWithKeysValues(double key1, float value1, double key2, float value2, double key3, float value3, double 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.DoubleFloatMapMap.equals(Object).equals in interface com.gs.collections.api.map.primitive.DoubleFloatMapequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.map.primitive.DoubleFloatMapMap.hashCode().hashCode in interface com.gs.collections.api.map.primitive.DoubleFloatMaphashCode in class java.lang.Objectpublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.map.primitive.DoubleFloatMaptoString 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 MutableDoubleKeysMappublic void put(double key,
float value)
put in interface com.gs.collections.api.map.primitive.MutableDoubleFloatMappublic void putAll(com.gs.collections.api.map.primitive.DoubleFloatMap map)
putAll in interface com.gs.collections.api.map.primitive.MutableDoubleFloatMappublic void removeKey(double key)
removeKey in interface com.gs.collections.api.map.primitive.MutableDoubleFloatMapremoveKey in interface MutableDoubleKeysMappublic void remove(double key)
remove in interface com.gs.collections.api.map.primitive.MutableDoubleFloatMappublic float removeKeyIfAbsent(double key,
float value)
removeKeyIfAbsent in interface com.gs.collections.api.map.primitive.MutableDoubleFloatMappublic float getIfAbsentPut(double key,
float value)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableDoubleFloatMappublic float getIfAbsentPut(double key,
com.gs.collections.api.block.function.primitive.FloatFunction0 function)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableDoubleFloatMappublic <P> float getIfAbsentPutWith(double key,
com.gs.collections.api.block.function.primitive.FloatFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface com.gs.collections.api.map.primitive.MutableDoubleFloatMappublic float getIfAbsentPutWithKey(double key,
com.gs.collections.api.block.function.primitive.DoubleToFloatFunction function)
getIfAbsentPutWithKey in interface com.gs.collections.api.map.primitive.MutableDoubleFloatMappublic float addToValue(double key,
float toBeAdded)
addToValue in interface com.gs.collections.api.map.primitive.MutableDoubleFloatMappublic float updateValue(double key,
float initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.FloatToFloatFunction function)
updateValue in interface com.gs.collections.api.map.primitive.MutableDoubleFloatMappublic DoubleFloatHashMap withKeyValue(double key1, float value1)
withKeyValue in interface com.gs.collections.api.map.primitive.MutableDoubleFloatMappublic DoubleFloatHashMap withKeysValues(double key1, float value1, double key2, float value2)
public DoubleFloatHashMap withKeysValues(double key1, float value1, double key2, float value2, double key3, float value3)
public DoubleFloatHashMap withKeysValues(double key1, float value1, double key2, float value2, double key3, float value3, double key4, float value4)
public DoubleFloatHashMap withoutKey(double key)
withoutKey in interface com.gs.collections.api.map.primitive.MutableDoubleFloatMappublic DoubleFloatHashMap withoutAllKeys(com.gs.collections.api.DoubleIterable keys)
withoutAllKeys in interface com.gs.collections.api.map.primitive.MutableDoubleFloatMappublic com.gs.collections.api.map.primitive.MutableDoubleFloatMap asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.map.primitive.MutableDoubleFloatMappublic com.gs.collections.api.map.primitive.MutableDoubleFloatMap asSynchronized()
asSynchronized in interface com.gs.collections.api.map.primitive.MutableDoubleFloatMappublic com.gs.collections.api.map.primitive.ImmutableDoubleFloatMap toImmutable()
toImmutable in interface com.gs.collections.api.map.primitive.DoubleFloatMappublic float get(double key)
get in interface com.gs.collections.api.map.primitive.DoubleFloatMappublic float getIfAbsent(double key,
float ifAbsent)
getIfAbsent in interface com.gs.collections.api.map.primitive.DoubleFloatMappublic float getOrThrow(double key)
getOrThrow in interface com.gs.collections.api.map.primitive.DoubleFloatMappublic boolean containsKey(double key)
containsKey in interface com.gs.collections.api.map.primitive.DoubleFloatMapcontainsKey in interface DoubleKeysMappublic void forEachKey(com.gs.collections.api.block.procedure.primitive.DoubleProcedure procedure)
forEachKey in interface com.gs.collections.api.map.primitive.DoubleFloatMapforEachKey in interface DoubleKeysMappublic void forEachKeyValue(com.gs.collections.api.block.procedure.primitive.DoubleFloatProcedure procedure)
forEachKeyValue in interface com.gs.collections.api.map.primitive.DoubleFloatMappublic com.gs.collections.api.LazyDoubleIterable keysView()
keysView in interface com.gs.collections.api.map.primitive.DoubleFloatMappublic com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.DoubleFloatPair> keyValuesView()
keyValuesView in interface com.gs.collections.api.map.primitive.DoubleFloatMappublic DoubleFloatHashMap select(com.gs.collections.api.block.predicate.primitive.DoubleFloatPredicate predicate)
select in interface com.gs.collections.api.map.primitive.DoubleFloatMapselect in interface com.gs.collections.api.map.primitive.MutableDoubleFloatMappublic DoubleFloatHashMap reject(com.gs.collections.api.block.predicate.primitive.DoubleFloatPredicate predicate)
reject in interface com.gs.collections.api.map.primitive.DoubleFloatMapreject in interface com.gs.collections.api.map.primitive.MutableDoubleFloatMappublic 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.MutableDoubleSet keySet()
keySet in interface com.gs.collections.api.map.primitive.DoubleFloatMappublic com.gs.collections.api.collection.primitive.MutableFloatCollection values()
values in interface com.gs.collections.api.map.primitive.FloatValuesMap