Class CharCharHashMap
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractCharIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableCharValuesMap
org.eclipse.collections.impl.map.mutable.primitive.CharCharHashMap
- All Implemented Interfaces:
Externalizable,Serializable,CharIterable,CharCharMap,CharValuesMap,MutableCharCharMap,MutableCharValuesMap,PrimitiveIterable,MutableCharKeysMap,CharKeysMap
public class CharCharHashMap
extends AbstractMutableCharValuesMap
implements MutableCharCharMap, Externalizable, MutableCharKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncharaddToValue(char key, char toBeAdded) booleanallSatisfyKeyValue(CharCharPredicate predicate) voidclear()voidcompact()Deprecated.booleancontainsKey(char key) booleanvoidforEachKey(CharProcedure procedure) voidforEachKeyValue(CharCharProcedure procedure) charget(char key) chargetAndPut(char key, char putValue, char defaultValue) chargetIfAbsent(char key, char ifAbsent) chargetIfAbsentPut(char key, char value) chargetIfAbsentPut(char key, CharFunction0 function) <P> chargetIfAbsentPutWith(char key, CharFunction<? super P> function, P parameter) chargetIfAbsentPutWithKey(char key, CharToCharFunction function) chargetOrThrow(char key) inthashCode()<V> VinjectInto(V injectedValue, ObjectCharToObjectFunction<? super V, ? extends V> function) keySet()keysView()static CharCharHashMapnewWithKeysValues(char key1, char value1) static CharCharHashMapnewWithKeysValues(char key1, char value1, char key2, char value2) static CharCharHashMapnewWithKeysValues(char key1, char value1, char key2, char value2, char key3, char value3) static CharCharHashMapnewWithKeysValues(char key1, char value1, char key2, char value2, char key3, char value3, char key4, char value4) voidput(char key, char value) voidputAll(CharCharMap map) voidreject(CharCharPredicate predicate) voidremove(char key) voidremoveKey(char key) charremoveKeyIfAbsent(char key, char value) select(CharCharPredicate predicate) toString()booleancharupdateValue(char key, char initialValueIfAbsent, CharToCharFunction function) voidupdateValues(CharCharToCharFunction function) values()withKeysValues(char key1, char value1, char key2, char value2) withKeysValues(char key1, char value1, char key2, char value2, char key3, char value3) withKeysValues(char key1, char value1, char key2, char value2, char key3, char value3, char key4, char value4) withKeyValue(char key1, char value1) withoutAllKeys(CharIterable keys) withoutKey(char 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.CharCharMap
injectIntoKeyValueMethods 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.impl.map.primitive.CharKeysMap
isEmpty, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.map.primitive.CharValuesMap
containsValue, forEachValue, tapMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableCharCharMap
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
-
CharCharHashMap
public CharCharHashMap() -
CharCharHashMap
public CharCharHashMap(int initialCapacity) -
CharCharHashMap
-
-
Method Details
-
newWithKeysValues
-
newWithKeysValues
-
newWithKeysValues
public static CharCharHashMap newWithKeysValues(char key1, char value1, char key2, char value2, char key3, char value3) -
newWithKeysValues
public static CharCharHashMap newWithKeysValues(char key1, char value1, char key2, char value2, char key3, char value3, char key4, char value4) -
equals
- Specified by:
equalsin interfaceCharCharMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCharCharMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceCharCharMap- 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 interfaceMutableCharKeysMap- Specified by:
clearin interfaceMutableCharValuesMap
-
put
public void put(char key, char value) - Specified by:
putin interfaceMutableCharCharMap
-
putAll
- Specified by:
putAllin interfaceMutableCharCharMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableCharCharMap
-
removeKey
public void removeKey(char key) - Specified by:
removeKeyin interfaceMutableCharCharMap- Specified by:
removeKeyin interfaceMutableCharKeysMap
-
remove
public void remove(char key) - Specified by:
removein interfaceMutableCharCharMap
-
removeKeyIfAbsent
public char removeKeyIfAbsent(char key, char value) - Specified by:
removeKeyIfAbsentin interfaceMutableCharCharMap
-
getIfAbsentPut
public char getIfAbsentPut(char key, char value) - Specified by:
getIfAbsentPutin interfaceMutableCharCharMap
-
getAndPut
public char getAndPut(char key, char putValue, char defaultValue) - Specified by:
getAndPutin interfaceMutableCharCharMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableCharCharMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableCharCharMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableCharCharMap
-
addToValue
public char addToValue(char key, char toBeAdded) - Specified by:
addToValuein interfaceMutableCharCharMap
-
updateValue
- Specified by:
updateValuein interfaceMutableCharCharMap
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableCharCharMap
-
withKeysValues
-
withKeysValues
public CharCharHashMap withKeysValues(char key1, char value1, char key2, char value2, char key3, char value3) -
withKeysValues
public CharCharHashMap withKeysValues(char key1, char value1, char key2, char value2, char key3, char value3, char key4, char value4) -
withoutKey
- Specified by:
withoutKeyin interfaceMutableCharCharMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableCharCharMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableCharCharMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableCharCharMap
-
toImmutable
- Specified by:
toImmutablein interfaceCharCharMap
-
get
public char get(char key) - Specified by:
getin interfaceCharCharMap
-
getIfAbsent
public char getIfAbsent(char key, char ifAbsent) - Specified by:
getIfAbsentin interfaceCharCharMap
-
getOrThrow
public char getOrThrow(char key) - Specified by:
getOrThrowin interfaceCharCharMap
-
containsKey
public boolean containsKey(char key) - Specified by:
containsKeyin interfaceCharCharMap- Specified by:
containsKeyin interfaceCharKeysMap
-
forEachKey
- Specified by:
forEachKeyin interfaceCharCharMap- Specified by:
forEachKeyin interfaceCharKeysMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceCharCharMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceCharCharMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceCharCharMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceCharCharMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceCharCharMap- Specified by:
flipUniqueValuesin interfaceMutableCharCharMap
-
select
- Specified by:
selectin interfaceCharCharMap- Specified by:
selectin interfaceMutableCharCharMap
-
reject
- Specified by:
rejectin interfaceCharCharMap- Specified by:
rejectin interfaceMutableCharCharMap
-
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 interfaceCharCharMap
-
values
- Specified by:
valuesin interfaceCharValuesMap
-
trimToSize()instead