public class ShortDoubleHashMap extends AbstractMutableDoubleValuesMap implements MutableShortDoubleMap, Externalizable, MutableShortKeysMap
| Constructor and Description |
|---|
ShortDoubleHashMap() |
ShortDoubleHashMap(int initialCapacity) |
ShortDoubleHashMap(ShortDoubleMap map) |
| Modifier and Type | Method and Description |
|---|---|
double |
addToValue(short key,
double toBeAdded) |
MutableShortDoubleMap |
asSynchronized() |
MutableShortDoubleMap |
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(short key) |
MutableDoubleIterator |
doubleIterator() |
boolean |
equals(Object obj) |
MutableDoubleShortMap |
flipUniqueValues() |
void |
forEachKey(ShortProcedure procedure) |
void |
forEachKeyValue(ShortDoubleProcedure procedure) |
double |
get(short key) |
double |
getAndPut(short key,
double putValue,
double defaultValue) |
double |
getIfAbsent(short key,
double ifAbsent) |
double |
getIfAbsentPut(short key,
double value) |
double |
getIfAbsentPut(short key,
DoubleFunction0 function) |
<P> double |
getIfAbsentPutWith(short key,
DoubleFunction<? super P> function,
P parameter) |
double |
getIfAbsentPutWithKey(short key,
ShortToDoubleFunction function) |
double |
getOrThrow(short key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
ObjectDoubleToObjectFunction<? super V,? extends V> function) |
MutableShortSet |
keySet() |
LazyShortIterable |
keysView() |
RichIterable<ShortDoublePair> |
keyValuesView() |
static ShortDoubleHashMap |
newWithKeysValues(short key1,
double value1) |
static ShortDoubleHashMap |
newWithKeysValues(short key1,
double value1,
short key2,
double value2) |
static ShortDoubleHashMap |
newWithKeysValues(short key1,
double value1,
short key2,
double value2,
short key3,
double value3) |
static ShortDoubleHashMap |
newWithKeysValues(short key1,
double value1,
short key2,
double value2,
short key3,
double value3,
short key4,
double value4) |
void |
put(short key,
double value) |
void |
putAll(ShortDoubleMap map) |
void |
readExternal(ObjectInput in) |
ShortDoubleHashMap |
reject(ShortDoublePredicate predicate) |
void |
remove(short key) |
void |
removeKey(short key) |
double |
removeKeyIfAbsent(short key,
double value) |
ShortDoubleHashMap |
select(ShortDoublePredicate predicate) |
ImmutableShortDoubleMap |
toImmutable() |
String |
toString() |
double |
updateValue(short key,
double initialValueIfAbsent,
DoubleToDoubleFunction function) |
void |
updateValues(ShortDoubleToDoubleFunction function) |
MutableDoubleCollection |
values() |
ShortDoubleHashMap |
withKeysValues(short key1,
double value1,
short key2,
double value2) |
ShortDoubleHashMap |
withKeysValues(short key1,
double value1,
short key2,
double value2,
short key3,
double value3) |
ShortDoubleHashMap |
withKeysValues(short key1,
double value1,
short key2,
double value2,
short key3,
double value3,
short key4,
double value4) |
ShortDoubleHashMap |
withKeyValue(short key1,
double value1) |
ShortDoubleHashMap |
withoutAllKeys(ShortIterable keys) |
ShortDoubleHashMap |
withoutKey(short 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 ShortDoubleHashMap()
public ShortDoubleHashMap(int initialCapacity)
public ShortDoubleHashMap(ShortDoubleMap map)
public static ShortDoubleHashMap newWithKeysValues(short key1, double value1)
public static ShortDoubleHashMap newWithKeysValues(short key1, double value1, short key2, double value2)
public static ShortDoubleHashMap newWithKeysValues(short key1, double value1, short key2, double value2, short key3, double value3)
public static ShortDoubleHashMap newWithKeysValues(short key1, double value1, short key2, double value2, short key3, double value3, short key4, double value4)
public boolean equals(Object obj)
equals in interface ShortDoubleMapequals in class Objectpublic int hashCode()
hashCode in interface ShortDoubleMaphashCode in class Objectpublic String toString()
toString in interface ShortDoubleMaptoString 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 MutableShortKeysMappublic void put(short key,
double value)
put in interface MutableShortDoubleMappublic void putAll(ShortDoubleMap map)
putAll in interface MutableShortDoubleMappublic void updateValues(ShortDoubleToDoubleFunction function)
updateValues in interface MutableShortDoubleMappublic void removeKey(short key)
removeKey in interface MutableShortDoubleMapremoveKey in interface MutableShortKeysMappublic void remove(short key)
remove in interface MutableShortDoubleMappublic double removeKeyIfAbsent(short key,
double value)
removeKeyIfAbsent in interface MutableShortDoubleMappublic double getIfAbsentPut(short key,
double value)
getIfAbsentPut in interface MutableShortDoubleMappublic double getAndPut(short key,
double putValue,
double defaultValue)
getAndPut in interface MutableShortDoubleMappublic double getIfAbsentPut(short key,
DoubleFunction0 function)
getIfAbsentPut in interface MutableShortDoubleMappublic <P> double getIfAbsentPutWith(short key,
DoubleFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableShortDoubleMappublic double getIfAbsentPutWithKey(short key,
ShortToDoubleFunction function)
getIfAbsentPutWithKey in interface MutableShortDoubleMappublic double addToValue(short key,
double toBeAdded)
addToValue in interface MutableShortDoubleMappublic double updateValue(short key,
double initialValueIfAbsent,
DoubleToDoubleFunction function)
updateValue in interface MutableShortDoubleMappublic ShortDoubleHashMap withKeyValue(short key1, double value1)
withKeyValue in interface MutableShortDoubleMappublic ShortDoubleHashMap withKeysValues(short key1, double value1, short key2, double value2)
public ShortDoubleHashMap withKeysValues(short key1, double value1, short key2, double value2, short key3, double value3)
public ShortDoubleHashMap withKeysValues(short key1, double value1, short key2, double value2, short key3, double value3, short key4, double value4)
public ShortDoubleHashMap withoutKey(short key)
withoutKey in interface MutableShortDoubleMappublic ShortDoubleHashMap withoutAllKeys(ShortIterable keys)
withoutAllKeys in interface MutableShortDoubleMappublic MutableShortDoubleMap asUnmodifiable()
asUnmodifiable in interface MutableShortDoubleMappublic MutableShortDoubleMap asSynchronized()
asSynchronized in interface MutableShortDoubleMappublic ImmutableShortDoubleMap toImmutable()
toImmutable in interface ShortDoubleMappublic double get(short key)
get in interface ShortDoubleMappublic double getIfAbsent(short key,
double ifAbsent)
getIfAbsent in interface ShortDoubleMappublic double getOrThrow(short key)
getOrThrow in interface ShortDoubleMappublic boolean containsKey(short key)
containsKey in interface ShortDoubleMapcontainsKey in interface ShortKeysMappublic void forEachKey(ShortProcedure procedure)
forEachKey in interface ShortDoubleMapforEachKey in interface ShortKeysMappublic void forEachKeyValue(ShortDoubleProcedure procedure)
forEachKeyValue in interface ShortDoubleMappublic LazyShortIterable keysView()
keysView in interface ShortDoubleMappublic RichIterable<ShortDoublePair> keyValuesView()
keyValuesView in interface ShortDoubleMappublic MutableDoubleShortMap flipUniqueValues()
flipUniqueValues in interface MutableShortDoubleMapflipUniqueValues in interface ShortDoubleMappublic ShortDoubleHashMap select(ShortDoublePredicate predicate)
select in interface MutableShortDoubleMapselect in interface ShortDoubleMappublic ShortDoubleHashMap reject(ShortDoublePredicate predicate)
reject in interface MutableShortDoubleMapreject in interface ShortDoubleMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void compact()
public MutableShortSet keySet()
keySet in interface ShortDoubleMappublic MutableDoubleCollection values()
values in interface DoubleValuesMapCopyright © 2004–2022. All rights reserved.