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, toArray
asLazy, average, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
collect, reject, select
containsValue, forEachValue
allSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
isEmpty, notEmpty, size
public 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)
IntDoubleMap
Map.equals(Object)
.equals
in interface IntDoubleMap
equals
in class Object
public int hashCode()
IntDoubleMap
Map.hashCode()
.hashCode
in interface IntDoubleMap
hashCode
in class Object
public String toString()
PrimitiveIterable
toString
in interface IntDoubleMap
toString
in interface PrimitiveIterable
toString
in class AbstractDoubleIterable
public MutableDoubleIterator doubleIterator()
doubleIterator
in interface DoubleIterable
doubleIterator
in interface MutableDoubleValuesMap
public <V> V injectInto(V injectedValue, ObjectDoubleToObjectFunction<? super V,? extends V> function)
injectInto
in interface DoubleIterable
public void clear()
clear
in interface MutableDoubleValuesMap
clear
in interface MutableIntKeysMap
public void put(int key, double value)
put
in interface MutableIntDoubleMap
public void putAll(IntDoubleMap map)
putAll
in interface MutableIntDoubleMap
public void removeKey(int key)
removeKey
in interface MutableIntDoubleMap
removeKey
in interface MutableIntKeysMap
public void remove(int key)
remove
in interface MutableIntDoubleMap
public double removeKeyIfAbsent(int key, double value)
removeKeyIfAbsent
in interface MutableIntDoubleMap
public double getIfAbsentPut(int key, double value)
getIfAbsentPut
in interface MutableIntDoubleMap
public double getIfAbsentPut(int key, DoubleFunction0 function)
getIfAbsentPut
in interface MutableIntDoubleMap
public <P> double getIfAbsentPutWith(int key, DoubleFunction<? super P> function, P parameter)
getIfAbsentPutWith
in interface MutableIntDoubleMap
public double getIfAbsentPutWithKey(int key, IntToDoubleFunction function)
getIfAbsentPutWithKey
in interface MutableIntDoubleMap
public double addToValue(int key, double toBeAdded)
addToValue
in interface MutableIntDoubleMap
public double updateValue(int key, double initialValueIfAbsent, DoubleToDoubleFunction function)
updateValue
in interface MutableIntDoubleMap
public IntDoubleHashMap withKeyValue(int key1, double value1)
withKeyValue
in interface MutableIntDoubleMap
public 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 MutableIntDoubleMap
public IntDoubleHashMap withoutAllKeys(IntIterable keys)
withoutAllKeys
in interface MutableIntDoubleMap
public MutableIntDoubleMap asUnmodifiable()
asUnmodifiable
in interface MutableIntDoubleMap
public MutableIntDoubleMap asSynchronized()
asSynchronized
in interface MutableIntDoubleMap
public ImmutableIntDoubleMap toImmutable()
toImmutable
in interface IntDoubleMap
public double get(int key)
get
in interface IntDoubleMap
public double getIfAbsent(int key, double ifAbsent)
getIfAbsent
in interface IntDoubleMap
public double getOrThrow(int key)
getOrThrow
in interface IntDoubleMap
public boolean containsKey(int key)
containsKey
in interface IntDoubleMap
containsKey
in interface IntKeysMap
public void forEachKey(IntProcedure procedure)
forEachKey
in interface IntDoubleMap
forEachKey
in interface IntKeysMap
public void forEachKeyValue(IntDoubleProcedure procedure)
forEachKeyValue
in interface IntDoubleMap
public LazyIntIterable keysView()
keysView
in interface IntDoubleMap
public RichIterable<IntDoublePair> keyValuesView()
keyValuesView
in interface IntDoubleMap
public IntDoubleHashMap select(IntDoublePredicate predicate)
select
in interface IntDoubleMap
select
in interface MutableIntDoubleMap
public IntDoubleHashMap reject(IntDoublePredicate predicate)
reject
in interface IntDoubleMap
reject
in interface MutableIntDoubleMap
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void compact()
public MutableIntSet keySet()
keySet
in interface IntDoubleMap
public MutableDoubleCollection values()
values
in interface DoubleValuesMap
Copyright © 2004–2016. All rights reserved.