Class IntByteHashMap
- java.lang.Object
-
- org.eclipse.collections.impl.primitive.AbstractByteIterable
-
- org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableByteValuesMap
-
- org.eclipse.collections.impl.map.mutable.primitive.IntByteHashMap
-
- All Implemented Interfaces:
Externalizable,Serializable,ByteIterable,ByteValuesMap,IntByteMap,MutableByteValuesMap,MutableIntByteMap,PrimitiveIterable,MutableIntKeysMap,IntKeysMap
public class IntByteHashMap extends AbstractMutableByteValuesMap implements MutableIntByteMap, Externalizable, MutableIntKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.- Since:
- 3.0.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IntByteHashMap()IntByteHashMap(int initialCapacity)IntByteHashMap(IntByteMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description byteaddToValue(int key, byte toBeAdded)MutableIntByteMapasSynchronized()MutableIntByteMapasUnmodifiable()MutableByteIteratorbyteIterator()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(int key)booleanequals(Object obj)MutableByteIntMapflipUniqueValues()voidforEachKey(IntProcedure procedure)voidforEachKeyValue(IntByteProcedure procedure)byteget(int key)bytegetAndPut(int key, byte putValue, byte defaultValue)bytegetIfAbsent(int key, byte ifAbsent)bytegetIfAbsentPut(int key, byte value)bytegetIfAbsentPut(int key, ByteFunction0 function)<P> bytegetIfAbsentPutWith(int key, ByteFunction<? super P> function, P parameter)bytegetIfAbsentPutWithKey(int key, IntToByteFunction function)bytegetOrThrow(int key)inthashCode()<V> VinjectInto(V injectedValue, ObjectByteToObjectFunction<? super V,? extends V> function)MutableIntSetkeySet()LazyIntIterablekeysView()RichIterable<IntBytePair>keyValuesView()static IntByteHashMapnewWithKeysValues(int key1, byte value1)static IntByteHashMapnewWithKeysValues(int key1, byte value1, int key2, byte value2)static IntByteHashMapnewWithKeysValues(int key1, byte value1, int key2, byte value2, int key3, byte value3)static IntByteHashMapnewWithKeysValues(int key1, byte value1, int key2, byte value2, int key3, byte value3, int key4, byte value4)voidput(int key, byte value)voidputAll(IntByteMap map)voidreadExternal(ObjectInput in)IntByteHashMapreject(IntBytePredicate predicate)voidremove(int key)voidremoveKey(int key)byteremoveKeyIfAbsent(int key, byte value)IntByteHashMapselect(IntBytePredicate predicate)ImmutableIntByteMaptoImmutable()StringtoString()booleantrimToSize()byteupdateValue(int key, byte initialValueIfAbsent, ByteToByteFunction function)voidupdateValues(IntByteToByteFunction function)MutableByteCollectionvalues()IntByteHashMapwithKeysValues(int key1, byte value1, int key2, byte value2)IntByteHashMapwithKeysValues(int key1, byte value1, int key2, byte value2, int key3, byte value3)IntByteHashMapwithKeysValues(int key1, byte value1, int key2, byte value2, int key3, byte value3, int key4, byte value4)IntByteHashMapwithKeyValue(int key1, byte value1)IntByteHashMapwithoutAllKeys(IntIterable keys)IntByteHashMapwithoutKey(int key)voidwriteExternal(ObjectOutput out)-
Methods 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, toArray
-
Methods inherited from class org.eclipse.collections.impl.primitive.AbstractByteIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
-
Methods 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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ByteValuesMap
containsValue, forEachValue, tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.IntByteMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.impl.map.primitive.IntKeysMap
isEmpty, notEmpty, size
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableByteValuesMap
collect, reject, select
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableIntByteMap
putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
-
-
-
Constructor Detail
-
IntByteHashMap
public IntByteHashMap()
-
IntByteHashMap
public IntByteHashMap(int initialCapacity)
-
IntByteHashMap
public IntByteHashMap(IntByteMap map)
-
-
Method Detail
-
newWithKeysValues
public static IntByteHashMap newWithKeysValues(int key1, byte value1)
-
newWithKeysValues
public static IntByteHashMap newWithKeysValues(int key1, byte value1, int key2, byte value2)
-
newWithKeysValues
public static IntByteHashMap newWithKeysValues(int key1, byte value1, int key2, byte value2, int key3, byte value3)
-
newWithKeysValues
public static IntByteHashMap newWithKeysValues(int key1, byte value1, int key2, byte value2, int key3, byte value3, int key4, byte value4)
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceIntByteMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceIntByteMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceIntByteMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractByteIterable
-
byteIterator
public MutableByteIterator 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 interfaceMutableIntKeysMap
-
put
public void put(int key, byte value)- Specified by:
putin interfaceMutableIntByteMap
-
putAll
public void putAll(IntByteMap map)
- Specified by:
putAllin interfaceMutableIntByteMap
-
updateValues
public void updateValues(IntByteToByteFunction function)
- Specified by:
updateValuesin interfaceMutableIntByteMap
-
removeKey
public void removeKey(int key)
- Specified by:
removeKeyin interfaceMutableIntByteMap- Specified by:
removeKeyin interfaceMutableIntKeysMap
-
remove
public void remove(int key)
- Specified by:
removein interfaceMutableIntByteMap
-
removeKeyIfAbsent
public byte removeKeyIfAbsent(int key, byte value)- Specified by:
removeKeyIfAbsentin interfaceMutableIntByteMap
-
getIfAbsentPut
public byte getIfAbsentPut(int key, byte value)- Specified by:
getIfAbsentPutin interfaceMutableIntByteMap
-
getAndPut
public byte getAndPut(int key, byte putValue, byte defaultValue)- Specified by:
getAndPutin interfaceMutableIntByteMap
-
getIfAbsentPut
public byte getIfAbsentPut(int key, ByteFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableIntByteMap
-
getIfAbsentPutWith
public <P> byte getIfAbsentPutWith(int key, ByteFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableIntByteMap
-
getIfAbsentPutWithKey
public byte getIfAbsentPutWithKey(int key, IntToByteFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableIntByteMap
-
addToValue
public byte addToValue(int key, byte toBeAdded)- Specified by:
addToValuein interfaceMutableIntByteMap
-
updateValue
public byte updateValue(int key, byte initialValueIfAbsent, ByteToByteFunction function)- Specified by:
updateValuein interfaceMutableIntByteMap
-
withKeyValue
public IntByteHashMap withKeyValue(int key1, byte value1)
- Specified by:
withKeyValuein interfaceMutableIntByteMap
-
withKeysValues
public IntByteHashMap withKeysValues(int key1, byte value1, int key2, byte value2)
-
withKeysValues
public IntByteHashMap withKeysValues(int key1, byte value1, int key2, byte value2, int key3, byte value3)
-
withKeysValues
public IntByteHashMap withKeysValues(int key1, byte value1, int key2, byte value2, int key3, byte value3, int key4, byte value4)
-
withoutKey
public IntByteHashMap withoutKey(int key)
- Specified by:
withoutKeyin interfaceMutableIntByteMap
-
withoutAllKeys
public IntByteHashMap withoutAllKeys(IntIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableIntByteMap
-
asUnmodifiable
public MutableIntByteMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableIntByteMap
-
asSynchronized
public MutableIntByteMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableIntByteMap
-
toImmutable
public ImmutableIntByteMap toImmutable()
- Specified by:
toImmutablein interfaceIntByteMap
-
get
public byte get(int key)
- Specified by:
getin interfaceIntByteMap
-
getIfAbsent
public byte getIfAbsent(int key, byte ifAbsent)- Specified by:
getIfAbsentin interfaceIntByteMap
-
getOrThrow
public byte getOrThrow(int key)
- Specified by:
getOrThrowin interfaceIntByteMap
-
containsKey
public boolean containsKey(int key)
- Specified by:
containsKeyin interfaceIntByteMap- Specified by:
containsKeyin interfaceIntKeysMap
-
forEachKey
public void forEachKey(IntProcedure procedure)
- Specified by:
forEachKeyin interfaceIntByteMap- Specified by:
forEachKeyin interfaceIntKeysMap
-
forEachKeyValue
public void forEachKeyValue(IntByteProcedure procedure)
- Specified by:
forEachKeyValuein interfaceIntByteMap
-
keysView
public LazyIntIterable keysView()
- Specified by:
keysViewin interfaceIntByteMap
-
keyValuesView
public RichIterable<IntBytePair> keyValuesView()
- Specified by:
keyValuesViewin interfaceIntByteMap
-
flipUniqueValues
public MutableByteIntMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceIntByteMap- Specified by:
flipUniqueValuesin interfaceMutableIntByteMap
-
select
public IntByteHashMap select(IntBytePredicate predicate)
- Specified by:
selectin interfaceIntByteMap- Specified by:
selectin interfaceMutableIntByteMap
-
reject
public IntByteHashMap reject(IntBytePredicate predicate)
- Specified by:
rejectin interfaceIntByteMap- Specified by:
rejectin interfaceMutableIntByteMap
-
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 MutableIntSet keySet()
- Specified by:
keySetin interfaceIntByteMap
-
values
public MutableByteCollection values()
- Specified by:
valuesin interfaceByteValuesMap
-
-