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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ByteShortHashMap()ByteShortHashMap(int initialCapacity)ByteShortHashMap(ByteShortMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description shortaddToValue(byte key, short toBeAdded)MutableByteShortMapasSynchronized()MutableByteShortMapasUnmodifiable()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(byte key)booleanequals(Object obj)MutableShortByteMapflipUniqueValues()voidforEachKey(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)MutableByteSetkeySet()LazyByteIterablekeysView()RichIterable<ByteShortPair>keyValuesView()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)voidreadExternal(ObjectInput in)ByteShortHashMapreject(ByteShortPredicate predicate)voidremove(byte key)voidremoveKey(byte key)shortremoveKeyIfAbsent(byte key, short value)ByteShortHashMapselect(ByteShortPredicate predicate)MutableShortIteratorshortIterator()ImmutableByteShortMaptoImmutable()StringtoString()booleantrimToSize()shortupdateValue(byte key, short initialValueIfAbsent, ShortToShortFunction function)voidupdateValues(ByteShortToShortFunction function)MutableShortCollectionvalues()ByteShortHashMapwithKeysValues(byte key1, short value1, byte key2, short value2)ByteShortHashMapwithKeysValues(byte key1, short value1, byte key2, short value2, byte key3, short value3)ByteShortHashMapwithKeysValues(byte key1, short value1, byte key2, short value2, byte key3, short value3, byte key4, short value4)ByteShortHashMapwithKeyValue(byte key1, short value1)ByteShortHashMapwithoutAllKeys(ByteIterable keys)ByteShortHashMapwithoutKey(byte 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.ByteKeysMap
isEmpty, notEmpty, size
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ByteShortMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableByteShortMap
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
-
ByteShortHashMap
public ByteShortHashMap()
-
ByteShortHashMap
public ByteShortHashMap(int initialCapacity)
-
ByteShortHashMap
public ByteShortHashMap(ByteShortMap map)
-
-
Method Detail
-
newWithKeysValues
public static ByteShortHashMap newWithKeysValues(byte key1, short value1)
-
newWithKeysValues
public static ByteShortHashMap newWithKeysValues(byte key1, short value1, byte key2, short value2)
-
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
public boolean equals(Object obj)
- Specified by:
equalsin interfaceByteShortMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceByteShortMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceByteShortMap- 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 interfaceMutableByteKeysMap- Specified by:
clearin interfaceMutableShortValuesMap
-
put
public void put(byte key, short value)- Specified by:
putin interfaceMutableByteShortMap
-
putAll
public void putAll(ByteShortMap map)
- Specified by:
putAllin interfaceMutableByteShortMap
-
updateValues
public void updateValues(ByteShortToShortFunction function)
- 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
public short getIfAbsentPut(byte key, ShortFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableByteShortMap
-
getIfAbsentPutWith
public <P> short getIfAbsentPutWith(byte key, ShortFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableByteShortMap
-
getIfAbsentPutWithKey
public short getIfAbsentPutWithKey(byte key, ByteToShortFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableByteShortMap
-
addToValue
public short addToValue(byte key, short toBeAdded)- Specified by:
addToValuein interfaceMutableByteShortMap
-
updateValue
public short updateValue(byte key, short initialValueIfAbsent, ShortToShortFunction function)- Specified by:
updateValuein interfaceMutableByteShortMap
-
withKeyValue
public ByteShortHashMap withKeyValue(byte key1, short value1)
- Specified by:
withKeyValuein interfaceMutableByteShortMap
-
withKeysValues
public ByteShortHashMap withKeysValues(byte key1, short value1, byte key2, short value2)
-
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
public ByteShortHashMap withoutKey(byte key)
- Specified by:
withoutKeyin interfaceMutableByteShortMap
-
withoutAllKeys
public ByteShortHashMap withoutAllKeys(ByteIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableByteShortMap
-
asUnmodifiable
public MutableByteShortMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableByteShortMap
-
asSynchronized
public MutableByteShortMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableByteShortMap
-
toImmutable
public ImmutableByteShortMap 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
public void forEachKey(ByteProcedure procedure)
- Specified by:
forEachKeyin interfaceByteKeysMap- Specified by:
forEachKeyin interfaceByteShortMap
-
forEachKeyValue
public void forEachKeyValue(ByteShortProcedure procedure)
- Specified by:
forEachKeyValuein interfaceByteShortMap
-
keysView
public LazyByteIterable keysView()
- Specified by:
keysViewin interfaceByteShortMap
-
keyValuesView
public RichIterable<ByteShortPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceByteShortMap
-
flipUniqueValues
public MutableShortByteMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceByteShortMap- Specified by:
flipUniqueValuesin interfaceMutableByteShortMap
-
select
public ByteShortHashMap select(ByteShortPredicate predicate)
- Specified by:
selectin interfaceByteShortMap- Specified by:
selectin interfaceMutableByteShortMap
-
reject
public ByteShortHashMap reject(ByteShortPredicate predicate)
- Specified by:
rejectin interfaceByteShortMap- Specified by:
rejectin interfaceMutableByteShortMap
-
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 MutableByteSet keySet()
- Specified by:
keySetin interfaceByteShortMap
-
values
public MutableShortCollection values()
- Specified by:
valuesin interfaceShortValuesMap
-
-