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) |
MutableDoubleLongMap |
flipUniqueValues() |
void |
forEachKey(LongProcedure procedure) |
void |
forEachKeyValue(LongDoubleProcedure procedure) |
double |
get(long key) |
double |
getAndPut(long key,
double putValue,
double defaultValue) |
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() |
<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() |
double |
updateValue(long key,
double initialValueIfAbsent,
DoubleToDoubleFunction function) |
void |
updateValues(LongDoubleToDoubleFunction 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, chunk, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEachValue, isEmpty, max, min, notEmpty, reject, select, size, sum, toArray, toArrayasLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListputPair, withAllKeyValuesinjectIntoKeyValuecollect, reject, selectcontainsValue, forEachValue, tapallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeisEmpty, notEmpty, sizepublic 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)
equals in interface LongDoubleMapequals in class Objectpublic int hashCode()
hashCode in interface LongDoubleMaphashCode in class Objectpublic String toString()
toString in interface LongDoubleMaptoString 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 MutableLongKeysMappublic void put(long key,
double value)
put in interface MutableLongDoubleMappublic void putAll(LongDoubleMap map)
putAll in interface MutableLongDoubleMappublic void updateValues(LongDoubleToDoubleFunction function)
updateValues in interface MutableLongDoubleMappublic void removeKey(long key)
removeKey in interface MutableLongDoubleMapremoveKey in interface MutableLongKeysMappublic void remove(long key)
remove in interface MutableLongDoubleMappublic double removeKeyIfAbsent(long key,
double value)
removeKeyIfAbsent in interface MutableLongDoubleMappublic double getIfAbsentPut(long key,
double value)
getIfAbsentPut in interface MutableLongDoubleMappublic double getAndPut(long key,
double putValue,
double defaultValue)
getAndPut in interface MutableLongDoubleMappublic double getIfAbsentPut(long key,
DoubleFunction0 function)
getIfAbsentPut in interface MutableLongDoubleMappublic <P> double getIfAbsentPutWith(long key,
DoubleFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableLongDoubleMappublic double getIfAbsentPutWithKey(long key,
LongToDoubleFunction function)
getIfAbsentPutWithKey in interface MutableLongDoubleMappublic double addToValue(long key,
double toBeAdded)
addToValue in interface MutableLongDoubleMappublic double updateValue(long key,
double initialValueIfAbsent,
DoubleToDoubleFunction function)
updateValue in interface MutableLongDoubleMappublic LongDoubleHashMap withKeyValue(long key1, double value1)
withKeyValue in interface MutableLongDoubleMappublic 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 MutableLongDoubleMappublic LongDoubleHashMap withoutAllKeys(LongIterable keys)
withoutAllKeys in interface MutableLongDoubleMappublic MutableLongDoubleMap asUnmodifiable()
asUnmodifiable in interface MutableLongDoubleMappublic MutableLongDoubleMap asSynchronized()
asSynchronized in interface MutableLongDoubleMappublic ImmutableLongDoubleMap toImmutable()
toImmutable in interface LongDoubleMappublic double get(long key)
get in interface LongDoubleMappublic double getIfAbsent(long key,
double ifAbsent)
getIfAbsent in interface LongDoubleMappublic double getOrThrow(long key)
getOrThrow in interface LongDoubleMappublic boolean containsKey(long key)
containsKey in interface LongDoubleMapcontainsKey in interface LongKeysMappublic void forEachKey(LongProcedure procedure)
forEachKey in interface LongDoubleMapforEachKey in interface LongKeysMappublic void forEachKeyValue(LongDoubleProcedure procedure)
forEachKeyValue in interface LongDoubleMappublic LazyLongIterable keysView()
keysView in interface LongDoubleMappublic RichIterable<LongDoublePair> keyValuesView()
keyValuesView in interface LongDoubleMappublic MutableDoubleLongMap flipUniqueValues()
flipUniqueValues in interface LongDoubleMapflipUniqueValues in interface MutableLongDoubleMappublic LongDoubleHashMap select(LongDoublePredicate predicate)
select in interface LongDoubleMapselect in interface MutableLongDoubleMappublic LongDoubleHashMap reject(LongDoublePredicate predicate)
reject in interface LongDoubleMapreject in interface MutableLongDoubleMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void compact()
public MutableLongSet keySet()
keySet in interface LongDoubleMappublic MutableDoubleCollection values()
values in interface DoubleValuesMapCopyright © 2004–2022. All rights reserved.