Class ShortByteHashMap
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractByteIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableByteValuesMap
org.eclipse.collections.impl.map.mutable.primitive.ShortByteHashMap
- All Implemented Interfaces:
Externalizable,Serializable,ByteIterable,ByteValuesMap,MutableByteValuesMap,MutableShortByteMap,ShortByteMap,PrimitiveIterable,MutableShortKeysMap,ShortKeysMap
public class ShortByteHashMap
extends AbstractMutableByteValuesMap
implements MutableShortByteMap, Externalizable, MutableShortKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyteaddToValue(short key, byte toBeAdded) booleanallSatisfyKeyValue(ShortBytePredicate predicate) voidclear()voidcompact()Deprecated.booleancontainsKey(short key) booleanvoidforEachKey(ShortProcedure procedure) voidforEachKeyValue(ShortByteProcedure procedure) byteget(short key) bytegetAndPut(short key, byte putValue, byte defaultValue) bytegetIfAbsent(short key, byte ifAbsent) bytegetIfAbsentPut(short key, byte value) bytegetIfAbsentPut(short key, ByteFunction0 function) <P> bytegetIfAbsentPutWith(short key, ByteFunction<? super P> function, P parameter) bytegetIfAbsentPutWithKey(short key, ShortToByteFunction function) bytegetOrThrow(short key) inthashCode()<V> VinjectInto(V injectedValue, ObjectByteToObjectFunction<? super V, ? extends V> function) keySet()keysView()static ShortByteHashMapnewWithKeysValues(short key1, byte value1) static ShortByteHashMapnewWithKeysValues(short key1, byte value1, short key2, byte value2) static ShortByteHashMapnewWithKeysValues(short key1, byte value1, short key2, byte value2, short key3, byte value3) static ShortByteHashMapnewWithKeysValues(short key1, byte value1, short key2, byte value2, short key3, byte value3, short key4, byte value4) voidput(short key, byte value) voidputAll(ShortByteMap map) voidreject(ShortBytePredicate predicate) voidremove(short key) voidremoveKey(short key) byteremoveKeyIfAbsent(short key, byte value) select(ShortBytePredicate predicate) toString()booleanbyteupdateValue(short key, byte initialValueIfAbsent, ByteToByteFunction function) voidupdateValues(ShortByteToByteFunction function) values()withKeysValues(short key1, byte value1, short key2, byte value2) withKeysValues(short key1, byte value1, short key2, byte value2, short key3, byte value3) withKeysValues(short key1, byte value1, short key2, byte value2, short key3, byte value3, short key4, byte value4) withKeyValue(short key1, byte value1) withoutAllKeys(ShortIterable keys) withoutKey(short key) voidMethods inherited from class org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableByteValuesMap
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.AbstractByteIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListMethods inherited from interface org.eclipse.collections.api.ByteIterable
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.ByteValuesMap
containsValue, forEachValue, tapMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableByteValuesMap
collect, reject, selectMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableShortByteMap
putPair, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.map.primitive.ShortByteMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.impl.map.primitive.ShortKeysMap
isEmpty, notEmpty, size
-
Constructor Details
-
ShortByteHashMap
public ShortByteHashMap() -
ShortByteHashMap
public ShortByteHashMap(int initialCapacity) -
ShortByteHashMap
-
-
Method Details
-
newWithKeysValues
-
newWithKeysValues
-
newWithKeysValues
public static ShortByteHashMap newWithKeysValues(short key1, byte value1, short key2, byte value2, short key3, byte value3) -
newWithKeysValues
public static ShortByteHashMap newWithKeysValues(short key1, byte value1, short key2, byte value2, short key3, byte value3, short key4, byte value4) -
equals
- Specified by:
equalsin interfaceShortByteMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceShortByteMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfacePrimitiveIterable- Specified by:
toStringin interfaceShortByteMap- Overrides:
toStringin classAbstractByteIterable
-
byteIterator
- Specified by:
byteIteratorin interfaceByteIterable- Specified by:
byteIteratorin interfaceMutableByteValuesMap
-
injectInto
public <V> V injectInto(V injectedValue, ObjectByteToObjectFunction<? super V, ? extends V> function) - Specified by:
injectIntoin interfaceByteIterable
-
clear
public void clear()- Specified by:
clearin interfaceMutableByteValuesMap- Specified by:
clearin interfaceMutableShortKeysMap
-
put
public void put(short key, byte value) - Specified by:
putin interfaceMutableShortByteMap
-
putAll
- Specified by:
putAllin interfaceMutableShortByteMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableShortByteMap
-
removeKey
public void removeKey(short key) - Specified by:
removeKeyin interfaceMutableShortByteMap- Specified by:
removeKeyin interfaceMutableShortKeysMap
-
remove
public void remove(short key) - Specified by:
removein interfaceMutableShortByteMap
-
removeKeyIfAbsent
public byte removeKeyIfAbsent(short key, byte value) - Specified by:
removeKeyIfAbsentin interfaceMutableShortByteMap
-
getIfAbsentPut
public byte getIfAbsentPut(short key, byte value) - Specified by:
getIfAbsentPutin interfaceMutableShortByteMap
-
getAndPut
public byte getAndPut(short key, byte putValue, byte defaultValue) - Specified by:
getAndPutin interfaceMutableShortByteMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableShortByteMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableShortByteMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableShortByteMap
-
addToValue
public byte addToValue(short key, byte toBeAdded) - Specified by:
addToValuein interfaceMutableShortByteMap
-
updateValue
- Specified by:
updateValuein interfaceMutableShortByteMap
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableShortByteMap
-
withKeysValues
-
withKeysValues
public ShortByteHashMap withKeysValues(short key1, byte value1, short key2, byte value2, short key3, byte value3) -
withKeysValues
public ShortByteHashMap withKeysValues(short key1, byte value1, short key2, byte value2, short key3, byte value3, short key4, byte value4) -
withoutKey
- Specified by:
withoutKeyin interfaceMutableShortByteMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableShortByteMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableShortByteMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableShortByteMap
-
toImmutable
- Specified by:
toImmutablein interfaceShortByteMap
-
get
public byte get(short key) - Specified by:
getin interfaceShortByteMap
-
getIfAbsent
public byte getIfAbsent(short key, byte ifAbsent) - Specified by:
getIfAbsentin interfaceShortByteMap
-
getOrThrow
public byte getOrThrow(short key) - Specified by:
getOrThrowin interfaceShortByteMap
-
containsKey
public boolean containsKey(short key) - Specified by:
containsKeyin interfaceShortByteMap- Specified by:
containsKeyin interfaceShortKeysMap
-
forEachKey
- Specified by:
forEachKeyin interfaceShortByteMap- Specified by:
forEachKeyin interfaceShortKeysMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceShortByteMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceShortByteMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceShortByteMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceShortByteMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceMutableShortByteMap- Specified by:
flipUniqueValuesin interfaceShortByteMap
-
select
- Specified by:
selectin interfaceMutableShortByteMap- Specified by:
selectin interfaceShortByteMap
-
reject
- Specified by:
rejectin interfaceMutableShortByteMap- Specified by:
rejectin interfaceShortByteMap
-
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 interfaceShortByteMap
-
values
- Specified by:
valuesin interfaceByteValuesMap
-
trimToSize()instead