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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IntCharHashMap()IntCharHashMap(int initialCapacity)IntCharHashMap(IntCharMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description charaddToValue(int key, char toBeAdded)MutableIntCharMapasSynchronized()MutableIntCharMapasUnmodifiable()MutableCharIteratorcharIterator()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(int key)booleanequals(Object obj)MutableCharIntMapflipUniqueValues()voidforEachKey(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)MutableIntSetkeySet()LazyIntIterablekeysView()RichIterable<IntCharPair>keyValuesView()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)voidreadExternal(ObjectInput in)IntCharHashMapreject(IntCharPredicate predicate)voidremove(int key)voidremoveKey(int key)charremoveKeyIfAbsent(int key, char value)IntCharHashMapselect(IntCharPredicate predicate)ImmutableIntCharMaptoImmutable()StringtoString()booleantrimToSize()charupdateValue(int key, char initialValueIfAbsent, CharToCharFunction function)voidupdateValues(IntCharToCharFunction function)MutableCharCollectionvalues()IntCharHashMapwithKeysValues(int key1, char value1, int key2, char value2)IntCharHashMapwithKeysValues(int key1, char value1, int key2, char value2, int key3, char value3)IntCharHashMapwithKeysValues(int key1, char value1, int key2, char value2, int key3, char value3, int key4, char value4)IntCharHashMapwithKeyValue(int key1, char value1)IntCharHashMapwithoutAllKeys(IntIterable keys)IntCharHashMapwithoutKey(int key)voidwriteExternal(ObjectOutput out)-
Methods 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, toArray
-
Methods inherited from class org.eclipse.collections.impl.primitive.AbstractCharIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
-
Methods 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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.CharValuesMap
containsValue, forEachValue, tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.IntCharMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.impl.map.primitive.IntKeysMap
isEmpty, notEmpty, size
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableCharValuesMap
collect, reject, select
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableIntCharMap
putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
-
-
-
Constructor Detail
-
IntCharHashMap
public IntCharHashMap()
-
IntCharHashMap
public IntCharHashMap(int initialCapacity)
-
IntCharHashMap
public IntCharHashMap(IntCharMap map)
-
-
Method Detail
-
newWithKeysValues
public static IntCharHashMap newWithKeysValues(int key1, char value1)
-
newWithKeysValues
public static IntCharHashMap newWithKeysValues(int key1, char value1, int key2, char value2)
-
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
public boolean equals(Object obj)
- Specified by:
equalsin interfaceIntCharMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceIntCharMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceIntCharMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractCharIterable
-
charIterator
public MutableCharIterator 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
public void putAll(IntCharMap map)
- Specified by:
putAllin interfaceMutableIntCharMap
-
updateValues
public void updateValues(IntCharToCharFunction function)
- 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
public char getIfAbsentPut(int key, CharFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableIntCharMap
-
getIfAbsentPutWith
public <P> char getIfAbsentPutWith(int key, CharFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableIntCharMap
-
getIfAbsentPutWithKey
public char getIfAbsentPutWithKey(int key, IntToCharFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableIntCharMap
-
addToValue
public char addToValue(int key, char toBeAdded)- Specified by:
addToValuein interfaceMutableIntCharMap
-
updateValue
public char updateValue(int key, char initialValueIfAbsent, CharToCharFunction function)- Specified by:
updateValuein interfaceMutableIntCharMap
-
withKeyValue
public IntCharHashMap withKeyValue(int key1, char value1)
- Specified by:
withKeyValuein interfaceMutableIntCharMap
-
withKeysValues
public IntCharHashMap withKeysValues(int key1, char value1, int key2, char value2)
-
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
public IntCharHashMap withoutKey(int key)
- Specified by:
withoutKeyin interfaceMutableIntCharMap
-
withoutAllKeys
public IntCharHashMap withoutAllKeys(IntIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableIntCharMap
-
asUnmodifiable
public MutableIntCharMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableIntCharMap
-
asSynchronized
public MutableIntCharMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableIntCharMap
-
toImmutable
public ImmutableIntCharMap 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
public void forEachKey(IntProcedure procedure)
- Specified by:
forEachKeyin interfaceIntCharMap- Specified by:
forEachKeyin interfaceIntKeysMap
-
forEachKeyValue
public void forEachKeyValue(IntCharProcedure procedure)
- Specified by:
forEachKeyValuein interfaceIntCharMap
-
keysView
public LazyIntIterable keysView()
- Specified by:
keysViewin interfaceIntCharMap
-
keyValuesView
public RichIterable<IntCharPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceIntCharMap
-
flipUniqueValues
public MutableCharIntMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceIntCharMap- Specified by:
flipUniqueValuesin interfaceMutableIntCharMap
-
select
public IntCharHashMap select(IntCharPredicate predicate)
- Specified by:
selectin interfaceIntCharMap- Specified by:
selectin interfaceMutableIntCharMap
-
reject
public IntCharHashMap reject(IntCharPredicate predicate)
- Specified by:
rejectin interfaceIntCharMap- Specified by:
rejectin interfaceMutableIntCharMap
-
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
-
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 MutableIntSet keySet()
- Specified by:
keySetin interfaceIntCharMap
-
values
public MutableCharCollection values()
- Specified by:
valuesin interfaceCharValuesMap
-
-