public class DoubleIntHashMap extends AbstractMutableIntValuesMap implements com.gs.collections.api.map.primitive.MutableDoubleIntMap, java.io.Externalizable, MutableDoubleKeysMap
AbstractMutableIntValuesMap.AbstractIntValuesCollection, AbstractMutableIntValuesMap.SentinelValues| Constructor and Description |
|---|
DoubleIntHashMap() |
DoubleIntHashMap(com.gs.collections.api.map.primitive.DoubleIntMap map) |
DoubleIntHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
int |
addToValue(double key,
int toBeAdded) |
com.gs.collections.api.map.primitive.MutableDoubleIntMap |
asSynchronized() |
com.gs.collections.api.map.primitive.MutableDoubleIntMap |
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). |
void |
forEachKey(com.gs.collections.api.block.procedure.primitive.DoubleProcedure procedure) |
void |
forEachKeyValue(com.gs.collections.api.block.procedure.primitive.DoubleIntProcedure procedure) |
int |
get(double key) |
protected int |
getEmptyValue() |
int |
getIfAbsent(double key,
int ifAbsent) |
int |
getIfAbsentPut(double key,
int value) |
int |
getIfAbsentPut(double key,
com.gs.collections.api.block.function.primitive.IntFunction0 function) |
<P> int |
getIfAbsentPutWith(double key,
com.gs.collections.api.block.function.primitive.IntFunction<? super P> function,
P parameter) |
int |
getIfAbsentPutWithKey(double key,
com.gs.collections.api.block.function.primitive.DoubleToIntFunction function) |
protected int |
getOccupiedWithData() |
int |
getOrThrow(double key) |
protected AbstractMutableIntValuesMap.SentinelValues |
getSentinelValues() |
protected int |
getTableSize() |
protected int |
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.ObjectIntToObjectFunction<? super V,? extends V> function) |
com.gs.collections.api.iterator.MutableIntIterator |
intIterator() |
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.DoubleIntPair> |
keyValuesView() |
static DoubleIntHashMap |
newWithKeysValues(double key1,
int value1) |
static DoubleIntHashMap |
newWithKeysValues(double key1,
int value1,
double key2,
int value2) |
static DoubleIntHashMap |
newWithKeysValues(double key1,
int value1,
double key2,
int value2,
double key3,
int value3) |
static DoubleIntHashMap |
newWithKeysValues(double key1,
int value1,
double key2,
int value2,
double key3,
int value3,
double key4,
int value4) |
void |
put(double key,
int value) |
void |
putAll(com.gs.collections.api.map.primitive.DoubleIntMap map) |
void |
readExternal(java.io.ObjectInput in) |
DoubleIntHashMap |
reject(com.gs.collections.api.block.predicate.primitive.DoubleIntPredicate predicate) |
void |
remove(double key) |
void |
removeKey(double key) |
int |
removeKeyIfAbsent(double key,
int value) |
DoubleIntHashMap |
select(com.gs.collections.api.block.predicate.primitive.DoubleIntPredicate predicate) |
protected void |
setSentinelValuesNull() |
com.gs.collections.api.map.primitive.ImmutableDoubleIntMap |
toImmutable() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
int |
updateValue(double key,
int initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.IntToIntFunction function) |
com.gs.collections.api.collection.primitive.MutableIntCollection |
values() |
DoubleIntHashMap |
withKeysValues(double key1,
int value1,
double key2,
int value2) |
DoubleIntHashMap |
withKeysValues(double key1,
int value1,
double key2,
int value2,
double key3,
int value3) |
DoubleIntHashMap |
withKeysValues(double key1,
int value1,
double key2,
int value2,
double key3,
int value3,
double key4,
int value4) |
DoubleIntHashMap |
withKeyValue(double key1,
int value1) |
DoubleIntHashMap |
withoutAllKeys(com.gs.collections.api.DoubleIterable keys) |
DoubleIntHashMap |
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 DoubleIntHashMap()
public DoubleIntHashMap(int initialCapacity)
public DoubleIntHashMap(com.gs.collections.api.map.primitive.DoubleIntMap map)
public static DoubleIntHashMap newWithKeysValues(double key1, int value1)
public static DoubleIntHashMap newWithKeysValues(double key1, int value1, double key2, int value2)
public static DoubleIntHashMap newWithKeysValues(double key1, int value1, double key2, int value2, double key3, int value3)
public static DoubleIntHashMap newWithKeysValues(double key1, int value1, double key2, int value2, double key3, int value3, double key4, int value4)
protected int getOccupiedWithData()
getOccupiedWithData in class AbstractMutableIntValuesMapprotected AbstractMutableIntValuesMap.SentinelValues getSentinelValues()
getSentinelValues in class AbstractMutableIntValuesMapprotected void setSentinelValuesNull()
setSentinelValuesNull in class AbstractMutableIntValuesMapprotected int getEmptyValue()
getEmptyValue in class AbstractMutableIntValuesMapprotected int getTableSize()
getTableSize in class AbstractMutableIntValuesMapprotected int getValueAtIndex(int index)
getValueAtIndex in class AbstractMutableIntValuesMappublic boolean equals(java.lang.Object obj)
com.gs.collections.api.map.primitive.DoubleIntMapMap.equals(Object).equals in interface com.gs.collections.api.map.primitive.DoubleIntMapequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.map.primitive.DoubleIntMapMap.hashCode().hashCode in interface com.gs.collections.api.map.primitive.DoubleIntMaphashCode in class java.lang.Objectpublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.map.primitive.DoubleIntMaptoString in interface com.gs.collections.api.PrimitiveIterabletoString in class AbstractIntIterablepublic com.gs.collections.api.iterator.MutableIntIterator intIterator()
intIterator in interface com.gs.collections.api.IntIterableintIterator in interface com.gs.collections.api.map.primitive.MutableIntValuesMappublic <V> V injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectIntToObjectFunction<? super V,? extends V> function)
injectInto in interface com.gs.collections.api.IntIterablepublic void clear()
clear in interface com.gs.collections.api.map.primitive.MutableIntValuesMapclear in interface MutableDoubleKeysMappublic void put(double key,
int value)
put in interface com.gs.collections.api.map.primitive.MutableDoubleIntMappublic void putAll(com.gs.collections.api.map.primitive.DoubleIntMap map)
putAll in interface com.gs.collections.api.map.primitive.MutableDoubleIntMappublic void removeKey(double key)
removeKey in interface com.gs.collections.api.map.primitive.MutableDoubleIntMapremoveKey in interface MutableDoubleKeysMappublic void remove(double key)
remove in interface com.gs.collections.api.map.primitive.MutableDoubleIntMappublic int removeKeyIfAbsent(double key,
int value)
removeKeyIfAbsent in interface com.gs.collections.api.map.primitive.MutableDoubleIntMappublic int getIfAbsentPut(double key,
int value)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableDoubleIntMappublic int getIfAbsentPut(double key,
com.gs.collections.api.block.function.primitive.IntFunction0 function)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableDoubleIntMappublic <P> int getIfAbsentPutWith(double key,
com.gs.collections.api.block.function.primitive.IntFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface com.gs.collections.api.map.primitive.MutableDoubleIntMappublic int getIfAbsentPutWithKey(double key,
com.gs.collections.api.block.function.primitive.DoubleToIntFunction function)
getIfAbsentPutWithKey in interface com.gs.collections.api.map.primitive.MutableDoubleIntMappublic int addToValue(double key,
int toBeAdded)
addToValue in interface com.gs.collections.api.map.primitive.MutableDoubleIntMappublic int updateValue(double key,
int initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.IntToIntFunction function)
updateValue in interface com.gs.collections.api.map.primitive.MutableDoubleIntMappublic DoubleIntHashMap withKeyValue(double key1, int value1)
withKeyValue in interface com.gs.collections.api.map.primitive.MutableDoubleIntMappublic DoubleIntHashMap withKeysValues(double key1, int value1, double key2, int value2)
public DoubleIntHashMap withKeysValues(double key1, int value1, double key2, int value2, double key3, int value3)
public DoubleIntHashMap withKeysValues(double key1, int value1, double key2, int value2, double key3, int value3, double key4, int value4)
public DoubleIntHashMap withoutKey(double key)
withoutKey in interface com.gs.collections.api.map.primitive.MutableDoubleIntMappublic DoubleIntHashMap withoutAllKeys(com.gs.collections.api.DoubleIterable keys)
withoutAllKeys in interface com.gs.collections.api.map.primitive.MutableDoubleIntMappublic com.gs.collections.api.map.primitive.MutableDoubleIntMap asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.map.primitive.MutableDoubleIntMappublic com.gs.collections.api.map.primitive.MutableDoubleIntMap asSynchronized()
asSynchronized in interface com.gs.collections.api.map.primitive.MutableDoubleIntMappublic com.gs.collections.api.map.primitive.ImmutableDoubleIntMap toImmutable()
toImmutable in interface com.gs.collections.api.map.primitive.DoubleIntMappublic int get(double key)
get in interface com.gs.collections.api.map.primitive.DoubleIntMappublic int getIfAbsent(double key,
int ifAbsent)
getIfAbsent in interface com.gs.collections.api.map.primitive.DoubleIntMappublic int getOrThrow(double key)
getOrThrow in interface com.gs.collections.api.map.primitive.DoubleIntMappublic boolean containsKey(double key)
containsKey in interface com.gs.collections.api.map.primitive.DoubleIntMapcontainsKey in interface DoubleKeysMappublic void forEachKey(com.gs.collections.api.block.procedure.primitive.DoubleProcedure procedure)
forEachKey in interface com.gs.collections.api.map.primitive.DoubleIntMapforEachKey in interface DoubleKeysMappublic void forEachKeyValue(com.gs.collections.api.block.procedure.primitive.DoubleIntProcedure procedure)
forEachKeyValue in interface com.gs.collections.api.map.primitive.DoubleIntMappublic com.gs.collections.api.LazyDoubleIterable keysView()
keysView in interface com.gs.collections.api.map.primitive.DoubleIntMappublic com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.DoubleIntPair> keyValuesView()
keyValuesView in interface com.gs.collections.api.map.primitive.DoubleIntMappublic DoubleIntHashMap select(com.gs.collections.api.block.predicate.primitive.DoubleIntPredicate predicate)
select in interface com.gs.collections.api.map.primitive.DoubleIntMapselect in interface com.gs.collections.api.map.primitive.MutableDoubleIntMappublic DoubleIntHashMap reject(com.gs.collections.api.block.predicate.primitive.DoubleIntPredicate predicate)
reject in interface com.gs.collections.api.map.primitive.DoubleIntMapreject in interface com.gs.collections.api.map.primitive.MutableDoubleIntMappublic 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 AbstractMutableIntValuesMappublic com.gs.collections.api.set.primitive.MutableDoubleSet keySet()
keySet in interface com.gs.collections.api.map.primitive.DoubleIntMappublic com.gs.collections.api.collection.primitive.MutableIntCollection values()
values in interface com.gs.collections.api.map.primitive.IntValuesMap