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