public class DoubleShortHashMap extends AbstractMutableShortValuesMap implements MutableDoubleShortMap, Externalizable, MutableDoubleKeysMap
| Constructor and Description |
|---|
DoubleShortHashMap() |
DoubleShortHashMap(DoubleShortMap map) |
DoubleShortHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
short |
addToValue(double key,
short toBeAdded) |
MutableDoubleShortMap |
asSynchronized() |
MutableDoubleShortMap |
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) |
MutableShortDoubleMap |
flipUniqueValues() |
void |
forEachKey(DoubleProcedure procedure) |
void |
forEachKeyValue(DoubleShortProcedure procedure) |
short |
get(double key) |
short |
getAndPut(double key,
short putValue,
short defaultValue) |
short |
getIfAbsent(double key,
short ifAbsent) |
short |
getIfAbsentPut(double key,
short value) |
short |
getIfAbsentPut(double key,
ShortFunction0 function) |
<P> short |
getIfAbsentPutWith(double key,
ShortFunction<? super P> function,
P parameter) |
short |
getIfAbsentPutWithKey(double key,
DoubleToShortFunction function) |
short |
getOrThrow(double key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
ObjectShortToObjectFunction<? super V,? extends V> function) |
MutableDoubleSet |
keySet() |
LazyDoubleIterable |
keysView() |
RichIterable<DoubleShortPair> |
keyValuesView() |
static DoubleShortHashMap |
newWithKeysValues(double key1,
short value1) |
static DoubleShortHashMap |
newWithKeysValues(double key1,
short value1,
double key2,
short value2) |
static DoubleShortHashMap |
newWithKeysValues(double key1,
short value1,
double key2,
short value2,
double key3,
short value3) |
static DoubleShortHashMap |
newWithKeysValues(double key1,
short value1,
double key2,
short value2,
double key3,
short value3,
double key4,
short value4) |
void |
put(double key,
short value) |
void |
putAll(DoubleShortMap map) |
void |
readExternal(ObjectInput in) |
DoubleShortHashMap |
reject(DoubleShortPredicate predicate) |
void |
remove(double key) |
void |
removeKey(double key) |
short |
removeKeyIfAbsent(double key,
short value) |
DoubleShortHashMap |
select(DoubleShortPredicate predicate) |
MutableShortIterator |
shortIterator() |
ImmutableDoubleShortMap |
toImmutable() |
String |
toString() |
short |
updateValue(double key,
short initialValueIfAbsent,
ShortToShortFunction function) |
void |
updateValues(DoubleShortToShortFunction function) |
MutableShortCollection |
values() |
DoubleShortHashMap |
withKeysValues(double key1,
short value1,
double key2,
short value2) |
DoubleShortHashMap |
withKeysValues(double key1,
short value1,
double key2,
short value2,
double key3,
short value3) |
DoubleShortHashMap |
withKeysValues(double key1,
short value1,
double key2,
short value2,
double key3,
short value3,
double key4,
short value4) |
DoubleShortHashMap |
withKeyValue(double key1,
short value1) |
DoubleShortHashMap |
withoutAllKeys(DoubleIterable keys) |
DoubleShortHashMap |
withoutKey(double 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 DoubleShortHashMap()
public DoubleShortHashMap(int initialCapacity)
public DoubleShortHashMap(DoubleShortMap map)
public static DoubleShortHashMap newWithKeysValues(double key1, short value1)
public static DoubleShortHashMap newWithKeysValues(double key1, short value1, double key2, short value2)
public static DoubleShortHashMap newWithKeysValues(double key1, short value1, double key2, short value2, double key3, short value3)
public static DoubleShortHashMap newWithKeysValues(double key1, short value1, double key2, short value2, double key3, short value3, double key4, short value4)
public boolean equals(Object obj)
equals in interface DoubleShortMapequals in class Objectpublic int hashCode()
hashCode in interface DoubleShortMaphashCode in class Objectpublic String toString()
toString in interface DoubleShortMaptoString in interface PrimitiveIterabletoString in class AbstractShortIterablepublic MutableShortIterator shortIterator()
shortIterator in interface MutableShortValuesMapshortIterator in interface ShortIterablepublic <V> V injectInto(V injectedValue,
ObjectShortToObjectFunction<? super V,? extends V> function)
injectInto in interface ShortIterablepublic void clear()
clear in interface MutableShortValuesMapclear in interface MutableDoubleKeysMappublic void put(double key,
short value)
put in interface MutableDoubleShortMappublic void putAll(DoubleShortMap map)
putAll in interface MutableDoubleShortMappublic void updateValues(DoubleShortToShortFunction function)
updateValues in interface MutableDoubleShortMappublic void removeKey(double key)
removeKey in interface MutableDoubleShortMapremoveKey in interface MutableDoubleKeysMappublic void remove(double key)
remove in interface MutableDoubleShortMappublic short removeKeyIfAbsent(double key,
short value)
removeKeyIfAbsent in interface MutableDoubleShortMappublic short getIfAbsentPut(double key,
short value)
getIfAbsentPut in interface MutableDoubleShortMappublic short getAndPut(double key,
short putValue,
short defaultValue)
getAndPut in interface MutableDoubleShortMappublic short getIfAbsentPut(double key,
ShortFunction0 function)
getIfAbsentPut in interface MutableDoubleShortMappublic <P> short getIfAbsentPutWith(double key,
ShortFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableDoubleShortMappublic short getIfAbsentPutWithKey(double key,
DoubleToShortFunction function)
getIfAbsentPutWithKey in interface MutableDoubleShortMappublic short addToValue(double key,
short toBeAdded)
addToValue in interface MutableDoubleShortMappublic short updateValue(double key,
short initialValueIfAbsent,
ShortToShortFunction function)
updateValue in interface MutableDoubleShortMappublic DoubleShortHashMap withKeyValue(double key1, short value1)
withKeyValue in interface MutableDoubleShortMappublic DoubleShortHashMap withKeysValues(double key1, short value1, double key2, short value2)
public DoubleShortHashMap withKeysValues(double key1, short value1, double key2, short value2, double key3, short value3)
public DoubleShortHashMap withKeysValues(double key1, short value1, double key2, short value2, double key3, short value3, double key4, short value4)
public DoubleShortHashMap withoutKey(double key)
withoutKey in interface MutableDoubleShortMappublic DoubleShortHashMap withoutAllKeys(DoubleIterable keys)
withoutAllKeys in interface MutableDoubleShortMappublic MutableDoubleShortMap asUnmodifiable()
asUnmodifiable in interface MutableDoubleShortMappublic MutableDoubleShortMap asSynchronized()
asSynchronized in interface MutableDoubleShortMappublic ImmutableDoubleShortMap toImmutable()
toImmutable in interface DoubleShortMappublic short get(double key)
get in interface DoubleShortMappublic short getIfAbsent(double key,
short ifAbsent)
getIfAbsent in interface DoubleShortMappublic short getOrThrow(double key)
getOrThrow in interface DoubleShortMappublic boolean containsKey(double key)
containsKey in interface DoubleShortMapcontainsKey in interface DoubleKeysMappublic void forEachKey(DoubleProcedure procedure)
forEachKey in interface DoubleShortMapforEachKey in interface DoubleKeysMappublic void forEachKeyValue(DoubleShortProcedure procedure)
forEachKeyValue in interface DoubleShortMappublic LazyDoubleIterable keysView()
keysView in interface DoubleShortMappublic RichIterable<DoubleShortPair> keyValuesView()
keyValuesView in interface DoubleShortMappublic MutableShortDoubleMap flipUniqueValues()
flipUniqueValues in interface DoubleShortMapflipUniqueValues in interface MutableDoubleShortMappublic DoubleShortHashMap select(DoubleShortPredicate predicate)
select in interface DoubleShortMapselect in interface MutableDoubleShortMappublic DoubleShortHashMap reject(DoubleShortPredicate predicate)
reject in interface DoubleShortMapreject in interface MutableDoubleShortMappublic 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 DoubleShortMappublic MutableShortCollection values()
values in interface ShortValuesMapCopyright © 2004–2022. All rights reserved.