Class ShortShortHashMap
- java.lang.Object
-
- org.eclipse.collections.impl.primitive.AbstractShortIterable
-
- org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableShortValuesMap
-
- org.eclipse.collections.impl.map.mutable.primitive.ShortShortHashMap
-
- All Implemented Interfaces:
Externalizable,Serializable,MutableShortShortMap,MutableShortValuesMap,ShortShortMap,ShortValuesMap,PrimitiveIterable,ShortIterable,MutableShortKeysMap,ShortKeysMap
public class ShortShortHashMap extends AbstractMutableShortValuesMap implements MutableShortShortMap, Externalizable, MutableShortKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.- Since:
- 3.0.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ShortShortHashMap()ShortShortHashMap(int initialCapacity)ShortShortHashMap(ShortShortMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description shortaddToValue(short key, short toBeAdded)MutableShortShortMapasSynchronized()MutableShortShortMapasUnmodifiable()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(short key)booleanequals(Object obj)MutableShortShortMapflipUniqueValues()voidforEachKey(ShortProcedure procedure)voidforEachKeyValue(ShortShortProcedure procedure)shortget(short key)shortgetAndPut(short key, short putValue, short defaultValue)shortgetIfAbsent(short key, short ifAbsent)shortgetIfAbsentPut(short key, short value)shortgetIfAbsentPut(short key, ShortFunction0 function)<P> shortgetIfAbsentPutWith(short key, ShortFunction<? super P> function, P parameter)shortgetIfAbsentPutWithKey(short key, ShortToShortFunction function)shortgetOrThrow(short key)inthashCode()<V> VinjectInto(V injectedValue, ObjectShortToObjectFunction<? super V,? extends V> function)MutableShortSetkeySet()LazyShortIterablekeysView()RichIterable<ShortShortPair>keyValuesView()static ShortShortHashMapnewWithKeysValues(short key1, short value1)static ShortShortHashMapnewWithKeysValues(short key1, short value1, short key2, short value2)static ShortShortHashMapnewWithKeysValues(short key1, short value1, short key2, short value2, short key3, short value3)static ShortShortHashMapnewWithKeysValues(short key1, short value1, short key2, short value2, short key3, short value3, short key4, short value4)voidput(short key, short value)voidputAll(ShortShortMap map)voidreadExternal(ObjectInput in)ShortShortHashMapreject(ShortShortPredicate predicate)voidremove(short key)voidremoveKey(short key)shortremoveKeyIfAbsent(short key, short value)ShortShortHashMapselect(ShortShortPredicate predicate)MutableShortIteratorshortIterator()ImmutableShortShortMaptoImmutable()StringtoString()booleantrimToSize()shortupdateValue(short key, short initialValueIfAbsent, ShortToShortFunction function)voidupdateValues(ShortShortToShortFunction function)MutableShortCollectionvalues()ShortShortHashMapwithKeysValues(short key1, short value1, short key2, short value2)ShortShortHashMapwithKeysValues(short key1, short value1, short key2, short value2, short key3, short value3)ShortShortHashMapwithKeysValues(short key1, short value1, short key2, short value2, short key3, short value3, short key4, short value4)ShortShortHashMapwithKeyValue(short key1, short value1)ShortShortHashMapwithoutAllKeys(ShortIterable keys)ShortShortHashMapwithoutKey(short 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.api.map.primitive.MutableShortShortMap
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.impl.map.primitive.ShortKeysMap
isEmpty, notEmpty, size
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ShortShortMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ShortValuesMap
containsValue, forEachValue, tap
-
-
-
-
Constructor Detail
-
ShortShortHashMap
public ShortShortHashMap()
-
ShortShortHashMap
public ShortShortHashMap(int initialCapacity)
-
ShortShortHashMap
public ShortShortHashMap(ShortShortMap map)
-
-
Method Detail
-
newWithKeysValues
public static ShortShortHashMap newWithKeysValues(short key1, short value1)
-
newWithKeysValues
public static ShortShortHashMap newWithKeysValues(short key1, short value1, short key2, short value2)
-
newWithKeysValues
public static ShortShortHashMap newWithKeysValues(short key1, short value1, short key2, short value2, short key3, short value3)
-
newWithKeysValues
public static ShortShortHashMap newWithKeysValues(short key1, short value1, short key2, short value2, short key3, short value3, short key4, short value4)
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceShortShortMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceShortShortMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfacePrimitiveIterable- Specified by:
toStringin interfaceShortShortMap- 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 interfaceMutableShortKeysMap- Specified by:
clearin interfaceMutableShortValuesMap
-
put
public void put(short key, short value)- Specified by:
putin interfaceMutableShortShortMap
-
putAll
public void putAll(ShortShortMap map)
- Specified by:
putAllin interfaceMutableShortShortMap
-
updateValues
public void updateValues(ShortShortToShortFunction function)
- Specified by:
updateValuesin interfaceMutableShortShortMap
-
removeKey
public void removeKey(short key)
- Specified by:
removeKeyin interfaceMutableShortKeysMap- Specified by:
removeKeyin interfaceMutableShortShortMap
-
remove
public void remove(short key)
- Specified by:
removein interfaceMutableShortShortMap
-
removeKeyIfAbsent
public short removeKeyIfAbsent(short key, short value)- Specified by:
removeKeyIfAbsentin interfaceMutableShortShortMap
-
getIfAbsentPut
public short getIfAbsentPut(short key, short value)- Specified by:
getIfAbsentPutin interfaceMutableShortShortMap
-
getAndPut
public short getAndPut(short key, short putValue, short defaultValue)- Specified by:
getAndPutin interfaceMutableShortShortMap
-
getIfAbsentPut
public short getIfAbsentPut(short key, ShortFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableShortShortMap
-
getIfAbsentPutWith
public <P> short getIfAbsentPutWith(short key, ShortFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableShortShortMap
-
getIfAbsentPutWithKey
public short getIfAbsentPutWithKey(short key, ShortToShortFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableShortShortMap
-
addToValue
public short addToValue(short key, short toBeAdded)- Specified by:
addToValuein interfaceMutableShortShortMap
-
updateValue
public short updateValue(short key, short initialValueIfAbsent, ShortToShortFunction function)- Specified by:
updateValuein interfaceMutableShortShortMap
-
withKeyValue
public ShortShortHashMap withKeyValue(short key1, short value1)
- Specified by:
withKeyValuein interfaceMutableShortShortMap
-
withKeysValues
public ShortShortHashMap withKeysValues(short key1, short value1, short key2, short value2)
-
withKeysValues
public ShortShortHashMap withKeysValues(short key1, short value1, short key2, short value2, short key3, short value3)
-
withKeysValues
public ShortShortHashMap withKeysValues(short key1, short value1, short key2, short value2, short key3, short value3, short key4, short value4)
-
withoutKey
public ShortShortHashMap withoutKey(short key)
- Specified by:
withoutKeyin interfaceMutableShortShortMap
-
withoutAllKeys
public ShortShortHashMap withoutAllKeys(ShortIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableShortShortMap
-
asUnmodifiable
public MutableShortShortMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableShortShortMap
-
asSynchronized
public MutableShortShortMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableShortShortMap
-
toImmutable
public ImmutableShortShortMap toImmutable()
- Specified by:
toImmutablein interfaceShortShortMap
-
get
public short get(short key)
- Specified by:
getin interfaceShortShortMap
-
getIfAbsent
public short getIfAbsent(short key, short ifAbsent)- Specified by:
getIfAbsentin interfaceShortShortMap
-
getOrThrow
public short getOrThrow(short key)
- Specified by:
getOrThrowin interfaceShortShortMap
-
containsKey
public boolean containsKey(short key)
- Specified by:
containsKeyin interfaceShortKeysMap- Specified by:
containsKeyin interfaceShortShortMap
-
forEachKey
public void forEachKey(ShortProcedure procedure)
- Specified by:
forEachKeyin interfaceShortKeysMap- Specified by:
forEachKeyin interfaceShortShortMap
-
forEachKeyValue
public void forEachKeyValue(ShortShortProcedure procedure)
- Specified by:
forEachKeyValuein interfaceShortShortMap
-
keysView
public LazyShortIterable keysView()
- Specified by:
keysViewin interfaceShortShortMap
-
keyValuesView
public RichIterable<ShortShortPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceShortShortMap
-
flipUniqueValues
public MutableShortShortMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceMutableShortShortMap- Specified by:
flipUniqueValuesin interfaceShortShortMap
-
select
public ShortShortHashMap select(ShortShortPredicate predicate)
- Specified by:
selectin interfaceMutableShortShortMap- Specified by:
selectin interfaceShortShortMap
-
reject
public ShortShortHashMap reject(ShortShortPredicate predicate)
- Specified by:
rejectin interfaceMutableShortShortMap- Specified by:
rejectin interfaceShortShortMap
-
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 MutableShortSet keySet()
- Specified by:
keySetin interfaceShortShortMap
-
values
public MutableShortCollection values()
- Specified by:
valuesin interfaceShortValuesMap
-
-