public class DoubleShortHashMap extends AbstractMutableShortValuesMap implements org.eclipse.collections.api.map.primitive.MutableDoubleShortMap, Externalizable, MutableDoubleKeysMap
| Constructor and Description |
|---|
DoubleShortHashMap() |
DoubleShortHashMap(org.eclipse.collections.api.map.primitive.DoubleShortMap map) |
DoubleShortHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
short |
addToValue(double key,
short toBeAdded) |
org.eclipse.collections.api.map.primitive.MutableDoubleShortMap |
asSynchronized() |
org.eclipse.collections.api.map.primitive.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) |
void |
forEachKey(org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure procedure) |
void |
forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.DoubleShortProcedure procedure) |
short |
get(double key) |
short |
getIfAbsent(double key,
short ifAbsent) |
short |
getIfAbsentPut(double key,
short value) |
short |
getIfAbsentPut(double key,
org.eclipse.collections.api.block.function.primitive.ShortFunction0 function) |
<P> short |
getIfAbsentPutWith(double key,
org.eclipse.collections.api.block.function.primitive.ShortFunction<? super P> function,
P parameter) |
short |
getIfAbsentPutWithKey(double key,
org.eclipse.collections.api.block.function.primitive.DoubleToShortFunction function) |
short |
getOrThrow(double key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectShortToObjectFunction<? super V,? extends V> function) |
org.eclipse.collections.api.set.primitive.MutableDoubleSet |
keySet() |
org.eclipse.collections.api.LazyDoubleIterable |
keysView() |
org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.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(org.eclipse.collections.api.map.primitive.DoubleShortMap map) |
void |
readExternal(ObjectInput in) |
DoubleShortHashMap |
reject(org.eclipse.collections.api.block.predicate.primitive.DoubleShortPredicate predicate) |
void |
remove(double key) |
void |
removeKey(double key) |
short |
removeKeyIfAbsent(double key,
short value) |
DoubleShortHashMap |
select(org.eclipse.collections.api.block.predicate.primitive.DoubleShortPredicate predicate) |
org.eclipse.collections.api.iterator.MutableShortIterator |
shortIterator() |
org.eclipse.collections.api.map.primitive.ImmutableDoubleShortMap |
toImmutable() |
String |
toString() |
short |
updateValue(double key,
short initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.ShortToShortFunction function) |
org.eclipse.collections.api.collection.primitive.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(org.eclipse.collections.api.DoubleIterable keys) |
DoubleShortHashMap |
withoutKey(double 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 DoubleShortHashMap()
public DoubleShortHashMap(int initialCapacity)
public DoubleShortHashMap(org.eclipse.collections.api.map.primitive.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)
public int hashCode()
public String toString()
toString in interface org.eclipse.collections.api.map.primitive.DoubleShortMaptoString in interface org.eclipse.collections.api.PrimitiveIterabletoString in class AbstractShortIterablepublic org.eclipse.collections.api.iterator.MutableShortIterator shortIterator()
shortIterator in interface org.eclipse.collections.api.map.primitive.MutableShortValuesMapshortIterator in interface org.eclipse.collections.api.ShortIterablepublic <V> V injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectShortToObjectFunction<? super V,? extends V> function)
injectInto in interface org.eclipse.collections.api.ShortIterablepublic void clear()
clear in interface org.eclipse.collections.api.map.primitive.MutableShortValuesMapclear in interface MutableDoubleKeysMappublic void put(double key,
short value)
put in interface org.eclipse.collections.api.map.primitive.MutableDoubleShortMappublic void putAll(org.eclipse.collections.api.map.primitive.DoubleShortMap map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableDoubleShortMappublic void removeKey(double key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableDoubleShortMapremoveKey in interface MutableDoubleKeysMappublic void remove(double key)
remove in interface org.eclipse.collections.api.map.primitive.MutableDoubleShortMappublic short removeKeyIfAbsent(double key,
short value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableDoubleShortMappublic short getIfAbsentPut(double key,
short value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableDoubleShortMappublic short getIfAbsentPut(double key,
org.eclipse.collections.api.block.function.primitive.ShortFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableDoubleShortMappublic <P> short getIfAbsentPutWith(double key,
org.eclipse.collections.api.block.function.primitive.ShortFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableDoubleShortMappublic short getIfAbsentPutWithKey(double key,
org.eclipse.collections.api.block.function.primitive.DoubleToShortFunction function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableDoubleShortMappublic short addToValue(double key,
short toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableDoubleShortMappublic short updateValue(double key,
short initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.ShortToShortFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableDoubleShortMappublic DoubleShortHashMap withKeyValue(double key1, short value1)
withKeyValue in interface org.eclipse.collections.api.map.primitive.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 org.eclipse.collections.api.map.primitive.MutableDoubleShortMappublic DoubleShortHashMap withoutAllKeys(org.eclipse.collections.api.DoubleIterable keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableDoubleShortMappublic org.eclipse.collections.api.map.primitive.MutableDoubleShortMap asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableDoubleShortMappublic org.eclipse.collections.api.map.primitive.MutableDoubleShortMap asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableDoubleShortMappublic org.eclipse.collections.api.map.primitive.ImmutableDoubleShortMap toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.DoubleShortMappublic short get(double key)
get in interface org.eclipse.collections.api.map.primitive.DoubleShortMappublic short getIfAbsent(double key,
short ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.DoubleShortMappublic short getOrThrow(double key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.DoubleShortMappublic boolean containsKey(double key)
containsKey in interface org.eclipse.collections.api.map.primitive.DoubleShortMapcontainsKey in interface DoubleKeysMappublic void forEachKey(org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.DoubleShortMapforEachKey in interface DoubleKeysMappublic void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.DoubleShortProcedure procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.DoubleShortMappublic org.eclipse.collections.api.LazyDoubleIterable keysView()
keysView in interface org.eclipse.collections.api.map.primitive.DoubleShortMappublic org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.DoubleShortPair> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.DoubleShortMappublic DoubleShortHashMap select(org.eclipse.collections.api.block.predicate.primitive.DoubleShortPredicate predicate)
select in interface org.eclipse.collections.api.map.primitive.DoubleShortMapselect in interface org.eclipse.collections.api.map.primitive.MutableDoubleShortMappublic DoubleShortHashMap reject(org.eclipse.collections.api.block.predicate.primitive.DoubleShortPredicate predicate)
reject in interface org.eclipse.collections.api.map.primitive.DoubleShortMapreject in interface org.eclipse.collections.api.map.primitive.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 org.eclipse.collections.api.set.primitive.MutableDoubleSet keySet()
keySet in interface org.eclipse.collections.api.map.primitive.DoubleShortMappublic org.eclipse.collections.api.collection.primitive.MutableShortCollection values()
values in interface org.eclipse.collections.api.map.primitive.ShortValuesMapCopyright © 2004–2018. All rights reserved.