Class ByteCharHashMap
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractCharIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableCharValuesMap
org.eclipse.collections.impl.map.mutable.primitive.ByteCharHashMap
- All Implemented Interfaces:
Externalizable,Serializable,CharIterable,ByteCharMap,CharValuesMap,MutableByteCharMap,MutableCharValuesMap,PrimitiveIterable,MutableByteKeysMap,ByteKeysMap
public class ByteCharHashMap
extends AbstractMutableCharValuesMap
implements MutableByteCharMap, Externalizable, MutableByteKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncharaddToValue(byte key, char toBeAdded) booleanallSatisfyKeyValue(ByteCharPredicate predicate) voidclear()voidcompact()Deprecated.booleancontainsKey(byte key) booleanvoidforEachKey(ByteProcedure procedure) voidforEachKeyValue(ByteCharProcedure procedure) charget(byte key) chargetAndPut(byte key, char putValue, char defaultValue) chargetIfAbsent(byte key, char ifAbsent) chargetIfAbsentPut(byte key, char value) chargetIfAbsentPut(byte key, CharFunction0 function) <P> chargetIfAbsentPutWith(byte key, CharFunction<? super P> function, P parameter) chargetIfAbsentPutWithKey(byte key, ByteToCharFunction function) chargetOrThrow(byte key) inthashCode()<V> VinjectInto(V injectedValue, ObjectCharToObjectFunction<? super V, ? extends V> function) keySet()keysView()static ByteCharHashMapnewWithKeysValues(byte key1, char value1) static ByteCharHashMapnewWithKeysValues(byte key1, char value1, byte key2, char value2) static ByteCharHashMapnewWithKeysValues(byte key1, char value1, byte key2, char value2, byte key3, char value3) static ByteCharHashMapnewWithKeysValues(byte key1, char value1, byte key2, char value2, byte key3, char value3, byte key4, char value4) voidput(byte key, char value) voidputAll(ByteCharMap map) voidreject(ByteCharPredicate predicate) voidremove(byte key) voidremoveKey(byte key) charremoveKeyIfAbsent(byte key, char value) select(ByteCharPredicate predicate) toString()booleancharupdateValue(byte key, char initialValueIfAbsent, CharToCharFunction function) voidupdateValues(ByteCharToCharFunction function) values()withKeysValues(byte key1, char value1, byte key2, char value2) withKeysValues(byte key1, char value1, byte key2, char value2, byte key3, char value3) withKeysValues(byte key1, char value1, byte key2, char value2, byte key3, char value3, byte key4, char value4) withKeyValue(byte key1, char value1) withoutAllKeys(ByteIterable keys) withoutKey(byte key) voidMethods inherited from class org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableCharValuesMap
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.AbstractCharIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListMethods inherited from interface org.eclipse.collections.api.map.primitive.ByteCharMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.impl.map.primitive.ByteKeysMap
isEmpty, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.CharIterable
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.CharValuesMap
containsValue, forEachValue, tapMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableByteCharMap
putPair, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableCharValuesMap
collect, reject, selectMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
Constructor Details
-
ByteCharHashMap
public ByteCharHashMap() -
ByteCharHashMap
public ByteCharHashMap(int initialCapacity) -
ByteCharHashMap
-
-
Method Details
-
newWithKeysValues
-
newWithKeysValues
-
newWithKeysValues
public static ByteCharHashMap newWithKeysValues(byte key1, char value1, byte key2, char value2, byte key3, char value3) -
newWithKeysValues
public static ByteCharHashMap newWithKeysValues(byte key1, char value1, byte key2, char value2, byte key3, char value3, byte key4, char value4) -
equals
- Specified by:
equalsin interfaceByteCharMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceByteCharMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceByteCharMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractCharIterable
-
charIterator
- Specified by:
charIteratorin interfaceCharIterable- Specified by:
charIteratorin interfaceMutableCharValuesMap
-
injectInto
public <V> V injectInto(V injectedValue, ObjectCharToObjectFunction<? super V, ? extends V> function) - Specified by:
injectIntoin interfaceCharIterable
-
clear
public void clear()- Specified by:
clearin interfaceMutableByteKeysMap- Specified by:
clearin interfaceMutableCharValuesMap
-
put
public void put(byte key, char value) - Specified by:
putin interfaceMutableByteCharMap
-
putAll
- Specified by:
putAllin interfaceMutableByteCharMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableByteCharMap
-
removeKey
public void removeKey(byte key) - Specified by:
removeKeyin interfaceMutableByteCharMap- Specified by:
removeKeyin interfaceMutableByteKeysMap
-
remove
public void remove(byte key) - Specified by:
removein interfaceMutableByteCharMap
-
removeKeyIfAbsent
public char removeKeyIfAbsent(byte key, char value) - Specified by:
removeKeyIfAbsentin interfaceMutableByteCharMap
-
getIfAbsentPut
public char getIfAbsentPut(byte key, char value) - Specified by:
getIfAbsentPutin interfaceMutableByteCharMap
-
getAndPut
public char getAndPut(byte key, char putValue, char defaultValue) - Specified by:
getAndPutin interfaceMutableByteCharMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableByteCharMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableByteCharMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableByteCharMap
-
addToValue
public char addToValue(byte key, char toBeAdded) - Specified by:
addToValuein interfaceMutableByteCharMap
-
updateValue
- Specified by:
updateValuein interfaceMutableByteCharMap
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableByteCharMap
-
withKeysValues
-
withKeysValues
public ByteCharHashMap withKeysValues(byte key1, char value1, byte key2, char value2, byte key3, char value3) -
withKeysValues
public ByteCharHashMap withKeysValues(byte key1, char value1, byte key2, char value2, byte key3, char value3, byte key4, char value4) -
withoutKey
- Specified by:
withoutKeyin interfaceMutableByteCharMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableByteCharMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableByteCharMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableByteCharMap
-
toImmutable
- Specified by:
toImmutablein interfaceByteCharMap
-
get
public char get(byte key) - Specified by:
getin interfaceByteCharMap
-
getIfAbsent
public char getIfAbsent(byte key, char ifAbsent) - Specified by:
getIfAbsentin interfaceByteCharMap
-
getOrThrow
public char getOrThrow(byte key) - Specified by:
getOrThrowin interfaceByteCharMap
-
containsKey
public boolean containsKey(byte key) - Specified by:
containsKeyin interfaceByteCharMap- Specified by:
containsKeyin interfaceByteKeysMap
-
forEachKey
- Specified by:
forEachKeyin interfaceByteCharMap- Specified by:
forEachKeyin interfaceByteKeysMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceByteCharMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceByteCharMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceByteCharMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceByteCharMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceByteCharMap- Specified by:
flipUniqueValuesin interfaceMutableByteCharMap
-
select
- Specified by:
selectin interfaceByteCharMap- Specified by:
selectin interfaceMutableByteCharMap
-
reject
- Specified by:
rejectin interfaceByteCharMap- Specified by:
rejectin interfaceMutableByteCharMap
-
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 interfaceByteCharMap
-
values
- Specified by:
valuesin interfaceCharValuesMap
-
trimToSize()instead