public class LongDoubleHashMap extends AbstractMutableDoubleValuesMap implements MutableLongDoubleMap, Externalizable, MutableLongKeysMap
Constructor and Description |
---|
LongDoubleHashMap() |
LongDoubleHashMap(int initialCapacity) |
LongDoubleHashMap(LongDoubleMap map) |
Modifier and Type | Method and Description |
---|---|
double |
addToValue(long key,
double toBeAdded) |
MutableLongDoubleMap |
asSynchronized() |
MutableLongDoubleMap |
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(long key) |
MutableDoubleIterator |
doubleIterator() |
boolean |
equals(Object obj)
Follows the same general contract as
Map.equals(Object) . |
void |
forEachKey(LongProcedure procedure) |
void |
forEachKeyValue(LongDoubleProcedure procedure) |
double |
get(long key) |
double |
getIfAbsent(long key,
double ifAbsent) |
double |
getIfAbsentPut(long key,
double value) |
double |
getIfAbsentPut(long key,
DoubleFunction0 function) |
<P> double |
getIfAbsentPutWith(long key,
DoubleFunction<? super P> function,
P parameter) |
double |
getIfAbsentPutWithKey(long key,
LongToDoubleFunction function) |
double |
getOrThrow(long key) |
int |
hashCode()
Follows the same general contract as
Map.hashCode() . |
<V> V |
injectInto(V injectedValue,
ObjectDoubleToObjectFunction<? super V,? extends V> function) |
MutableLongSet |
keySet() |
LazyLongIterable |
keysView() |
RichIterable<LongDoublePair> |
keyValuesView() |
static LongDoubleHashMap |
newWithKeysValues(long key1,
double value1) |
static LongDoubleHashMap |
newWithKeysValues(long key1,
double value1,
long key2,
double value2) |
static LongDoubleHashMap |
newWithKeysValues(long key1,
double value1,
long key2,
double value2,
long key3,
double value3) |
static LongDoubleHashMap |
newWithKeysValues(long key1,
double value1,
long key2,
double value2,
long key3,
double value3,
long key4,
double value4) |
void |
put(long key,
double value) |
void |
putAll(LongDoubleMap map) |
void |
readExternal(ObjectInput in) |
LongDoubleHashMap |
reject(LongDoublePredicate predicate) |
void |
remove(long key) |
void |
removeKey(long key) |
double |
removeKeyIfAbsent(long key,
double value) |
LongDoubleHashMap |
select(LongDoublePredicate predicate) |
ImmutableLongDoubleMap |
toImmutable() |
String |
toString()
Returns a string representation of this PrimitiveIterable.
|
double |
updateValue(long key,
double initialValueIfAbsent,
DoubleToDoubleFunction function) |
MutableDoubleCollection |
values() |
LongDoubleHashMap |
withKeysValues(long key1,
double value1,
long key2,
double value2) |
LongDoubleHashMap |
withKeysValues(long key1,
double value1,
long key2,
double value2,
long key3,
double value3) |
LongDoubleHashMap |
withKeysValues(long key1,
double value1,
long key2,
double value2,
long key3,
double value3,
long key4,
double value4) |
LongDoubleHashMap |
withKeyValue(long key1,
double value1) |
LongDoubleHashMap |
withoutAllKeys(LongIterable keys) |
LongDoubleHashMap |
withoutKey(long 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 LongDoubleHashMap()
public LongDoubleHashMap(int initialCapacity)
public LongDoubleHashMap(LongDoubleMap map)
public static LongDoubleHashMap newWithKeysValues(long key1, double value1)
public static LongDoubleHashMap newWithKeysValues(long key1, double value1, long key2, double value2)
public static LongDoubleHashMap newWithKeysValues(long key1, double value1, long key2, double value2, long key3, double value3)
public static LongDoubleHashMap newWithKeysValues(long key1, double value1, long key2, double value2, long key3, double value3, long key4, double value4)
public boolean equals(Object obj)
LongDoubleMap
Map.equals(Object)
.equals
in interface LongDoubleMap
equals
in class Object
public int hashCode()
LongDoubleMap
Map.hashCode()
.hashCode
in interface LongDoubleMap
hashCode
in class Object
public String toString()
PrimitiveIterable
toString
in interface LongDoubleMap
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 MutableLongKeysMap
public void put(long key, double value)
put
in interface MutableLongDoubleMap
public void putAll(LongDoubleMap map)
putAll
in interface MutableLongDoubleMap
public void removeKey(long key)
removeKey
in interface MutableLongDoubleMap
removeKey
in interface MutableLongKeysMap
public void remove(long key)
remove
in interface MutableLongDoubleMap
public double removeKeyIfAbsent(long key, double value)
removeKeyIfAbsent
in interface MutableLongDoubleMap
public double getIfAbsentPut(long key, double value)
getIfAbsentPut
in interface MutableLongDoubleMap
public double getIfAbsentPut(long key, DoubleFunction0 function)
getIfAbsentPut
in interface MutableLongDoubleMap
public <P> double getIfAbsentPutWith(long key, DoubleFunction<? super P> function, P parameter)
getIfAbsentPutWith
in interface MutableLongDoubleMap
public double getIfAbsentPutWithKey(long key, LongToDoubleFunction function)
getIfAbsentPutWithKey
in interface MutableLongDoubleMap
public double addToValue(long key, double toBeAdded)
addToValue
in interface MutableLongDoubleMap
public double updateValue(long key, double initialValueIfAbsent, DoubleToDoubleFunction function)
updateValue
in interface MutableLongDoubleMap
public LongDoubleHashMap withKeyValue(long key1, double value1)
withKeyValue
in interface MutableLongDoubleMap
public LongDoubleHashMap withKeysValues(long key1, double value1, long key2, double value2)
public LongDoubleHashMap withKeysValues(long key1, double value1, long key2, double value2, long key3, double value3)
public LongDoubleHashMap withKeysValues(long key1, double value1, long key2, double value2, long key3, double value3, long key4, double value4)
public LongDoubleHashMap withoutKey(long key)
withoutKey
in interface MutableLongDoubleMap
public LongDoubleHashMap withoutAllKeys(LongIterable keys)
withoutAllKeys
in interface MutableLongDoubleMap
public MutableLongDoubleMap asUnmodifiable()
asUnmodifiable
in interface MutableLongDoubleMap
public MutableLongDoubleMap asSynchronized()
asSynchronized
in interface MutableLongDoubleMap
public ImmutableLongDoubleMap toImmutable()
toImmutable
in interface LongDoubleMap
public double get(long key)
get
in interface LongDoubleMap
public double getIfAbsent(long key, double ifAbsent)
getIfAbsent
in interface LongDoubleMap
public double getOrThrow(long key)
getOrThrow
in interface LongDoubleMap
public boolean containsKey(long key)
containsKey
in interface LongDoubleMap
containsKey
in interface LongKeysMap
public void forEachKey(LongProcedure procedure)
forEachKey
in interface LongDoubleMap
forEachKey
in interface LongKeysMap
public void forEachKeyValue(LongDoubleProcedure procedure)
forEachKeyValue
in interface LongDoubleMap
public LazyLongIterable keysView()
keysView
in interface LongDoubleMap
public RichIterable<LongDoublePair> keyValuesView()
keyValuesView
in interface LongDoubleMap
public LongDoubleHashMap select(LongDoublePredicate predicate)
select
in interface LongDoubleMap
select
in interface MutableLongDoubleMap
public LongDoubleHashMap reject(LongDoublePredicate predicate)
reject
in interface LongDoubleMap
reject
in interface MutableLongDoubleMap
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 MutableLongSet keySet()
keySet
in interface LongDoubleMap
public MutableDoubleCollection values()
values
in interface DoubleValuesMap
Copyright © 2004–2016. All rights reserved.