public class ShortDoubleHashMap extends AbstractMutableDoubleValuesMap implements org.eclipse.collections.api.map.primitive.MutableShortDoubleMap, Externalizable, MutableShortKeysMap
| Constructor and Description |
|---|
ShortDoubleHashMap() |
ShortDoubleHashMap(int initialCapacity) |
ShortDoubleHashMap(org.eclipse.collections.api.map.primitive.ShortDoubleMap map) |
| Modifier and Type | Method and Description |
|---|---|
double |
addToValue(short key,
double toBeAdded) |
org.eclipse.collections.api.map.primitive.MutableShortDoubleMap |
asSynchronized() |
org.eclipse.collections.api.map.primitive.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) |
org.eclipse.collections.api.iterator.MutableDoubleIterator |
doubleIterator() |
boolean |
equals(Object obj) |
void |
forEachKey(org.eclipse.collections.api.block.procedure.primitive.ShortProcedure procedure) |
void |
forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ShortDoubleProcedure procedure) |
double |
get(short key) |
double |
getIfAbsent(short key,
double ifAbsent) |
double |
getIfAbsentPut(short key,
double value) |
double |
getIfAbsentPut(short key,
org.eclipse.collections.api.block.function.primitive.DoubleFunction0 function) |
<P> double |
getIfAbsentPutWith(short key,
org.eclipse.collections.api.block.function.primitive.DoubleFunction<? super P> function,
P parameter) |
double |
getIfAbsentPutWithKey(short key,
org.eclipse.collections.api.block.function.primitive.ShortToDoubleFunction function) |
double |
getOrThrow(short 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.MutableShortSet |
keySet() |
org.eclipse.collections.api.LazyShortIterable |
keysView() |
org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.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(org.eclipse.collections.api.map.primitive.ShortDoubleMap map) |
void |
readExternal(ObjectInput in) |
ShortDoubleHashMap |
reject(org.eclipse.collections.api.block.predicate.primitive.ShortDoublePredicate predicate) |
void |
remove(short key) |
void |
removeKey(short key) |
double |
removeKeyIfAbsent(short key,
double value) |
ShortDoubleHashMap |
select(org.eclipse.collections.api.block.predicate.primitive.ShortDoublePredicate predicate) |
org.eclipse.collections.api.map.primitive.ImmutableShortDoubleMap |
toImmutable() |
String |
toString() |
double |
updateValue(short key,
double initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.DoubleToDoubleFunction function) |
org.eclipse.collections.api.collection.primitive.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(org.eclipse.collections.api.ShortIterable keys) |
ShortDoubleHashMap |
withoutKey(short 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 ShortDoubleHashMap()
public ShortDoubleHashMap(int initialCapacity)
public ShortDoubleHashMap(org.eclipse.collections.api.map.primitive.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)
public int hashCode()
public String toString()
toString in interface org.eclipse.collections.api.map.primitive.ShortDoubleMaptoString 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 MutableShortKeysMappublic void put(short key,
double value)
put in interface org.eclipse.collections.api.map.primitive.MutableShortDoubleMappublic void putAll(org.eclipse.collections.api.map.primitive.ShortDoubleMap map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableShortDoubleMappublic void removeKey(short key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableShortDoubleMapremoveKey in interface MutableShortKeysMappublic void remove(short key)
remove in interface org.eclipse.collections.api.map.primitive.MutableShortDoubleMappublic double removeKeyIfAbsent(short key,
double value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableShortDoubleMappublic double getIfAbsentPut(short key,
double value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableShortDoubleMappublic double getIfAbsentPut(short key,
org.eclipse.collections.api.block.function.primitive.DoubleFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableShortDoubleMappublic <P> double getIfAbsentPutWith(short key,
org.eclipse.collections.api.block.function.primitive.DoubleFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableShortDoubleMappublic double getIfAbsentPutWithKey(short key,
org.eclipse.collections.api.block.function.primitive.ShortToDoubleFunction function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableShortDoubleMappublic double addToValue(short key,
double toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableShortDoubleMappublic double updateValue(short key,
double initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.DoubleToDoubleFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableShortDoubleMappublic ShortDoubleHashMap withKeyValue(short key1, double value1)
withKeyValue in interface org.eclipse.collections.api.map.primitive.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 org.eclipse.collections.api.map.primitive.MutableShortDoubleMappublic ShortDoubleHashMap withoutAllKeys(org.eclipse.collections.api.ShortIterable keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableShortDoubleMappublic org.eclipse.collections.api.map.primitive.MutableShortDoubleMap asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableShortDoubleMappublic org.eclipse.collections.api.map.primitive.MutableShortDoubleMap asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableShortDoubleMappublic org.eclipse.collections.api.map.primitive.ImmutableShortDoubleMap toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.ShortDoubleMappublic double get(short key)
get in interface org.eclipse.collections.api.map.primitive.ShortDoubleMappublic double getIfAbsent(short key,
double ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.ShortDoubleMappublic double getOrThrow(short key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.ShortDoubleMappublic boolean containsKey(short key)
containsKey in interface org.eclipse.collections.api.map.primitive.ShortDoubleMapcontainsKey in interface ShortKeysMappublic void forEachKey(org.eclipse.collections.api.block.procedure.primitive.ShortProcedure procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.ShortDoubleMapforEachKey in interface ShortKeysMappublic void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ShortDoubleProcedure procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.ShortDoubleMappublic org.eclipse.collections.api.LazyShortIterable keysView()
keysView in interface org.eclipse.collections.api.map.primitive.ShortDoubleMappublic org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.ShortDoublePair> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.ShortDoubleMappublic ShortDoubleHashMap select(org.eclipse.collections.api.block.predicate.primitive.ShortDoublePredicate predicate)
select in interface org.eclipse.collections.api.map.primitive.MutableShortDoubleMapselect in interface org.eclipse.collections.api.map.primitive.ShortDoubleMappublic ShortDoubleHashMap reject(org.eclipse.collections.api.block.predicate.primitive.ShortDoublePredicate predicate)
reject in interface org.eclipse.collections.api.map.primitive.MutableShortDoubleMapreject in interface org.eclipse.collections.api.map.primitive.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 org.eclipse.collections.api.set.primitive.MutableShortSet keySet()
keySet in interface org.eclipse.collections.api.map.primitive.ShortDoubleMappublic org.eclipse.collections.api.collection.primitive.MutableDoubleCollection values()
values in interface org.eclipse.collections.api.map.primitive.DoubleValuesMapCopyright © 2004–2017. All rights reserved.