Externalizable, Serializable, LongIterable, DoubleLongMap, LongValuesMap, MutableDoubleLongMap, MutableLongValuesMap, PrimitiveIterable, MutableDoubleKeysMap, DoubleKeysMappublic class DoubleLongHashMap extends AbstractMutableLongValuesMap implements MutableDoubleLongMap, Externalizable, MutableDoubleKeysMap
| Constructor | Description |
|---|---|
DoubleLongHashMap() |
|
DoubleLongHashMap(int initialCapacity) |
|
DoubleLongHashMap(DoubleLongMap map) |
| Modifier and Type | Method | 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() |
Returns a primitive iterator that can be used to iterate over the LongIterable in an
imperative style.
|
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 with the elements of this iterable separated by commas with spaces and
enclosed in square brackets.
|
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) |
asLazy, average, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListallSatisfy, anySatisfy, appendString, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, select, size, sum, toArrayisEmpty, notEmpty, sizeallSatisfy, anySatisfy, asLazy, average, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListcontainsValue, forEachValuecollect, reject, selectappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizepublic 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)
DoubleLongMapMap.equals(Object).equals in interface DoubleLongMapequals in class Objectpublic int hashCode()
DoubleLongMapMap.hashCode().hashCode in interface DoubleLongMaphashCode in class Objectpublic String toString()
PrimitiveIterable
Assert.assertEquals("[]", IntLists.mutable.empty().toString());
Assert.assertEquals("[1]", IntLists.mutable.with(1).toString());
Assert.assertEquals("[1, 2, 3]", IntLists.mutable.with(1, 2, 3).toString());
toString in interface DoubleLongMaptoString in interface PrimitiveIterabletoString in class AbstractLongIterableAbstractCollection.toString()public MutableLongIterator longIterator()
LongIterablelongIterator in interface LongIterablelongIterator in interface MutableLongValuesMappublic <V> V injectInto(V injectedValue,
ObjectLongToObjectFunction<? super V,? extends V> function)
injectInto in interface LongIterablepublic void clear()
clear in interface MutableDoubleKeysMapclear in interface MutableLongValuesMappublic void put(double key,
long value)
put in interface MutableDoubleLongMappublic void putAll(DoubleLongMap map)
putAll in interface MutableDoubleLongMappublic void removeKey(double key)
removeKey in interface MutableDoubleKeysMapremoveKey in interface MutableDoubleLongMappublic void remove(double key)
remove in interface MutableDoubleLongMappublic long removeKeyIfAbsent(double key,
long value)
removeKeyIfAbsent in interface MutableDoubleLongMappublic long getIfAbsentPut(double key,
long value)
getIfAbsentPut in interface MutableDoubleLongMappublic long getIfAbsentPut(double key,
LongFunction0 function)
getIfAbsentPut in interface MutableDoubleLongMappublic <P> long getIfAbsentPutWith(double key,
LongFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableDoubleLongMappublic long getIfAbsentPutWithKey(double key,
DoubleToLongFunction function)
getIfAbsentPutWithKey in interface MutableDoubleLongMappublic long addToValue(double key,
long toBeAdded)
addToValue in interface MutableDoubleLongMappublic long updateValue(double key,
long initialValueIfAbsent,
LongToLongFunction function)
updateValue in interface MutableDoubleLongMappublic DoubleLongHashMap withKeyValue(double key1, long value1)
withKeyValue in interface MutableDoubleLongMappublic 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 MutableDoubleLongMappublic DoubleLongHashMap withoutAllKeys(DoubleIterable keys)
withoutAllKeys in interface MutableDoubleLongMappublic MutableDoubleLongMap asUnmodifiable()
asUnmodifiable in interface MutableDoubleLongMappublic MutableDoubleLongMap asSynchronized()
asSynchronized in interface MutableDoubleLongMappublic ImmutableDoubleLongMap toImmutable()
toImmutable in interface DoubleLongMappublic long get(double key)
get in interface DoubleLongMappublic long getIfAbsent(double key,
long ifAbsent)
getIfAbsent in interface DoubleLongMappublic long getOrThrow(double key)
getOrThrow in interface DoubleLongMappublic boolean containsKey(double key)
containsKey in interface DoubleKeysMapcontainsKey in interface DoubleLongMappublic void forEachKey(DoubleProcedure procedure)
forEachKey in interface DoubleKeysMapforEachKey in interface DoubleLongMappublic void forEachKeyValue(DoubleLongProcedure procedure)
forEachKeyValue in interface DoubleLongMappublic LazyDoubleIterable keysView()
keysView in interface DoubleLongMappublic RichIterable<DoubleLongPair> keyValuesView()
keyValuesView in interface DoubleLongMappublic DoubleLongHashMap select(DoubleLongPredicate predicate)
select in interface DoubleLongMapselect in interface MutableDoubleLongMappublic DoubleLongHashMap reject(DoubleLongPredicate predicate)
reject in interface DoubleLongMapreject in interface MutableDoubleLongMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void compact()
public MutableDoubleSet keySet()
keySet in interface DoubleLongMappublic MutableLongCollection values()
values in interface LongValuesMapCopyright © 2004–2017. All rights reserved.