Class ByteShortHashMap
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractShortIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableShortValuesMap
org.eclipse.collections.impl.map.mutable.primitive.ByteShortHashMap
- All Implemented Interfaces:
Externalizable,Serializable,ByteShortMap,MutableByteShortMap,MutableShortValuesMap,ShortValuesMap,PrimitiveIterable,ShortIterable,MutableByteKeysMap,ByteKeysMap
public class ByteShortHashMap
extends AbstractMutableShortValuesMap
implements MutableByteShortMap, Externalizable, MutableByteKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionshortaddToValue(byte key, short toBeAdded) booleanallSatisfyKeyValue(ByteShortPredicate predicate) voidclear()voidcompact()Deprecated.booleancontainsKey(byte key) booleanvoidforEachKey(ByteProcedure procedure) voidforEachKeyValue(ByteShortProcedure procedure) shortget(byte key) shortgetAndPut(byte key, short putValue, short defaultValue) shortgetIfAbsent(byte key, short ifAbsent) shortgetIfAbsentPut(byte key, short value) shortgetIfAbsentPut(byte key, ShortFunction0 function) <P> shortgetIfAbsentPutWith(byte key, ShortFunction<? super P> function, P parameter) shortgetIfAbsentPutWithKey(byte key, ByteToShortFunction function) shortgetOrThrow(byte key) inthashCode()<V> VinjectInto(V injectedValue, ObjectShortToObjectFunction<? super V, ? extends V> function) keySet()keysView()static ByteShortHashMapnewWithKeysValues(byte key1, short value1) static ByteShortHashMapnewWithKeysValues(byte key1, short value1, byte key2, short value2) static ByteShortHashMapnewWithKeysValues(byte key1, short value1, byte key2, short value2, byte key3, short value3) static ByteShortHashMapnewWithKeysValues(byte key1, short value1, byte key2, short value2, byte key3, short value3, byte key4, short value4) voidput(byte key, short value) voidputAll(ByteShortMap map) voidreject(ByteShortPredicate predicate) voidremove(byte key) voidremoveKey(byte key) shortremoveKeyIfAbsent(byte key, short value) select(ByteShortPredicate predicate) toString()booleanshortupdateValue(byte key, short initialValueIfAbsent, ShortToShortFunction function) voidupdateValues(ByteShortToShortFunction function) values()withKeysValues(byte key1, short value1, byte key2, short value2) withKeysValues(byte key1, short value1, byte key2, short value2, byte key3, short value3) withKeysValues(byte key1, short value1, byte key2, short value2, byte key3, short value3, byte key4, short value4) withKeyValue(byte key1, short value1) withoutAllKeys(ByteIterable keys) withoutKey(byte key) voidMethods 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, toArrayMethods inherited from class org.eclipse.collections.impl.primitive.AbstractShortIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListMethods inherited from interface org.eclipse.collections.impl.map.primitive.ByteKeysMap
isEmpty, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.map.primitive.ByteShortMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableByteShortMap
putPair, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableShortValuesMap
collect, reject, selectMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeMethods 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, toSortedListByMethods inherited from interface org.eclipse.collections.api.map.primitive.ShortValuesMap
containsValue, forEachValue, tap
-
Constructor Details
-
ByteShortHashMap
public ByteShortHashMap() -
ByteShortHashMap
public ByteShortHashMap(int initialCapacity) -
ByteShortHashMap
-
-
Method Details
-
newWithKeysValues
-
newWithKeysValues
-
newWithKeysValues
public static ByteShortHashMap newWithKeysValues(byte key1, short value1, byte key2, short value2, byte key3, short value3) -
newWithKeysValues
public static ByteShortHashMap newWithKeysValues(byte key1, short value1, byte key2, short value2, byte key3, short value3, byte key4, short value4) -
equals
- Specified by:
equalsin interfaceByteShortMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceByteShortMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceByteShortMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractShortIterable
-
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 interfaceMutableByteKeysMap- Specified by:
clearin interfaceMutableShortValuesMap
-
put
public void put(byte key, short value) - Specified by:
putin interfaceMutableByteShortMap
-
putAll
- Specified by:
putAllin interfaceMutableByteShortMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableByteShortMap
-
removeKey
public void removeKey(byte key) - Specified by:
removeKeyin interfaceMutableByteKeysMap- Specified by:
removeKeyin interfaceMutableByteShortMap
-
remove
public void remove(byte key) - Specified by:
removein interfaceMutableByteShortMap
-
removeKeyIfAbsent
public short removeKeyIfAbsent(byte key, short value) - Specified by:
removeKeyIfAbsentin interfaceMutableByteShortMap
-
getIfAbsentPut
public short getIfAbsentPut(byte key, short value) - Specified by:
getIfAbsentPutin interfaceMutableByteShortMap
-
getAndPut
public short getAndPut(byte key, short putValue, short defaultValue) - Specified by:
getAndPutin interfaceMutableByteShortMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableByteShortMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableByteShortMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableByteShortMap
-
addToValue
public short addToValue(byte key, short toBeAdded) - Specified by:
addToValuein interfaceMutableByteShortMap
-
updateValue
- Specified by:
updateValuein interfaceMutableByteShortMap
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableByteShortMap
-
withKeysValues
-
withKeysValues
public ByteShortHashMap withKeysValues(byte key1, short value1, byte key2, short value2, byte key3, short value3) -
withKeysValues
public ByteShortHashMap withKeysValues(byte key1, short value1, byte key2, short value2, byte key3, short value3, byte key4, short value4) -
withoutKey
- Specified by:
withoutKeyin interfaceMutableByteShortMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableByteShortMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableByteShortMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableByteShortMap
-
toImmutable
- Specified by:
toImmutablein interfaceByteShortMap
-
get
public short get(byte key) - Specified by:
getin interfaceByteShortMap
-
getIfAbsent
public short getIfAbsent(byte key, short ifAbsent) - Specified by:
getIfAbsentin interfaceByteShortMap
-
getOrThrow
public short getOrThrow(byte key) - Specified by:
getOrThrowin interfaceByteShortMap
-
containsKey
public boolean containsKey(byte key) - Specified by:
containsKeyin interfaceByteKeysMap- Specified by:
containsKeyin interfaceByteShortMap
-
forEachKey
- Specified by:
forEachKeyin interfaceByteKeysMap- Specified by:
forEachKeyin interfaceByteShortMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceByteShortMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceByteShortMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceByteShortMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceByteShortMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceByteShortMap- Specified by:
flipUniqueValuesin interfaceMutableByteShortMap
-
select
- Specified by:
selectin interfaceByteShortMap- Specified by:
selectin interfaceMutableByteShortMap
-
reject
- Specified by:
rejectin interfaceByteShortMap- Specified by:
rejectin interfaceMutableByteShortMap
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
trimToSize
public boolean trimToSize()- Since:
- 12.0
-
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
- Specified by:
keySetin interfaceByteShortMap
-
values
- Specified by:
valuesin interfaceShortValuesMap
-
trimToSize()instead