public class LongDoubleHashMap extends AbstractMutableDoubleValuesMap implements org.eclipse.collections.api.map.primitive.MutableLongDoubleMap, Externalizable, MutableLongKeysMap
| Constructor and Description |
|---|
LongDoubleHashMap() |
LongDoubleHashMap(int initialCapacity) |
LongDoubleHashMap(org.eclipse.collections.api.map.primitive.LongDoubleMap map) |
| Modifier and Type | Method and Description |
|---|---|
double |
addToValue(long key,
double toBeAdded) |
org.eclipse.collections.api.map.primitive.MutableLongDoubleMap |
asSynchronized() |
org.eclipse.collections.api.map.primitive.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) |
org.eclipse.collections.api.iterator.MutableDoubleIterator |
doubleIterator() |
boolean |
equals(Object obj) |
void |
forEachKey(org.eclipse.collections.api.block.procedure.primitive.LongProcedure procedure) |
void |
forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.LongDoubleProcedure procedure) |
double |
get(long key) |
double |
getIfAbsent(long key,
double ifAbsent) |
double |
getIfAbsentPut(long key,
double value) |
double |
getIfAbsentPut(long key,
org.eclipse.collections.api.block.function.primitive.DoubleFunction0 function) |
<P> double |
getIfAbsentPutWith(long key,
org.eclipse.collections.api.block.function.primitive.DoubleFunction<? super P> function,
P parameter) |
double |
getIfAbsentPutWithKey(long key,
org.eclipse.collections.api.block.function.primitive.LongToDoubleFunction function) |
double |
getOrThrow(long key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectDoubleToObjectFunction<? super V,? extends V> function) |
org.eclipse.collections.api.set.primitive.MutableLongSet |
keySet() |
org.eclipse.collections.api.LazyLongIterable |
keysView() |
org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.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(org.eclipse.collections.api.map.primitive.LongDoubleMap map) |
void |
readExternal(ObjectInput in) |
LongDoubleHashMap |
reject(org.eclipse.collections.api.block.predicate.primitive.LongDoublePredicate predicate) |
void |
remove(long key) |
void |
removeKey(long key) |
double |
removeKeyIfAbsent(long key,
double value) |
LongDoubleHashMap |
select(org.eclipse.collections.api.block.predicate.primitive.LongDoublePredicate predicate) |
org.eclipse.collections.api.map.primitive.ImmutableLongDoubleMap |
toImmutable() |
String |
toString() |
double |
updateValue(long key,
double initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.DoubleToDoubleFunction function) |
org.eclipse.collections.api.collection.primitive.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(org.eclipse.collections.api.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, toArrayappendString, appendString, asLazy, average, containsAll, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListcollect, reject, selectcontainsValue, forEachValueallSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeisEmpty, notEmpty, sizepublic LongDoubleHashMap()
public LongDoubleHashMap(int initialCapacity)
public LongDoubleHashMap(org.eclipse.collections.api.map.primitive.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)
public int hashCode()
public String toString()
toString in interface org.eclipse.collections.api.map.primitive.LongDoubleMaptoString in interface org.eclipse.collections.api.PrimitiveIterabletoString in class AbstractDoubleIterablepublic org.eclipse.collections.api.iterator.MutableDoubleIterator doubleIterator()
doubleIterator in interface org.eclipse.collections.api.DoubleIterabledoubleIterator in interface org.eclipse.collections.api.map.primitive.MutableDoubleValuesMappublic <V> V injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectDoubleToObjectFunction<? super V,? extends V> function)
injectInto in interface org.eclipse.collections.api.DoubleIterablepublic void clear()
clear in interface org.eclipse.collections.api.map.primitive.MutableDoubleValuesMapclear in interface MutableLongKeysMappublic void put(long key,
double value)
put in interface org.eclipse.collections.api.map.primitive.MutableLongDoubleMappublic void putAll(org.eclipse.collections.api.map.primitive.LongDoubleMap map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableLongDoubleMappublic void removeKey(long key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableLongDoubleMapremoveKey in interface MutableLongKeysMappublic void remove(long key)
remove in interface org.eclipse.collections.api.map.primitive.MutableLongDoubleMappublic double removeKeyIfAbsent(long key,
double value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableLongDoubleMappublic double getIfAbsentPut(long key,
double value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableLongDoubleMappublic double getIfAbsentPut(long key,
org.eclipse.collections.api.block.function.primitive.DoubleFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableLongDoubleMappublic <P> double getIfAbsentPutWith(long key,
org.eclipse.collections.api.block.function.primitive.DoubleFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableLongDoubleMappublic double getIfAbsentPutWithKey(long key,
org.eclipse.collections.api.block.function.primitive.LongToDoubleFunction function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableLongDoubleMappublic double addToValue(long key,
double toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableLongDoubleMappublic double updateValue(long key,
double initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.DoubleToDoubleFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableLongDoubleMappublic LongDoubleHashMap withKeyValue(long key1, double value1)
withKeyValue in interface org.eclipse.collections.api.map.primitive.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 org.eclipse.collections.api.map.primitive.MutableLongDoubleMappublic LongDoubleHashMap withoutAllKeys(org.eclipse.collections.api.LongIterable keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableLongDoubleMappublic org.eclipse.collections.api.map.primitive.MutableLongDoubleMap asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableLongDoubleMappublic org.eclipse.collections.api.map.primitive.MutableLongDoubleMap asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableLongDoubleMappublic org.eclipse.collections.api.map.primitive.ImmutableLongDoubleMap toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.LongDoubleMappublic double get(long key)
get in interface org.eclipse.collections.api.map.primitive.LongDoubleMappublic double getIfAbsent(long key,
double ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.LongDoubleMappublic double getOrThrow(long key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.LongDoubleMappublic boolean containsKey(long key)
containsKey in interface org.eclipse.collections.api.map.primitive.LongDoubleMapcontainsKey in interface LongKeysMappublic void forEachKey(org.eclipse.collections.api.block.procedure.primitive.LongProcedure procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.LongDoubleMapforEachKey in interface LongKeysMappublic void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.LongDoubleProcedure procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.LongDoubleMappublic org.eclipse.collections.api.LazyLongIterable keysView()
keysView in interface org.eclipse.collections.api.map.primitive.LongDoubleMappublic org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.LongDoublePair> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.LongDoubleMappublic LongDoubleHashMap select(org.eclipse.collections.api.block.predicate.primitive.LongDoublePredicate predicate)
select in interface org.eclipse.collections.api.map.primitive.LongDoubleMapselect in interface org.eclipse.collections.api.map.primitive.MutableLongDoubleMappublic LongDoubleHashMap reject(org.eclipse.collections.api.block.predicate.primitive.LongDoublePredicate predicate)
reject in interface org.eclipse.collections.api.map.primitive.LongDoubleMapreject in interface org.eclipse.collections.api.map.primitive.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 org.eclipse.collections.api.set.primitive.MutableLongSet keySet()
keySet in interface org.eclipse.collections.api.map.primitive.LongDoubleMappublic org.eclipse.collections.api.collection.primitive.MutableDoubleCollection values()
values in interface org.eclipse.collections.api.map.primitive.DoubleValuesMapCopyright © 2004–2018. All rights reserved.