public class DoubleShortHashMap extends AbstractMutableShortValuesMap implements com.gs.collections.api.map.primitive.MutableDoubleShortMap, java.io.Externalizable, MutableDoubleKeysMap
AbstractMutableShortValuesMap.AbstractShortValuesCollection, AbstractMutableShortValuesMap.SentinelValues| Constructor and Description |
|---|
DoubleShortHashMap() |
DoubleShortHashMap(com.gs.collections.api.map.primitive.DoubleShortMap map) |
DoubleShortHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
short |
addToValue(double key,
short toBeAdded) |
com.gs.collections.api.map.primitive.MutableDoubleShortMap |
asSynchronized() |
com.gs.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(java.lang.Object obj)
Follows the same general contract as
Map.equals(Object). |
void |
forEachKey(com.gs.collections.api.block.procedure.primitive.DoubleProcedure procedure) |
void |
forEachKeyValue(com.gs.collections.api.block.procedure.primitive.DoubleShortProcedure procedure) |
short |
get(double key) |
protected short |
getEmptyValue() |
short |
getIfAbsent(double key,
short ifAbsent) |
short |
getIfAbsentPut(double key,
short value) |
short |
getIfAbsentPut(double key,
com.gs.collections.api.block.function.primitive.ShortFunction0 function) |
<P> short |
getIfAbsentPutWith(double key,
com.gs.collections.api.block.function.primitive.ShortFunction<? super P> function,
P parameter) |
short |
getIfAbsentPutWithKey(double key,
com.gs.collections.api.block.function.primitive.DoubleToShortFunction function) |
protected int |
getOccupiedWithData() |
short |
getOrThrow(double key) |
protected AbstractMutableShortValuesMap.SentinelValues |
getSentinelValues() |
protected int |
getTableSize() |
protected short |
getValueAtIndex(int index) |
int |
hashCode()
Follows the same general contract as
Map.hashCode(). |
<V> V |
injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectShortToObjectFunction<? super V,? extends V> function) |
protected boolean |
isNonSentinelAtIndex(int index) |
com.gs.collections.api.set.primitive.MutableDoubleSet |
keySet() |
com.gs.collections.api.LazyDoubleIterable |
keysView() |
com.gs.collections.api.RichIterable<com.gs.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(com.gs.collections.api.map.primitive.DoubleShortMap map) |
void |
readExternal(java.io.ObjectInput in) |
DoubleShortHashMap |
reject(com.gs.collections.api.block.predicate.primitive.DoubleShortPredicate predicate) |
void |
remove(double key) |
void |
removeKey(double key) |
short |
removeKeyIfAbsent(double key,
short value) |
DoubleShortHashMap |
select(com.gs.collections.api.block.predicate.primitive.DoubleShortPredicate predicate) |
protected void |
setSentinelValuesNull() |
com.gs.collections.api.iterator.MutableShortIterator |
shortIterator() |
com.gs.collections.api.map.primitive.ImmutableDoubleShortMap |
toImmutable() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
short |
updateValue(double key,
short initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.ShortToShortFunction function) |
com.gs.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(com.gs.collections.api.DoubleIterable keys) |
DoubleShortHashMap |
withoutKey(double key) |
void |
writeExternal(java.io.ObjectOutput out) |
addEmptyKeyValue, addRemovedKeyValue, allSatisfy, anySatisfy, appendString, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, removeEmptyKey, removeRemovedKey, select, size, sum, toArrayappendString, appendString, asLazy, average, containsAll, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListclone, finalize, getClass, notify, notifyAll, wait, wait, waitcollect, 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(com.gs.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)
protected int getOccupiedWithData()
getOccupiedWithData in class AbstractMutableShortValuesMapprotected AbstractMutableShortValuesMap.SentinelValues getSentinelValues()
getSentinelValues in class AbstractMutableShortValuesMapprotected void setSentinelValuesNull()
setSentinelValuesNull in class AbstractMutableShortValuesMapprotected short getEmptyValue()
getEmptyValue in class AbstractMutableShortValuesMapprotected int getTableSize()
getTableSize in class AbstractMutableShortValuesMapprotected short getValueAtIndex(int index)
getValueAtIndex in class AbstractMutableShortValuesMappublic boolean equals(java.lang.Object obj)
com.gs.collections.api.map.primitive.DoubleShortMapMap.equals(Object).equals in interface com.gs.collections.api.map.primitive.DoubleShortMapequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.map.primitive.DoubleShortMapMap.hashCode().hashCode in interface com.gs.collections.api.map.primitive.DoubleShortMaphashCode in class java.lang.Objectpublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.map.primitive.DoubleShortMaptoString in interface com.gs.collections.api.PrimitiveIterabletoString in class AbstractShortIterablepublic com.gs.collections.api.iterator.MutableShortIterator shortIterator()
shortIterator in interface com.gs.collections.api.map.primitive.MutableShortValuesMapshortIterator in interface com.gs.collections.api.ShortIterablepublic <V> V injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectShortToObjectFunction<? super V,? extends V> function)
injectInto in interface com.gs.collections.api.ShortIterablepublic void clear()
clear in interface com.gs.collections.api.map.primitive.MutableShortValuesMapclear in interface MutableDoubleKeysMappublic void put(double key,
short value)
put in interface com.gs.collections.api.map.primitive.MutableDoubleShortMappublic void putAll(com.gs.collections.api.map.primitive.DoubleShortMap map)
putAll in interface com.gs.collections.api.map.primitive.MutableDoubleShortMappublic void removeKey(double key)
removeKey in interface com.gs.collections.api.map.primitive.MutableDoubleShortMapremoveKey in interface MutableDoubleKeysMappublic void remove(double key)
remove in interface com.gs.collections.api.map.primitive.MutableDoubleShortMappublic short removeKeyIfAbsent(double key,
short value)
removeKeyIfAbsent in interface com.gs.collections.api.map.primitive.MutableDoubleShortMappublic short getIfAbsentPut(double key,
short value)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableDoubleShortMappublic short getIfAbsentPut(double key,
com.gs.collections.api.block.function.primitive.ShortFunction0 function)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableDoubleShortMappublic <P> short getIfAbsentPutWith(double key,
com.gs.collections.api.block.function.primitive.ShortFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface com.gs.collections.api.map.primitive.MutableDoubleShortMappublic short getIfAbsentPutWithKey(double key,
com.gs.collections.api.block.function.primitive.DoubleToShortFunction function)
getIfAbsentPutWithKey in interface com.gs.collections.api.map.primitive.MutableDoubleShortMappublic short addToValue(double key,
short toBeAdded)
addToValue in interface com.gs.collections.api.map.primitive.MutableDoubleShortMappublic short updateValue(double key,
short initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.ShortToShortFunction function)
updateValue in interface com.gs.collections.api.map.primitive.MutableDoubleShortMappublic DoubleShortHashMap withKeyValue(double key1, short value1)
withKeyValue in interface com.gs.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 com.gs.collections.api.map.primitive.MutableDoubleShortMappublic DoubleShortHashMap withoutAllKeys(com.gs.collections.api.DoubleIterable keys)
withoutAllKeys in interface com.gs.collections.api.map.primitive.MutableDoubleShortMappublic com.gs.collections.api.map.primitive.MutableDoubleShortMap asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.map.primitive.MutableDoubleShortMappublic com.gs.collections.api.map.primitive.MutableDoubleShortMap asSynchronized()
asSynchronized in interface com.gs.collections.api.map.primitive.MutableDoubleShortMappublic com.gs.collections.api.map.primitive.ImmutableDoubleShortMap toImmutable()
toImmutable in interface com.gs.collections.api.map.primitive.DoubleShortMappublic short get(double key)
get in interface com.gs.collections.api.map.primitive.DoubleShortMappublic short getIfAbsent(double key,
short ifAbsent)
getIfAbsent in interface com.gs.collections.api.map.primitive.DoubleShortMappublic short getOrThrow(double key)
getOrThrow in interface com.gs.collections.api.map.primitive.DoubleShortMappublic boolean containsKey(double key)
containsKey in interface com.gs.collections.api.map.primitive.DoubleShortMapcontainsKey in interface DoubleKeysMappublic void forEachKey(com.gs.collections.api.block.procedure.primitive.DoubleProcedure procedure)
forEachKey in interface com.gs.collections.api.map.primitive.DoubleShortMapforEachKey in interface DoubleKeysMappublic void forEachKeyValue(com.gs.collections.api.block.procedure.primitive.DoubleShortProcedure procedure)
forEachKeyValue in interface com.gs.collections.api.map.primitive.DoubleShortMappublic com.gs.collections.api.LazyDoubleIterable keysView()
keysView in interface com.gs.collections.api.map.primitive.DoubleShortMappublic com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.DoubleShortPair> keyValuesView()
keyValuesView in interface com.gs.collections.api.map.primitive.DoubleShortMappublic DoubleShortHashMap select(com.gs.collections.api.block.predicate.primitive.DoubleShortPredicate predicate)
select in interface com.gs.collections.api.map.primitive.DoubleShortMapselect in interface com.gs.collections.api.map.primitive.MutableDoubleShortMappublic DoubleShortHashMap reject(com.gs.collections.api.block.predicate.primitive.DoubleShortPredicate predicate)
reject in interface com.gs.collections.api.map.primitive.DoubleShortMapreject in interface com.gs.collections.api.map.primitive.MutableDoubleShortMappublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic void compact()
protected boolean isNonSentinelAtIndex(int index)
isNonSentinelAtIndex in class AbstractMutableShortValuesMappublic com.gs.collections.api.set.primitive.MutableDoubleSet keySet()
keySet in interface com.gs.collections.api.map.primitive.DoubleShortMappublic com.gs.collections.api.collection.primitive.MutableShortCollection values()
values in interface com.gs.collections.api.map.primitive.ShortValuesMap