Class DoubleShortHashMap
- java.lang.Object
-
- org.eclipse.collections.impl.primitive.AbstractShortIterable
-
- org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableShortValuesMap
-
- org.eclipse.collections.impl.map.mutable.primitive.DoubleShortHashMap
-
- All Implemented Interfaces:
Externalizable,Serializable,DoubleShortMap,MutableDoubleShortMap,MutableShortValuesMap,ShortValuesMap,PrimitiveIterable,ShortIterable,MutableDoubleKeysMap,DoubleKeysMap
public class DoubleShortHashMap extends AbstractMutableShortValuesMap implements MutableDoubleShortMap, Externalizable, MutableDoubleKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.- Since:
- 3.0.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DoubleShortHashMap()DoubleShortHashMap(int initialCapacity)DoubleShortHashMap(DoubleShortMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description shortaddToValue(double key, short toBeAdded)MutableDoubleShortMapasSynchronized()MutableDoubleShortMapasUnmodifiable()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(double key)booleanequals(Object obj)MutableShortDoubleMapflipUniqueValues()voidforEachKey(DoubleProcedure procedure)voidforEachKeyValue(DoubleShortProcedure procedure)shortget(double key)shortgetAndPut(double key, short putValue, short defaultValue)shortgetIfAbsent(double key, short ifAbsent)shortgetIfAbsentPut(double key, short value)shortgetIfAbsentPut(double key, ShortFunction0 function)<P> shortgetIfAbsentPutWith(double key, ShortFunction<? super P> function, P parameter)shortgetIfAbsentPutWithKey(double key, DoubleToShortFunction function)shortgetOrThrow(double key)inthashCode()<V> VinjectInto(V injectedValue, ObjectShortToObjectFunction<? super V,? extends V> function)MutableDoubleSetkeySet()LazyDoubleIterablekeysView()RichIterable<DoubleShortPair>keyValuesView()static DoubleShortHashMapnewWithKeysValues(double key1, short value1)static DoubleShortHashMapnewWithKeysValues(double key1, short value1, double key2, short value2)static DoubleShortHashMapnewWithKeysValues(double key1, short value1, double key2, short value2, double key3, short value3)static DoubleShortHashMapnewWithKeysValues(double key1, short value1, double key2, short value2, double key3, short value3, double key4, short value4)voidput(double key, short value)voidputAll(DoubleShortMap map)voidreadExternal(ObjectInput in)DoubleShortHashMapreject(DoubleShortPredicate predicate)voidremove(double key)voidremoveKey(double key)shortremoveKeyIfAbsent(double key, short value)DoubleShortHashMapselect(DoubleShortPredicate predicate)MutableShortIteratorshortIterator()ImmutableDoubleShortMaptoImmutable()StringtoString()booleantrimToSize()shortupdateValue(double key, short initialValueIfAbsent, ShortToShortFunction function)voidupdateValues(DoubleShortToShortFunction function)MutableShortCollectionvalues()DoubleShortHashMapwithKeysValues(double key1, short value1, double key2, short value2)DoubleShortHashMapwithKeysValues(double key1, short value1, double key2, short value2, double key3, short value3)DoubleShortHashMapwithKeysValues(double key1, short value1, double key2, short value2, double key3, short value3, double key4, short value4)DoubleShortHashMapwithKeyValue(double key1, short value1)DoubleShortHashMapwithoutAllKeys(DoubleIterable keys)DoubleShortHashMapwithoutKey(double key)voidwriteExternal(ObjectOutput out)-
Methods inherited from class org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableShortValuesMap
allSatisfy, anySatisfy, appendString, chunk, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEachValue, isEmpty, max, min, notEmpty, reject, select, size, sum, toArray, toArray
-
Methods inherited from class org.eclipse.collections.impl.primitive.AbstractShortIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
-
Methods inherited from interface org.eclipse.collections.impl.map.primitive.DoubleKeysMap
isEmpty, notEmpty, size
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.DoubleShortMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableDoubleShortMap
putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableShortValuesMap
collect, reject, select
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
Methods inherited from interface org.eclipse.collections.api.ShortIterable
allSatisfy, 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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ShortValuesMap
containsValue, forEachValue, tap
-
-
-
-
Constructor Detail
-
DoubleShortHashMap
public DoubleShortHashMap()
-
DoubleShortHashMap
public DoubleShortHashMap(int initialCapacity)
-
DoubleShortHashMap
public DoubleShortHashMap(DoubleShortMap map)
-
-
Method Detail
-
newWithKeysValues
public static DoubleShortHashMap newWithKeysValues(double key1, short value1)
-
newWithKeysValues
public static DoubleShortHashMap newWithKeysValues(double key1, short value1, double key2, short value2)
-
newWithKeysValues
public static DoubleShortHashMap newWithKeysValues(double key1, short value1, double key2, short value2, double key3, short value3)
-
newWithKeysValues
public static DoubleShortHashMap newWithKeysValues(double key1, short value1, double key2, short value2, double key3, short value3, double key4, short value4)
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceDoubleShortMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceDoubleShortMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceDoubleShortMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractShortIterable
-
shortIterator
public MutableShortIterator shortIterator()
- Specified by:
shortIteratorin interfaceMutableShortValuesMap- Specified by:
shortIteratorin interfaceShortIterable
-
injectInto
public <V> V injectInto(V injectedValue, ObjectShortToObjectFunction<? super V,? extends V> function)- Specified by:
injectIntoin interfaceShortIterable
-
clear
public void clear()
- Specified by:
clearin interfaceMutableDoubleKeysMap- Specified by:
clearin interfaceMutableShortValuesMap
-
put
public void put(double key, short value)- Specified by:
putin interfaceMutableDoubleShortMap
-
putAll
public void putAll(DoubleShortMap map)
- Specified by:
putAllin interfaceMutableDoubleShortMap
-
updateValues
public void updateValues(DoubleShortToShortFunction function)
- Specified by:
updateValuesin interfaceMutableDoubleShortMap
-
removeKey
public void removeKey(double key)
- Specified by:
removeKeyin interfaceMutableDoubleKeysMap- Specified by:
removeKeyin interfaceMutableDoubleShortMap
-
remove
public void remove(double key)
- Specified by:
removein interfaceMutableDoubleShortMap
-
removeKeyIfAbsent
public short removeKeyIfAbsent(double key, short value)- Specified by:
removeKeyIfAbsentin interfaceMutableDoubleShortMap
-
getIfAbsentPut
public short getIfAbsentPut(double key, short value)- Specified by:
getIfAbsentPutin interfaceMutableDoubleShortMap
-
getAndPut
public short getAndPut(double key, short putValue, short defaultValue)- Specified by:
getAndPutin interfaceMutableDoubleShortMap
-
getIfAbsentPut
public short getIfAbsentPut(double key, ShortFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableDoubleShortMap
-
getIfAbsentPutWith
public <P> short getIfAbsentPutWith(double key, ShortFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableDoubleShortMap
-
getIfAbsentPutWithKey
public short getIfAbsentPutWithKey(double key, DoubleToShortFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableDoubleShortMap
-
addToValue
public short addToValue(double key, short toBeAdded)- Specified by:
addToValuein interfaceMutableDoubleShortMap
-
updateValue
public short updateValue(double key, short initialValueIfAbsent, ShortToShortFunction function)- Specified by:
updateValuein interfaceMutableDoubleShortMap
-
withKeyValue
public DoubleShortHashMap withKeyValue(double key1, short value1)
- Specified by:
withKeyValuein interfaceMutableDoubleShortMap
-
withKeysValues
public DoubleShortHashMap withKeysValues(double key1, short value1, double key2, short value2)
-
withKeysValues
public DoubleShortHashMap withKeysValues(double key1, short value1, double key2, short value2, double key3, short value3)
-
withKeysValues
public DoubleShortHashMap withKeysValues(double key1, short value1, double key2, short value2, double key3, short value3, double key4, short value4)
-
withoutKey
public DoubleShortHashMap withoutKey(double key)
- Specified by:
withoutKeyin interfaceMutableDoubleShortMap
-
withoutAllKeys
public DoubleShortHashMap withoutAllKeys(DoubleIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableDoubleShortMap
-
asUnmodifiable
public MutableDoubleShortMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableDoubleShortMap
-
asSynchronized
public MutableDoubleShortMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableDoubleShortMap
-
toImmutable
public ImmutableDoubleShortMap toImmutable()
- Specified by:
toImmutablein interfaceDoubleShortMap
-
get
public short get(double key)
- Specified by:
getin interfaceDoubleShortMap
-
getIfAbsent
public short getIfAbsent(double key, short ifAbsent)- Specified by:
getIfAbsentin interfaceDoubleShortMap
-
getOrThrow
public short getOrThrow(double key)
- Specified by:
getOrThrowin interfaceDoubleShortMap
-
containsKey
public boolean containsKey(double key)
- Specified by:
containsKeyin interfaceDoubleKeysMap- Specified by:
containsKeyin interfaceDoubleShortMap
-
forEachKey
public void forEachKey(DoubleProcedure procedure)
- Specified by:
forEachKeyin interfaceDoubleKeysMap- Specified by:
forEachKeyin interfaceDoubleShortMap
-
forEachKeyValue
public void forEachKeyValue(DoubleShortProcedure procedure)
- Specified by:
forEachKeyValuein interfaceDoubleShortMap
-
keysView
public LazyDoubleIterable keysView()
- Specified by:
keysViewin interfaceDoubleShortMap
-
keyValuesView
public RichIterable<DoubleShortPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceDoubleShortMap
-
flipUniqueValues
public MutableShortDoubleMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceDoubleShortMap- Specified by:
flipUniqueValuesin interfaceMutableDoubleShortMap
-
select
public DoubleShortHashMap select(DoubleShortPredicate predicate)
- Specified by:
selectin interfaceDoubleShortMap- Specified by:
selectin interfaceMutableDoubleShortMap
-
reject
public DoubleShortHashMap reject(DoubleShortPredicate predicate)
- Specified by:
rejectin interfaceDoubleShortMap- Specified by:
rejectin interfaceMutableDoubleShortMap
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
trimToSize
public boolean trimToSize()
- Since:
- 12.0
-
compact
@Deprecated public void compact()
Deprecated.since 12.0 - UsetrimToSize()insteadRehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels.
-
keySet
public MutableDoubleSet keySet()
- Specified by:
keySetin interfaceDoubleShortMap
-
values
public MutableShortCollection values()
- Specified by:
valuesin interfaceShortValuesMap
-
-