public final class LongDoubleMap extends AbstractMap<Long,Double>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
LongDoubleMap() |
LongDoubleMap(int capacity) |
LongDoubleMap(int capacity,
float loadFactor) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(long key) |
boolean |
containsKey(Object key) |
Set<Map.Entry<Long,Double>> |
entrySet() |
static int |
h(long key)
Returns a non-negative hash value
|
double |
increment(long key,
double delta) |
double |
put(long key,
double value) |
Double |
put(Long key,
Double value) |
double |
remove(long key) |
Double |
remove(Object key) |
int |
size() |
clone, containsValue, equals, get, hashCode, isEmpty, keySet, putAll, toString, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public LongDoubleMap()
public LongDoubleMap(int capacity)
public LongDoubleMap(int capacity, float loadFactor)
public int size()
public double put(long key, double value)
public double increment(long key, double delta)
key
- delta
- public double remove(long key)
key
- Double.NaN
if the
key was not present in the mappublic void clear()
public boolean containsKey(Object key)
containsKey
in interface Map<Long,Double>
containsKey
in class AbstractMap<Long,Double>
public boolean containsKey(long key)
public static int h(long key)
key
- Copyright © 2017. All rights reserved.