Class CharByteHashMap
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractByteIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableByteValuesMap
org.eclipse.collections.impl.map.mutable.primitive.CharByteHashMap
- All Implemented Interfaces:
Externalizable,Serializable,ByteIterable,ByteValuesMap,CharByteMap,MutableByteValuesMap,MutableCharByteMap,PrimitiveIterable,MutableCharKeysMap,CharKeysMap
public class CharByteHashMap
extends AbstractMutableByteValuesMap
implements MutableCharByteMap, Externalizable, MutableCharKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyteaddToValue(char key, byte toBeAdded) booleanallSatisfyKeyValue(CharBytePredicate predicate) voidclear()voidcompact()Deprecated.booleancontainsKey(char key) booleanvoidforEachKey(CharProcedure procedure) voidforEachKeyValue(CharByteProcedure procedure) byteget(char key) bytegetAndPut(char key, byte putValue, byte defaultValue) bytegetIfAbsent(char key, byte ifAbsent) bytegetIfAbsentPut(char key, byte value) bytegetIfAbsentPut(char key, ByteFunction0 function) <P> bytegetIfAbsentPutWith(char key, ByteFunction<? super P> function, P parameter) bytegetIfAbsentPutWithKey(char key, CharToByteFunction function) bytegetOrThrow(char key) inthashCode()<V> VinjectInto(V injectedValue, ObjectByteToObjectFunction<? super V, ? extends V> function) keySet()keysView()static CharByteHashMapnewWithKeysValues(char key1, byte value1) static CharByteHashMapnewWithKeysValues(char key1, byte value1, char key2, byte value2) static CharByteHashMapnewWithKeysValues(char key1, byte value1, char key2, byte value2, char key3, byte value3) static CharByteHashMapnewWithKeysValues(char key1, byte value1, char key2, byte value2, char key3, byte value3, char key4, byte value4) voidput(char key, byte value) voidputAll(CharByteMap map) voidreject(CharBytePredicate predicate) voidremove(char key) voidremoveKey(char key) byteremoveKeyIfAbsent(char key, byte value) select(CharBytePredicate predicate) toString()booleanbyteupdateValue(char key, byte initialValueIfAbsent, ByteToByteFunction function) voidupdateValues(CharByteToByteFunction function) values()withKeysValues(char key1, byte value1, char key2, byte value2) withKeysValues(char key1, byte value1, char key2, byte value2, char key3, byte value3) withKeysValues(char key1, byte value1, char key2, byte value2, char key3, byte value3, char key4, byte value4) withKeyValue(char key1, byte value1) withoutAllKeys(CharIterable keys) withoutKey(char key) voidMethods 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, toArrayMethods inherited from class org.eclipse.collections.impl.primitive.AbstractByteIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListMethods 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, toSortedListByMethods inherited from interface org.eclipse.collections.api.map.primitive.ByteValuesMap
containsValue, forEachValue, tapMethods inherited from interface org.eclipse.collections.api.map.primitive.CharByteMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.impl.map.primitive.CharKeysMap
isEmpty, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableByteValuesMap
collect, reject, selectMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableCharByteMap
putPair, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
Constructor Details
-
CharByteHashMap
public CharByteHashMap() -
CharByteHashMap
public CharByteHashMap(int initialCapacity) -
CharByteHashMap
-
-
Method Details
-
newWithKeysValues
-
newWithKeysValues
-
newWithKeysValues
public static CharByteHashMap newWithKeysValues(char key1, byte value1, char key2, byte value2, char key3, byte value3) -
newWithKeysValues
public static CharByteHashMap newWithKeysValues(char key1, byte value1, char key2, byte value2, char key3, byte value3, char key4, byte value4) -
equals
- Specified by:
equalsin interfaceCharByteMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCharByteMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceCharByteMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractByteIterable
-
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 interfaceMutableCharKeysMap
-
put
public void put(char key, byte value) - Specified by:
putin interfaceMutableCharByteMap
-
putAll
- Specified by:
putAllin interfaceMutableCharByteMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableCharByteMap
-
removeKey
public void removeKey(char key) - Specified by:
removeKeyin interfaceMutableCharByteMap- Specified by:
removeKeyin interfaceMutableCharKeysMap
-
remove
public void remove(char key) - Specified by:
removein interfaceMutableCharByteMap
-
removeKeyIfAbsent
public byte removeKeyIfAbsent(char key, byte value) - Specified by:
removeKeyIfAbsentin interfaceMutableCharByteMap
-
getIfAbsentPut
public byte getIfAbsentPut(char key, byte value) - Specified by:
getIfAbsentPutin interfaceMutableCharByteMap
-
getAndPut
public byte getAndPut(char key, byte putValue, byte defaultValue) - Specified by:
getAndPutin interfaceMutableCharByteMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableCharByteMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableCharByteMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableCharByteMap
-
addToValue
public byte addToValue(char key, byte toBeAdded) - Specified by:
addToValuein interfaceMutableCharByteMap
-
updateValue
- Specified by:
updateValuein interfaceMutableCharByteMap
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableCharByteMap
-
withKeysValues
-
withKeysValues
public CharByteHashMap withKeysValues(char key1, byte value1, char key2, byte value2, char key3, byte value3) -
withKeysValues
public CharByteHashMap withKeysValues(char key1, byte value1, char key2, byte value2, char key3, byte value3, char key4, byte value4) -
withoutKey
- Specified by:
withoutKeyin interfaceMutableCharByteMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableCharByteMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableCharByteMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableCharByteMap
-
toImmutable
- Specified by:
toImmutablein interfaceCharByteMap
-
get
public byte get(char key) - Specified by:
getin interfaceCharByteMap
-
getIfAbsent
public byte getIfAbsent(char key, byte ifAbsent) - Specified by:
getIfAbsentin interfaceCharByteMap
-
getOrThrow
public byte getOrThrow(char key) - Specified by:
getOrThrowin interfaceCharByteMap
-
containsKey
public boolean containsKey(char key) - Specified by:
containsKeyin interfaceCharByteMap- Specified by:
containsKeyin interfaceCharKeysMap
-
forEachKey
- Specified by:
forEachKeyin interfaceCharByteMap- Specified by:
forEachKeyin interfaceCharKeysMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceCharByteMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceCharByteMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceCharByteMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceCharByteMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceCharByteMap- Specified by:
flipUniqueValuesin interfaceMutableCharByteMap
-
select
- Specified by:
selectin interfaceCharByteMap- Specified by:
selectin interfaceMutableCharByteMap
-
reject
- Specified by:
rejectin interfaceCharByteMap- Specified by:
rejectin interfaceMutableCharByteMap
-
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 interfaceCharByteMap
-
values
- Specified by:
valuesin interfaceByteValuesMap
-
trimToSize()instead