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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static byteEMPTY_VALUE
-
Constructor Summary
Constructors Constructor Description ObjectByteHashMapWithHashingStrategy()Deprecated.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
-
Methods 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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableObjectByteMap
putPair, tap, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ObjectByteMap
injectIntoKeyValue
-
-
-
-
Field Detail
-
EMPTY_VALUE
public static final byte EMPTY_VALUE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ObjectByteHashMapWithHashingStrategy
@Deprecated public ObjectByteHashMapWithHashingStrategy()
Deprecated.Use ObjectByteHashMapWithHashingStrategy(HashingStrategy) instead.
-
ObjectByteHashMapWithHashingStrategy
public ObjectByteHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy)
-
ObjectByteHashMapWithHashingStrategy
public ObjectByteHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy, int initialCapacity)
-
ObjectByteHashMapWithHashingStrategy
public ObjectByteHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy, ObjectByteMap<? extends K> map)
-
-
Method Detail
-
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)
-
toString
public String 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
public String makeString()
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String separator)
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendStringin interfacePrimitiveIterable
-
byteIterator
public MutableByteIterator 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
public boolean containsAll(ByteIterable source)
- Specified by:
containsAllin interfaceByteIterable
-
clear
public void clear()
- Specified by:
clearin interfaceMutableObjectByteMap<K>
-
put
public void put(K key, byte value)
- Specified by:
putin interfaceMutableObjectByteMap<K>
-
putAll
public void putAll(ObjectByteMap<? extends K> map)
- Specified by:
putAllin interfaceMutableObjectByteMap<K>
-
updateValues
public void updateValues(ObjectByteToByteFunction<? super K> function)
- Specified by:
updateValuesin interfaceMutableObjectByteMap<K>
-
removeKey
public void removeKey(K key)
- Specified by:
removeKeyin interfaceMutableObjectByteMap<K>
-
removeKeyAtIndex
public void removeKeyAtIndex(K key, int index)
-
remove
public void remove(Object key)
- Specified by:
removein interfaceMutableObjectByteMap<K>
-
removeKeyIfAbsent
public byte removeKeyIfAbsent(K key, byte value)
- Specified by:
removeKeyIfAbsentin interfaceMutableObjectByteMap<K>
-
getIfAbsentPut
public byte getIfAbsentPut(K key, byte value)
- Specified by:
getIfAbsentPutin interfaceMutableObjectByteMap<K>
-
getAndPut
public byte getAndPut(K key, byte putValue, byte defaultValue)
- Specified by:
getAndPutin interfaceMutableObjectByteMap<K>
-
getIfAbsentPut
public byte getIfAbsentPut(K key, ByteFunction0 function)
- Specified by:
getIfAbsentPutin interfaceMutableObjectByteMap<K>
-
getIfAbsentPutWith
public <P> byte getIfAbsentPutWith(K key, ByteFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWithin interfaceMutableObjectByteMap<K>
-
getIfAbsentPutWithKey
public byte getIfAbsentPutWithKey(K key, ByteFunction<? super K> function)
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableObjectByteMap<K>
-
updateValue
public byte updateValue(K key, byte initialValueIfAbsent, ByteToByteFunction function)
- Specified by:
updateValuein interfaceMutableObjectByteMap<K>
-
addToValue
public byte addToValue(K key, byte toBeAdded)
- Specified by:
addToValuein interfaceMutableObjectByteMap<K>
-
withKeyValue
public ObjectByteHashMapWithHashingStrategy<K> withKeyValue(K key1, byte value1)
- 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
public ObjectByteHashMapWithHashingStrategy<K> withKeysValues(K key1, byte value1, K key2, byte value2, K key3, byte value3, K key4, byte value4)
-
withoutKey
public ObjectByteHashMapWithHashingStrategy<K> withoutKey(K key)
- Specified by:
withoutKeyin interfaceMutableObjectByteMap<K>
-
withoutAllKeys
public ObjectByteHashMapWithHashingStrategy<K> withoutAllKeys(Iterable<? extends K> keys)
- Specified by:
withoutAllKeysin interfaceMutableObjectByteMap<K>
-
asUnmodifiable
public MutableObjectByteMap<K> asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableObjectByteMap<K>
-
asSynchronized
public MutableObjectByteMap<K> asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableObjectByteMap<K>
-
toImmutable
public ImmutableObjectByteMap<K> toImmutable()
- Specified by:
toImmutablein interfaceObjectByteMap<K>
-
get
public byte get(Object key)
- Specified by:
getin interfaceObjectByteMap<K>
-
getOrThrow
public byte getOrThrow(Object key)
- Specified by:
getOrThrowin interfaceObjectByteMap<K>
-
getIfAbsent
public byte getIfAbsent(Object key, byte ifAbsent)
- Specified by:
getIfAbsentin interfaceObjectByteMap<K>
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceObjectByteMap<K>
-
containsValue
public boolean containsValue(byte value)
- Specified by:
containsValuein interfaceObjectByteMap<K>
-
each
public void each(ByteProcedure procedure)
- Specified by:
eachin interfaceByteIterable
-
forEachValue
public void forEachValue(ByteProcedure procedure)
- Specified by:
forEachValuein interfaceObjectByteMap<K>
-
forEachKey
public void forEachKey(Procedure<? super K> procedure)
- Specified by:
forEachKeyin interfaceObjectByteMap<K>
-
forEachKeyValue
public void forEachKeyValue(ObjectByteProcedure<? super K> procedure)
- Specified by:
forEachKeyValuein interfaceObjectByteMap<K>
-
select
public ObjectByteHashMapWithHashingStrategy<K> select(ObjectBytePredicate<? super K> predicate)
- Specified by:
selectin interfaceMutableObjectByteMap<K>- Specified by:
selectin interfaceObjectByteMap<K>
-
reject
public ObjectByteHashMapWithHashingStrategy<K> reject(ObjectBytePredicate<? super K> predicate)
- Specified by:
rejectin interfaceMutableObjectByteMap<K>- Specified by:
rejectin interfaceObjectByteMap<K>
-
select
public MutableByteCollection select(BytePredicate predicate)
- Specified by:
selectin interfaceByteIterable- Specified by:
selectin interfaceMutableObjectByteMap<K>
-
reject
public MutableByteCollection reject(BytePredicate predicate)
- Specified by:
rejectin interfaceByteIterable- Specified by:
rejectin interfaceMutableObjectByteMap<K>
-
detectIfNone
public byte detectIfNone(BytePredicate predicate, byte ifNone)
- Specified by:
detectIfNonein interfaceByteIterable
-
collect
public <V> MutableCollection<V> collect(ByteToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceByteIterable- Specified by:
collectin interfaceMutableObjectByteMap<K>
-
count
public int count(BytePredicate predicate)
- Specified by:
countin interfaceByteIterable
-
anySatisfy
public boolean anySatisfy(BytePredicate predicate)
- Specified by:
anySatisfyin interfaceByteIterable
-
allSatisfy
public boolean allSatisfy(BytePredicate predicate)
- Specified by:
allSatisfyin interfaceByteIterable
-
noneSatisfy
public boolean noneSatisfy(BytePredicate predicate)
- Specified by:
noneSatisfyin interfaceByteIterable
-
injectInto
public <V> V injectInto(V injectedValue, ObjectByteToObjectFunction<? super V,? extends V> function)- Specified by:
injectIntoin interfaceByteIterable
-
chunk
public RichIterable<ByteIterable> chunk(int size)
- 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
public MutableByteList toList()
- Specified by:
toListin interfaceByteIterable
-
toSet
public MutableByteSet toSet()
- Specified by:
toSetin interfaceByteIterable
-
toBag
public MutableByteBag toBag()
- Specified by:
toBagin interfaceByteIterable
-
asLazy
public LazyByteIterable asLazy()
- Specified by:
asLazyin interfaceByteIterable
-
toSortedArray
public byte[] toSortedArray()
- Specified by:
toSortedArrayin interfaceByteIterable
-
toSortedList
public MutableByteList toSortedList()
- Specified by:
toSortedListin interfaceByteIterable
-
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
-
keysView
public LazyIterable<K> keysView()
- Specified by:
keysViewin interfaceObjectByteMap<K>
-
keyValuesView
public RichIterable<ObjectBytePair<K>> keyValuesView()
- Specified by:
keyValuesViewin interfaceObjectByteMap<K>
-
flipUniqueValues
public MutableByteObjectMap<K> flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceMutableObjectByteMap<K>- Specified by:
flipUniqueValuesin interfaceObjectByteMap<K>
-
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 Set<K> keySet()
- Specified by:
keySetin interfaceObjectByteMap<K>
-
values
public MutableByteCollection values()
- Specified by:
valuesin interfaceObjectByteMap<K>
-
-