public class LongDoubleHashMap extends AbstractMutableDoubleValuesMap implements com.gs.collections.api.map.primitive.MutableLongDoubleMap, java.io.Externalizable, MutableLongKeysMap
AbstractMutableDoubleValuesMap.AbstractDoubleValuesCollection, AbstractMutableDoubleValuesMap.SentinelValues| Constructor and Description |
|---|
LongDoubleHashMap() |
LongDoubleHashMap(int initialCapacity) |
LongDoubleHashMap(com.gs.collections.api.map.primitive.LongDoubleMap map) |
| Modifier and Type | Method and Description |
|---|---|
double |
addToValue(long key,
double toBeAdded) |
com.gs.collections.api.map.primitive.MutableLongDoubleMap |
asSynchronized() |
com.gs.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) |
com.gs.collections.api.iterator.MutableDoubleIterator |
doubleIterator() |
boolean |
equals(java.lang.Object obj)
Follows the same general contract as
Map.equals(Object). |
void |
forEachKey(com.gs.collections.api.block.procedure.primitive.LongProcedure procedure) |
void |
forEachKeyValue(com.gs.collections.api.block.procedure.primitive.LongDoubleProcedure procedure) |
double |
get(long key) |
protected double |
getEmptyValue() |
double |
getIfAbsent(long key,
double ifAbsent) |
double |
getIfAbsentPut(long key,
double value) |
double |
getIfAbsentPut(long key,
com.gs.collections.api.block.function.primitive.DoubleFunction0 function) |
<P> double |
getIfAbsentPutWith(long key,
com.gs.collections.api.block.function.primitive.DoubleFunction<? super P> function,
P parameter) |
double |
getIfAbsentPutWithKey(long key,
com.gs.collections.api.block.function.primitive.LongToDoubleFunction function) |
protected int |
getOccupiedWithData() |
double |
getOrThrow(long key) |
protected AbstractMutableDoubleValuesMap.SentinelValues |
getSentinelValues() |
protected int |
getTableSize() |
protected double |
getValueAtIndex(int index) |
int |
hashCode()
Follows the same general contract as
Map.hashCode(). |
<V> V |
injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectDoubleToObjectFunction<? super V,? extends V> function) |
protected boolean |
isNonSentinelAtIndex(int index) |
com.gs.collections.api.set.primitive.MutableLongSet |
keySet() |
com.gs.collections.api.LazyLongIterable |
keysView() |
com.gs.collections.api.RichIterable<com.gs.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(com.gs.collections.api.map.primitive.LongDoubleMap map) |
void |
readExternal(java.io.ObjectInput in) |
LongDoubleHashMap |
reject(com.gs.collections.api.block.predicate.primitive.LongDoublePredicate predicate) |
void |
remove(long key) |
void |
removeKey(long key) |
double |
removeKeyIfAbsent(long key,
double value) |
LongDoubleHashMap |
select(com.gs.collections.api.block.predicate.primitive.LongDoublePredicate predicate) |
protected void |
setSentinelValuesNull() |
com.gs.collections.api.map.primitive.ImmutableLongDoubleMap |
toImmutable() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
double |
updateValue(long key,
double initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.DoubleToDoubleFunction function) |
com.gs.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(com.gs.collections.api.LongIterable keys) |
LongDoubleHashMap |
withoutKey(long key) |
void |
writeExternal(java.io.ObjectOutput out) |
addEmptyKeyValue, addRemovedKeyValue, allSatisfy, anySatisfy, appendString, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, removeEmptyKey, removeRemovedKey, select, size, sum, toArrayappendString, appendString, asLazy, average, containsAll, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListclone, finalize, getClass, notify, notifyAll, wait, wait, waitcollect, 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(com.gs.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)
protected int getOccupiedWithData()
getOccupiedWithData in class AbstractMutableDoubleValuesMapprotected AbstractMutableDoubleValuesMap.SentinelValues getSentinelValues()
getSentinelValues in class AbstractMutableDoubleValuesMapprotected void setSentinelValuesNull()
setSentinelValuesNull in class AbstractMutableDoubleValuesMapprotected double getEmptyValue()
getEmptyValue in class AbstractMutableDoubleValuesMapprotected int getTableSize()
getTableSize in class AbstractMutableDoubleValuesMapprotected double getValueAtIndex(int index)
getValueAtIndex in class AbstractMutableDoubleValuesMappublic boolean equals(java.lang.Object obj)
com.gs.collections.api.map.primitive.LongDoubleMapMap.equals(Object).equals in interface com.gs.collections.api.map.primitive.LongDoubleMapequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.map.primitive.LongDoubleMapMap.hashCode().hashCode in interface com.gs.collections.api.map.primitive.LongDoubleMaphashCode in class java.lang.Objectpublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.map.primitive.LongDoubleMaptoString in interface com.gs.collections.api.PrimitiveIterabletoString in class AbstractDoubleIterablepublic com.gs.collections.api.iterator.MutableDoubleIterator doubleIterator()
doubleIterator in interface com.gs.collections.api.DoubleIterabledoubleIterator in interface com.gs.collections.api.map.primitive.MutableDoubleValuesMappublic <V> V injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectDoubleToObjectFunction<? super V,? extends V> function)
injectInto in interface com.gs.collections.api.DoubleIterablepublic void clear()
clear in interface com.gs.collections.api.map.primitive.MutableDoubleValuesMapclear in interface MutableLongKeysMappublic void put(long key,
double value)
put in interface com.gs.collections.api.map.primitive.MutableLongDoubleMappublic void putAll(com.gs.collections.api.map.primitive.LongDoubleMap map)
putAll in interface com.gs.collections.api.map.primitive.MutableLongDoubleMappublic void removeKey(long key)
removeKey in interface com.gs.collections.api.map.primitive.MutableLongDoubleMapremoveKey in interface MutableLongKeysMappublic void remove(long key)
remove in interface com.gs.collections.api.map.primitive.MutableLongDoubleMappublic double removeKeyIfAbsent(long key,
double value)
removeKeyIfAbsent in interface com.gs.collections.api.map.primitive.MutableLongDoubleMappublic double getIfAbsentPut(long key,
double value)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableLongDoubleMappublic double getIfAbsentPut(long key,
com.gs.collections.api.block.function.primitive.DoubleFunction0 function)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableLongDoubleMappublic <P> double getIfAbsentPutWith(long key,
com.gs.collections.api.block.function.primitive.DoubleFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface com.gs.collections.api.map.primitive.MutableLongDoubleMappublic double getIfAbsentPutWithKey(long key,
com.gs.collections.api.block.function.primitive.LongToDoubleFunction function)
getIfAbsentPutWithKey in interface com.gs.collections.api.map.primitive.MutableLongDoubleMappublic double addToValue(long key,
double toBeAdded)
addToValue in interface com.gs.collections.api.map.primitive.MutableLongDoubleMappublic double updateValue(long key,
double initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.DoubleToDoubleFunction function)
updateValue in interface com.gs.collections.api.map.primitive.MutableLongDoubleMappublic LongDoubleHashMap withKeyValue(long key1, double value1)
withKeyValue in interface com.gs.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 com.gs.collections.api.map.primitive.MutableLongDoubleMappublic LongDoubleHashMap withoutAllKeys(com.gs.collections.api.LongIterable keys)
withoutAllKeys in interface com.gs.collections.api.map.primitive.MutableLongDoubleMappublic com.gs.collections.api.map.primitive.MutableLongDoubleMap asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.map.primitive.MutableLongDoubleMappublic com.gs.collections.api.map.primitive.MutableLongDoubleMap asSynchronized()
asSynchronized in interface com.gs.collections.api.map.primitive.MutableLongDoubleMappublic com.gs.collections.api.map.primitive.ImmutableLongDoubleMap toImmutable()
toImmutable in interface com.gs.collections.api.map.primitive.LongDoubleMappublic double get(long key)
get in interface com.gs.collections.api.map.primitive.LongDoubleMappublic double getIfAbsent(long key,
double ifAbsent)
getIfAbsent in interface com.gs.collections.api.map.primitive.LongDoubleMappublic double getOrThrow(long key)
getOrThrow in interface com.gs.collections.api.map.primitive.LongDoubleMappublic boolean containsKey(long key)
containsKey in interface com.gs.collections.api.map.primitive.LongDoubleMapcontainsKey in interface LongKeysMappublic void forEachKey(com.gs.collections.api.block.procedure.primitive.LongProcedure procedure)
forEachKey in interface com.gs.collections.api.map.primitive.LongDoubleMapforEachKey in interface LongKeysMappublic void forEachKeyValue(com.gs.collections.api.block.procedure.primitive.LongDoubleProcedure procedure)
forEachKeyValue in interface com.gs.collections.api.map.primitive.LongDoubleMappublic com.gs.collections.api.LazyLongIterable keysView()
keysView in interface com.gs.collections.api.map.primitive.LongDoubleMappublic com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.LongDoublePair> keyValuesView()
keyValuesView in interface com.gs.collections.api.map.primitive.LongDoubleMappublic LongDoubleHashMap select(com.gs.collections.api.block.predicate.primitive.LongDoublePredicate predicate)
select in interface com.gs.collections.api.map.primitive.LongDoubleMapselect in interface com.gs.collections.api.map.primitive.MutableLongDoubleMappublic LongDoubleHashMap reject(com.gs.collections.api.block.predicate.primitive.LongDoublePredicate predicate)
reject in interface com.gs.collections.api.map.primitive.LongDoubleMapreject in interface com.gs.collections.api.map.primitive.MutableLongDoubleMappublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic void compact()
protected boolean isNonSentinelAtIndex(int index)
isNonSentinelAtIndex in class AbstractMutableDoubleValuesMappublic com.gs.collections.api.set.primitive.MutableLongSet keySet()
keySet in interface com.gs.collections.api.map.primitive.LongDoubleMappublic com.gs.collections.api.collection.primitive.MutableDoubleCollection values()
values in interface com.gs.collections.api.map.primitive.DoubleValuesMap