public class DoubleLongHashMap extends AbstractMutableLongValuesMap implements MutableDoubleLongMap, Externalizable, MutableDoubleKeysMap
Constructor and Description |
---|
DoubleLongHashMap() |
DoubleLongHashMap(DoubleLongMap map) |
DoubleLongHashMap(int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
long |
addToValue(double key,
long toBeAdded) |
MutableDoubleLongMap |
asSynchronized() |
MutableDoubleLongMap |
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(Object obj)
Follows the same general contract as
Map.equals(Object) . |
void |
forEachKey(DoubleProcedure procedure) |
void |
forEachKeyValue(DoubleLongProcedure procedure) |
long |
get(double key) |
long |
getIfAbsent(double key,
long ifAbsent) |
long |
getIfAbsentPut(double key,
long value) |
long |
getIfAbsentPut(double key,
LongFunction0 function) |
<P> long |
getIfAbsentPutWith(double key,
LongFunction<? super P> function,
P parameter) |
long |
getIfAbsentPutWithKey(double key,
DoubleToLongFunction function) |
long |
getOrThrow(double key) |
int |
hashCode()
Follows the same general contract as
Map.hashCode() . |
<V> V |
injectInto(V injectedValue,
ObjectLongToObjectFunction<? super V,? extends V> function) |
MutableDoubleSet |
keySet() |
LazyDoubleIterable |
keysView() |
RichIterable<DoubleLongPair> |
keyValuesView() |
MutableLongIterator |
longIterator() |
static DoubleLongHashMap |
newWithKeysValues(double key1,
long value1) |
static DoubleLongHashMap |
newWithKeysValues(double key1,
long value1,
double key2,
long value2) |
static DoubleLongHashMap |
newWithKeysValues(double key1,
long value1,
double key2,
long value2,
double key3,
long value3) |
static DoubleLongHashMap |
newWithKeysValues(double key1,
long value1,
double key2,
long value2,
double key3,
long value3,
double key4,
long value4) |
void |
put(double key,
long value) |
void |
putAll(DoubleLongMap map) |
void |
readExternal(ObjectInput in) |
DoubleLongHashMap |
reject(DoubleLongPredicate predicate) |
void |
remove(double key) |
void |
removeKey(double key) |
long |
removeKeyIfAbsent(double key,
long value) |
DoubleLongHashMap |
select(DoubleLongPredicate predicate) |
ImmutableDoubleLongMap |
toImmutable() |
String |
toString()
Returns a string representation of this PrimitiveIterable.
|
long |
updateValue(double key,
long initialValueIfAbsent,
LongToLongFunction function) |
MutableLongCollection |
values() |
DoubleLongHashMap |
withKeysValues(double key1,
long value1,
double key2,
long value2) |
DoubleLongHashMap |
withKeysValues(double key1,
long value1,
double key2,
long value2,
double key3,
long value3) |
DoubleLongHashMap |
withKeysValues(double key1,
long value1,
double key2,
long value2,
double key3,
long value3,
double key4,
long value4) |
DoubleLongHashMap |
withKeyValue(double key1,
long value1) |
DoubleLongHashMap |
withoutAllKeys(DoubleIterable keys) |
DoubleLongHashMap |
withoutKey(double 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 DoubleLongHashMap()
public DoubleLongHashMap(int initialCapacity)
public DoubleLongHashMap(DoubleLongMap map)
public static DoubleLongHashMap newWithKeysValues(double key1, long value1)
public static DoubleLongHashMap newWithKeysValues(double key1, long value1, double key2, long value2)
public static DoubleLongHashMap newWithKeysValues(double key1, long value1, double key2, long value2, double key3, long value3)
public static DoubleLongHashMap newWithKeysValues(double key1, long value1, double key2, long value2, double key3, long value3, double key4, long value4)
public boolean equals(Object obj)
DoubleLongMap
Map.equals(Object)
.equals
in interface DoubleLongMap
equals
in class Object
public int hashCode()
DoubleLongMap
Map.hashCode()
.hashCode
in interface DoubleLongMap
hashCode
in class Object
public String toString()
PrimitiveIterable
toString
in interface DoubleLongMap
toString
in interface PrimitiveIterable
toString
in class AbstractLongIterable
public MutableLongIterator longIterator()
longIterator
in interface LongIterable
longIterator
in interface MutableLongValuesMap
public <V> V injectInto(V injectedValue, ObjectLongToObjectFunction<? super V,? extends V> function)
injectInto
in interface LongIterable
public void clear()
clear
in interface MutableLongValuesMap
clear
in interface MutableDoubleKeysMap
public void put(double key, long value)
put
in interface MutableDoubleLongMap
public void putAll(DoubleLongMap map)
putAll
in interface MutableDoubleLongMap
public void removeKey(double key)
removeKey
in interface MutableDoubleLongMap
removeKey
in interface MutableDoubleKeysMap
public void remove(double key)
remove
in interface MutableDoubleLongMap
public long removeKeyIfAbsent(double key, long value)
removeKeyIfAbsent
in interface MutableDoubleLongMap
public long getIfAbsentPut(double key, long value)
getIfAbsentPut
in interface MutableDoubleLongMap
public long getIfAbsentPut(double key, LongFunction0 function)
getIfAbsentPut
in interface MutableDoubleLongMap
public <P> long getIfAbsentPutWith(double key, LongFunction<? super P> function, P parameter)
getIfAbsentPutWith
in interface MutableDoubleLongMap
public long getIfAbsentPutWithKey(double key, DoubleToLongFunction function)
getIfAbsentPutWithKey
in interface MutableDoubleLongMap
public long addToValue(double key, long toBeAdded)
addToValue
in interface MutableDoubleLongMap
public long updateValue(double key, long initialValueIfAbsent, LongToLongFunction function)
updateValue
in interface MutableDoubleLongMap
public DoubleLongHashMap withKeyValue(double key1, long value1)
withKeyValue
in interface MutableDoubleLongMap
public DoubleLongHashMap withKeysValues(double key1, long value1, double key2, long value2)
public DoubleLongHashMap withKeysValues(double key1, long value1, double key2, long value2, double key3, long value3)
public DoubleLongHashMap withKeysValues(double key1, long value1, double key2, long value2, double key3, long value3, double key4, long value4)
public DoubleLongHashMap withoutKey(double key)
withoutKey
in interface MutableDoubleLongMap
public DoubleLongHashMap withoutAllKeys(DoubleIterable keys)
withoutAllKeys
in interface MutableDoubleLongMap
public MutableDoubleLongMap asUnmodifiable()
asUnmodifiable
in interface MutableDoubleLongMap
public MutableDoubleLongMap asSynchronized()
asSynchronized
in interface MutableDoubleLongMap
public ImmutableDoubleLongMap toImmutable()
toImmutable
in interface DoubleLongMap
public long get(double key)
get
in interface DoubleLongMap
public long getIfAbsent(double key, long ifAbsent)
getIfAbsent
in interface DoubleLongMap
public long getOrThrow(double key)
getOrThrow
in interface DoubleLongMap
public boolean containsKey(double key)
containsKey
in interface DoubleLongMap
containsKey
in interface DoubleKeysMap
public void forEachKey(DoubleProcedure procedure)
forEachKey
in interface DoubleLongMap
forEachKey
in interface DoubleKeysMap
public void forEachKeyValue(DoubleLongProcedure procedure)
forEachKeyValue
in interface DoubleLongMap
public LazyDoubleIterable keysView()
keysView
in interface DoubleLongMap
public RichIterable<DoubleLongPair> keyValuesView()
keyValuesView
in interface DoubleLongMap
public DoubleLongHashMap select(DoubleLongPredicate predicate)
select
in interface DoubleLongMap
select
in interface MutableDoubleLongMap
public DoubleLongHashMap reject(DoubleLongPredicate predicate)
reject
in interface DoubleLongMap
reject
in interface MutableDoubleLongMap
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 MutableDoubleSet keySet()
keySet
in interface DoubleLongMap
public MutableLongCollection values()
values
in interface LongValuesMap
Copyright © 2004–2016. All rights reserved.