public class IntDoubleHashMap extends AbstractMutableDoubleValuesMap implements MutableIntDoubleMap, Externalizable, MutableIntKeysMap
| Constructor and Description |
|---|
IntDoubleHashMap() |
IntDoubleHashMap(int initialCapacity) |
IntDoubleHashMap(IntDoubleMap map) |
| Modifier and Type | Method and Description |
|---|---|
double |
addToValue(int key,
double toBeAdded) |
MutableIntDoubleMap |
asSynchronized() |
MutableIntDoubleMap |
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(int key) |
MutableDoubleIterator |
doubleIterator() |
boolean |
equals(Object obj)
Follows the same general contract as
Map.equals(Object). |
void |
forEachKey(IntProcedure procedure) |
void |
forEachKeyValue(IntDoubleProcedure procedure) |
double |
get(int key) |
double |
getIfAbsent(int key,
double ifAbsent) |
double |
getIfAbsentPut(int key,
double value) |
double |
getIfAbsentPut(int key,
DoubleFunction0 function) |
<P> double |
getIfAbsentPutWith(int key,
DoubleFunction<? super P> function,
P parameter) |
double |
getIfAbsentPutWithKey(int key,
IntToDoubleFunction function) |
double |
getOrThrow(int key) |
int |
hashCode()
Follows the same general contract as
Map.hashCode(). |
<V> V |
injectInto(V injectedValue,
ObjectDoubleToObjectFunction<? super V,? extends V> function) |
MutableIntSet |
keySet() |
LazyIntIterable |
keysView() |
RichIterable<IntDoublePair> |
keyValuesView() |
static IntDoubleHashMap |
newWithKeysValues(int key1,
double value1) |
static IntDoubleHashMap |
newWithKeysValues(int key1,
double value1,
int key2,
double value2) |
static IntDoubleHashMap |
newWithKeysValues(int key1,
double value1,
int key2,
double value2,
int key3,
double value3) |
static IntDoubleHashMap |
newWithKeysValues(int key1,
double value1,
int key2,
double value2,
int key3,
double value3,
int key4,
double value4) |
void |
put(int key,
double value) |
void |
putAll(IntDoubleMap map) |
void |
readExternal(ObjectInput in) |
IntDoubleHashMap |
reject(IntDoublePredicate predicate) |
void |
remove(int key) |
void |
removeKey(int key) |
double |
removeKeyIfAbsent(int key,
double value) |
IntDoubleHashMap |
select(IntDoublePredicate predicate) |
ImmutableIntDoubleMap |
toImmutable() |
String |
toString()
Returns a string representation of this PrimitiveIterable.
|
double |
updateValue(int key,
double initialValueIfAbsent,
DoubleToDoubleFunction function) |
MutableDoubleCollection |
values() |
IntDoubleHashMap |
withKeysValues(int key1,
double value1,
int key2,
double value2) |
IntDoubleHashMap |
withKeysValues(int key1,
double value1,
int key2,
double value2,
int key3,
double value3) |
IntDoubleHashMap |
withKeysValues(int key1,
double value1,
int key2,
double value2,
int key3,
double value3,
int key4,
double value4) |
IntDoubleHashMap |
withKeyValue(int key1,
double value1) |
IntDoubleHashMap |
withoutAllKeys(IntIterable keys) |
IntDoubleHashMap |
withoutKey(int 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, toArrayappendString, appendString, asLazy, average, containsAll, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListcollect, 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 IntDoubleHashMap()
public IntDoubleHashMap(int initialCapacity)
public IntDoubleHashMap(IntDoubleMap map)
public static IntDoubleHashMap newWithKeysValues(int key1, double value1)
public static IntDoubleHashMap newWithKeysValues(int key1, double value1, int key2, double value2)
public static IntDoubleHashMap newWithKeysValues(int key1, double value1, int key2, double value2, int key3, double value3)
public static IntDoubleHashMap newWithKeysValues(int key1, double value1, int key2, double value2, int key3, double value3, int key4, double value4)
public boolean equals(Object obj)
IntDoubleMapMap.equals(Object).equals in interface IntDoubleMapequals in class Objectpublic int hashCode()
IntDoubleMapMap.hashCode().hashCode in interface IntDoubleMaphashCode in class Objectpublic String toString()
PrimitiveIterabletoString in interface IntDoubleMaptoString in interface PrimitiveIterabletoString in class AbstractDoubleIterablepublic MutableDoubleIterator doubleIterator()
doubleIterator in interface DoubleIterabledoubleIterator in interface MutableDoubleValuesMappublic <V> V injectInto(V injectedValue,
ObjectDoubleToObjectFunction<? super V,? extends V> function)
injectInto in interface DoubleIterablepublic void clear()
clear in interface MutableDoubleValuesMapclear in interface MutableIntKeysMappublic void put(int key,
double value)
put in interface MutableIntDoubleMappublic void putAll(IntDoubleMap map)
putAll in interface MutableIntDoubleMappublic void removeKey(int key)
removeKey in interface MutableIntDoubleMapremoveKey in interface MutableIntKeysMappublic void remove(int key)
remove in interface MutableIntDoubleMappublic double removeKeyIfAbsent(int key,
double value)
removeKeyIfAbsent in interface MutableIntDoubleMappublic double getIfAbsentPut(int key,
double value)
getIfAbsentPut in interface MutableIntDoubleMappublic double getIfAbsentPut(int key,
DoubleFunction0 function)
getIfAbsentPut in interface MutableIntDoubleMappublic <P> double getIfAbsentPutWith(int key,
DoubleFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableIntDoubleMappublic double getIfAbsentPutWithKey(int key,
IntToDoubleFunction function)
getIfAbsentPutWithKey in interface MutableIntDoubleMappublic double addToValue(int key,
double toBeAdded)
addToValue in interface MutableIntDoubleMappublic double updateValue(int key,
double initialValueIfAbsent,
DoubleToDoubleFunction function)
updateValue in interface MutableIntDoubleMappublic IntDoubleHashMap withKeyValue(int key1, double value1)
withKeyValue in interface MutableIntDoubleMappublic IntDoubleHashMap withKeysValues(int key1, double value1, int key2, double value2)
public IntDoubleHashMap withKeysValues(int key1, double value1, int key2, double value2, int key3, double value3)
public IntDoubleHashMap withKeysValues(int key1, double value1, int key2, double value2, int key3, double value3, int key4, double value4)
public IntDoubleHashMap withoutKey(int key)
withoutKey in interface MutableIntDoubleMappublic IntDoubleHashMap withoutAllKeys(IntIterable keys)
withoutAllKeys in interface MutableIntDoubleMappublic MutableIntDoubleMap asUnmodifiable()
asUnmodifiable in interface MutableIntDoubleMappublic MutableIntDoubleMap asSynchronized()
asSynchronized in interface MutableIntDoubleMappublic ImmutableIntDoubleMap toImmutable()
toImmutable in interface IntDoubleMappublic double get(int key)
get in interface IntDoubleMappublic double getIfAbsent(int key,
double ifAbsent)
getIfAbsent in interface IntDoubleMappublic double getOrThrow(int key)
getOrThrow in interface IntDoubleMappublic boolean containsKey(int key)
containsKey in interface IntDoubleMapcontainsKey in interface IntKeysMappublic void forEachKey(IntProcedure procedure)
forEachKey in interface IntDoubleMapforEachKey in interface IntKeysMappublic void forEachKeyValue(IntDoubleProcedure procedure)
forEachKeyValue in interface IntDoubleMappublic LazyIntIterable keysView()
keysView in interface IntDoubleMappublic RichIterable<IntDoublePair> keyValuesView()
keyValuesView in interface IntDoubleMappublic IntDoubleHashMap select(IntDoublePredicate predicate)
select in interface IntDoubleMapselect in interface MutableIntDoubleMappublic IntDoubleHashMap reject(IntDoublePredicate predicate)
reject in interface IntDoubleMapreject in interface MutableIntDoubleMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void compact()
public MutableIntSet keySet()
keySet in interface IntDoubleMappublic MutableDoubleCollection values()
values in interface DoubleValuesMapCopyright © 2004–2016. All rights reserved.