Class ObjectByteHashMapWithHashingStrategy<K>
java.lang.Object
org.eclipse.collections.impl.map.mutable.primitive.ObjectByteHashMapWithHashingStrategy<K>
- All Implemented Interfaces:
Externalizable,Serializable,ByteIterable,MutableObjectByteMap<K>,ObjectByteMap<K>,PrimitiveIterable
public class ObjectByteHashMapWithHashingStrategy<K>
extends Object
implements MutableObjectByteMap<K>, Externalizable
This file was automatically generated from template file objectPrimitiveHashMapWithHashingStrategy.stg.
- Since:
- 7.0.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Use ObjectByteHashMapWithHashingStrategy(HashingStrategy) instead.ObjectByteHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy) ObjectByteHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy, int initialCapacity) ObjectByteHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy, ObjectByteMap<? extends K> map) -
Method Summary
Modifier and TypeMethodDescriptionbyteaddToValue(K key, byte toBeAdded) booleanallSatisfy(BytePredicate predicate) booleanallSatisfyKeyValue(ObjectBytePredicate<K> predicate) booleananySatisfy(BytePredicate predicate) voidappendString(Appendable appendable) voidappendString(Appendable appendable, String separator) voidappendString(Appendable appendable, String start, String separator, String end) asLazy()doubleaverage()chunk(int size) voidclear()<V> MutableCollection<V>collect(ByteToObjectFunction<? extends V> function) voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontains(byte value) booleancontainsAll(byte... source) booleancontainsAll(ByteIterable source) booleancontainsKey(Object key) booleancontainsValue(byte value) intcount(BytePredicate predicate) bytedetectIfNone(BytePredicate predicate, byte ifNone) voideach(ByteProcedure procedure) booleanvoidforEachKey(Procedure<? super K> procedure) voidforEachKeyValue(ObjectByteProcedure<? super K> procedure) voidforEachValue(ByteProcedure procedure) bytebytebytegetIfAbsent(Object key, byte ifAbsent) bytegetIfAbsentPut(K key, byte value) bytegetIfAbsentPut(K key, ByteFunction0 function) <P> bytegetIfAbsentPutWith(K key, ByteFunction<? super P> function, P parameter) bytegetIfAbsentPutWithKey(K key, ByteFunction<? super K> function) bytegetOrThrow(Object key) inthashCode()<V> VinjectInto(V injectedValue, ObjectByteToObjectFunction<? super V, ? extends V> function) booleanisEmpty()keySet()keysView()makeString(String separator) makeString(String start, String separator, String end) bytemax()bytemaxIfEmpty(byte defaultValue) doublemedian()bytemin()byteminIfEmpty(byte defaultValue) static <K> ObjectByteHashMapWithHashingStrategy<K>newMap(HashingStrategy<? super K> hashingStrategy) static <K> ObjectByteHashMapWithHashingStrategy<K>newMap(HashingStrategy<? super K> hashingStrategy, ObjectByteMap<K> map) static <K> ObjectByteHashMapWithHashingStrategy<K>static <K> ObjectByteHashMapWithHashingStrategy<K>newMapWithInitialCapacity(HashingStrategy<? super K> hashingStrategy, int initialCapacity) static <K> ObjectByteHashMapWithHashingStrategy<K>newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, byte value1) static <K> ObjectByteHashMapWithHashingStrategy<K>newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, byte value1, K key2, byte value2) static <K> ObjectByteHashMapWithHashingStrategy<K>newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, byte value1, K key2, byte value2, K key3, byte value3) static <K> ObjectByteHashMapWithHashingStrategy<K>newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, byte value1, K key2, byte value2, K key3, byte value3, K key4, byte value4) booleannoneSatisfy(BytePredicate predicate) booleannotEmpty()voidvoidputAll(ObjectByteMap<? extends K> map) voidreject(BytePredicate predicate) reject(ObjectBytePredicate<? super K> predicate) voidvoidvoidremoveKeyAtIndex(K key, int index) byteremoveKeyIfAbsent(K key, byte value) select(BytePredicate predicate) select(ObjectBytePredicate<? super K> predicate) intsize()longsum()byte[]toArray()byte[]toArray(byte[] target) toBag()toList()toSet()byte[]toString()booleanbyteupdateValue(K key, byte initialValueIfAbsent, ByteToByteFunction function) voidupdateValues(ObjectByteToByteFunction<? super K> function) values()withKeysValues(K key1, byte value1, K key2, byte value2) withKeysValues(K key1, byte value1, K key2, byte value2, K key3, byte value3) withKeysValues(K key1, byte value1, K key2, byte value2, K key3, byte value3, K key4, byte value4) withKeyValue(K key1, byte value1) withoutAllKeys(Iterable<? extends K> keys) withoutKey(K key) voidMethods inherited from interface org.eclipse.collections.api.ByteIterable
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAny, containsAny, containsNone, containsNone, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics, toSortedList, toSortedListBy, toSortedListByMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableObjectByteMap
putPair, tap, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.map.primitive.ObjectByteMap
injectIntoKeyValue
-
Field Details
-
EMPTY_VALUE
public static final byte EMPTY_VALUE- See Also:
-
-
Constructor Details
-
ObjectByteHashMapWithHashingStrategy
Deprecated.Use ObjectByteHashMapWithHashingStrategy(HashingStrategy) instead. -
ObjectByteHashMapWithHashingStrategy
-
ObjectByteHashMapWithHashingStrategy
public ObjectByteHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy, int initialCapacity) -
ObjectByteHashMapWithHashingStrategy
public ObjectByteHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy, ObjectByteMap<? extends K> map)
-
-
Method Details
-
newMap
public static <K> ObjectByteHashMapWithHashingStrategy<K> newMap(HashingStrategy<? super K> hashingStrategy) -
newMap
public static <K> ObjectByteHashMapWithHashingStrategy<K> newMap(HashingStrategy<? super K> hashingStrategy, ObjectByteMap<K> map) -
newMap
public static <K> ObjectByteHashMapWithHashingStrategy<K> newMap(ObjectByteHashMapWithHashingStrategy<K> map) -
newMapWithInitialCapacity
public static <K> ObjectByteHashMapWithHashingStrategy<K> newMapWithInitialCapacity(HashingStrategy<? super K> hashingStrategy, int initialCapacity) -
newWithKeysValues
public static <K> ObjectByteHashMapWithHashingStrategy<K> newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, byte value1) -
newWithKeysValues
public static <K> ObjectByteHashMapWithHashingStrategy<K> newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, byte value1, K key2, byte value2) -
newWithKeysValues
public static <K> ObjectByteHashMapWithHashingStrategy<K> newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, byte value1, K key2, byte value2, K key3, byte value3) -
newWithKeysValues
public static <K> ObjectByteHashMapWithHashingStrategy<K> newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, byte value1, K key2, byte value2, K key3, byte value3, K key4, byte value4) -
equals
-
hashCode
public int hashCode() -
toString
- Specified by:
toStringin interfaceObjectByteMap<K>- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
size
public int size()- Specified by:
sizein interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()- Specified by:
notEmptyin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
byteIterator
- Specified by:
byteIteratorin interfaceByteIterable- Specified by:
byteIteratorin interfaceMutableObjectByteMap<K>
-
toArray
public byte[] toArray()- Specified by:
toArrayin interfaceByteIterable
-
toArray
public byte[] toArray(byte[] target) - Specified by:
toArrayin interfaceByteIterable
-
contains
public boolean contains(byte value) - Specified by:
containsin interfaceByteIterable
-
containsAll
public boolean containsAll(byte... source) - Specified by:
containsAllin interfaceByteIterable
-
containsAll
- Specified by:
containsAllin interfaceByteIterable
-
clear
public void clear()- Specified by:
clearin interfaceMutableObjectByteMap<K>
-
put
- Specified by:
putin interfaceMutableObjectByteMap<K>
-
putAll
- Specified by:
putAllin interfaceMutableObjectByteMap<K>
-
updateValues
- Specified by:
updateValuesin interfaceMutableObjectByteMap<K>
-
removeKey
- Specified by:
removeKeyin interfaceMutableObjectByteMap<K>
-
removeKeyAtIndex
-
remove
- Specified by:
removein interfaceMutableObjectByteMap<K>
-
removeKeyIfAbsent
- Specified by:
removeKeyIfAbsentin interfaceMutableObjectByteMap<K>
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableObjectByteMap<K>
-
getAndPut
- Specified by:
getAndPutin interfaceMutableObjectByteMap<K>
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableObjectByteMap<K>
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableObjectByteMap<K>
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableObjectByteMap<K>
-
updateValue
- Specified by:
updateValuein interfaceMutableObjectByteMap<K>
-
addToValue
- Specified by:
addToValuein interfaceMutableObjectByteMap<K>
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableObjectByteMap<K>
-
withKeysValues
public ObjectByteHashMapWithHashingStrategy<K> withKeysValues(K key1, byte value1, K key2, byte value2) -
withKeysValues
public ObjectByteHashMapWithHashingStrategy<K> withKeysValues(K key1, byte value1, K key2, byte value2, K key3, byte value3) -
withKeysValues
-
withoutKey
- Specified by:
withoutKeyin interfaceMutableObjectByteMap<K>
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableObjectByteMap<K>
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableObjectByteMap<K>
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableObjectByteMap<K>
-
toImmutable
- Specified by:
toImmutablein interfaceObjectByteMap<K>
-
get
- Specified by:
getin interfaceObjectByteMap<K>
-
getOrThrow
- Specified by:
getOrThrowin interfaceObjectByteMap<K>
-
getIfAbsent
- Specified by:
getIfAbsentin interfaceObjectByteMap<K>
-
containsKey
- Specified by:
containsKeyin interfaceObjectByteMap<K>
-
containsValue
public boolean containsValue(byte value) - Specified by:
containsValuein interfaceObjectByteMap<K>
-
each
- Specified by:
eachin interfaceByteIterable
-
forEachValue
- Specified by:
forEachValuein interfaceObjectByteMap<K>
-
forEachKey
- Specified by:
forEachKeyin interfaceObjectByteMap<K>
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceObjectByteMap<K>
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceObjectByteMap<K>- Since:
- 12.0
-
select
- Specified by:
selectin interfaceMutableObjectByteMap<K>- Specified by:
selectin interfaceObjectByteMap<K>
-
reject
- Specified by:
rejectin interfaceMutableObjectByteMap<K>- Specified by:
rejectin interfaceObjectByteMap<K>
-
select
- Specified by:
selectin interfaceByteIterable- Specified by:
selectin interfaceMutableObjectByteMap<K>
-
reject
- Specified by:
rejectin interfaceByteIterable- Specified by:
rejectin interfaceMutableObjectByteMap<K>
-
detectIfNone
- Specified by:
detectIfNonein interfaceByteIterable
-
collect
- Specified by:
collectin interfaceByteIterable- Specified by:
collectin interfaceMutableObjectByteMap<K>
-
count
- Specified by:
countin interfaceByteIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceByteIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceByteIterable
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceByteIterable
-
injectInto
public <V> V injectInto(V injectedValue, ObjectByteToObjectFunction<? super V, ? extends V> function) - Specified by:
injectIntoin interfaceByteIterable
-
chunk
- Specified by:
chunkin interfaceByteIterable
-
sum
public long sum()- Specified by:
sumin interfaceByteIterable
-
max
public byte max()- Specified by:
maxin interfaceByteIterable
-
min
public byte min()- Specified by:
minin interfaceByteIterable
-
maxIfEmpty
public byte maxIfEmpty(byte defaultValue) - Specified by:
maxIfEmptyin interfaceByteIterable
-
minIfEmpty
public byte minIfEmpty(byte defaultValue) - Specified by:
minIfEmptyin interfaceByteIterable
-
average
public double average()- Specified by:
averagein interfaceByteIterable
-
median
public double median()- Specified by:
medianin interfaceByteIterable
-
toList
- Specified by:
toListin interfaceByteIterable
-
toSet
- Specified by:
toSetin interfaceByteIterable
-
toBag
- Specified by:
toBagin interfaceByteIterable
-
asLazy
- Specified by:
asLazyin interfaceByteIterable
-
toSortedArray
public byte[] toSortedArray()- Specified by:
toSortedArrayin interfaceByteIterable
-
toSortedList
- Specified by:
toSortedListin interfaceByteIterable
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
keysView
- Specified by:
keysViewin interfaceObjectByteMap<K>
-
keyValuesView
- Specified by:
keyValuesViewin interfaceObjectByteMap<K>
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceMutableObjectByteMap<K>- Specified by:
flipUniqueValuesin interfaceObjectByteMap<K>
-
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 interfaceObjectByteMap<K>
-
values
- Specified by:
valuesin interfaceObjectByteMap<K>
-