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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CharCharHashMap()CharCharHashMap(int initialCapacity)CharCharHashMap(CharCharMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description charaddToValue(char key, char toBeAdded)MutableCharCharMapasSynchronized()MutableCharCharMapasUnmodifiable()MutableCharIteratorcharIterator()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(char key)booleanequals(Object obj)MutableCharCharMapflipUniqueValues()voidforEachKey(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)MutableCharSetkeySet()LazyCharIterablekeysView()RichIterable<CharCharPair>keyValuesView()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)voidreadExternal(ObjectInput in)CharCharHashMapreject(CharCharPredicate predicate)voidremove(char key)voidremoveKey(char key)charremoveKeyIfAbsent(char key, char value)CharCharHashMapselect(CharCharPredicate predicate)ImmutableCharCharMaptoImmutable()StringtoString()booleantrimToSize()charupdateValue(char key, char initialValueIfAbsent, CharToCharFunction function)voidupdateValues(CharCharToCharFunction function)MutableCharCollectionvalues()CharCharHashMapwithKeysValues(char key1, char value1, char key2, char value2)CharCharHashMapwithKeysValues(char key1, char value1, char key2, char value2, char key3, char value3)CharCharHashMapwithKeysValues(char key1, char value1, char key2, char value2, char key3, char value3, char key4, char value4)CharCharHashMapwithKeyValue(char key1, char value1)CharCharHashMapwithoutAllKeys(CharIterable keys)CharCharHashMapwithoutKey(char 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.map.primitive.CharCharMap
injectIntoKeyValue
-
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.impl.map.primitive.CharKeysMap
isEmpty, notEmpty, size
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.CharValuesMap
containsValue, forEachValue, tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableCharCharMap
putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableCharValuesMap
collect, reject, select
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
-
-
-
Constructor Detail
-
CharCharHashMap
public CharCharHashMap()
-
CharCharHashMap
public CharCharHashMap(int initialCapacity)
-
CharCharHashMap
public CharCharHashMap(CharCharMap map)
-
-
Method Detail
-
newWithKeysValues
public static CharCharHashMap newWithKeysValues(char key1, char value1)
-
newWithKeysValues
public static CharCharHashMap newWithKeysValues(char key1, char value1, char key2, char value2)
-
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
public boolean equals(Object obj)
- Specified by:
equalsin interfaceCharCharMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceCharCharMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceCharCharMap- 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 interfaceMutableCharKeysMap- Specified by:
clearin interfaceMutableCharValuesMap
-
put
public void put(char key, char value)- Specified by:
putin interfaceMutableCharCharMap
-
putAll
public void putAll(CharCharMap map)
- Specified by:
putAllin interfaceMutableCharCharMap
-
updateValues
public void updateValues(CharCharToCharFunction function)
- 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
public char getIfAbsentPut(char key, CharFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableCharCharMap
-
getIfAbsentPutWith
public <P> char getIfAbsentPutWith(char key, CharFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableCharCharMap
-
getIfAbsentPutWithKey
public char getIfAbsentPutWithKey(char key, CharToCharFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableCharCharMap
-
addToValue
public char addToValue(char key, char toBeAdded)- Specified by:
addToValuein interfaceMutableCharCharMap
-
updateValue
public char updateValue(char key, char initialValueIfAbsent, CharToCharFunction function)- Specified by:
updateValuein interfaceMutableCharCharMap
-
withKeyValue
public CharCharHashMap withKeyValue(char key1, char value1)
- Specified by:
withKeyValuein interfaceMutableCharCharMap
-
withKeysValues
public CharCharHashMap withKeysValues(char key1, char value1, char key2, char value2)
-
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
public CharCharHashMap withoutKey(char key)
- Specified by:
withoutKeyin interfaceMutableCharCharMap
-
withoutAllKeys
public CharCharHashMap withoutAllKeys(CharIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableCharCharMap
-
asUnmodifiable
public MutableCharCharMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableCharCharMap
-
asSynchronized
public MutableCharCharMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableCharCharMap
-
toImmutable
public ImmutableCharCharMap 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
public void forEachKey(CharProcedure procedure)
- Specified by:
forEachKeyin interfaceCharCharMap- Specified by:
forEachKeyin interfaceCharKeysMap
-
forEachKeyValue
public void forEachKeyValue(CharCharProcedure procedure)
- Specified by:
forEachKeyValuein interfaceCharCharMap
-
keysView
public LazyCharIterable keysView()
- Specified by:
keysViewin interfaceCharCharMap
-
keyValuesView
public RichIterable<CharCharPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceCharCharMap
-
flipUniqueValues
public MutableCharCharMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceCharCharMap- Specified by:
flipUniqueValuesin interfaceMutableCharCharMap
-
select
public CharCharHashMap select(CharCharPredicate predicate)
- Specified by:
selectin interfaceCharCharMap- Specified by:
selectin interfaceMutableCharCharMap
-
reject
public CharCharHashMap reject(CharCharPredicate predicate)
- Specified by:
rejectin interfaceCharCharMap- Specified by:
rejectin interfaceMutableCharCharMap
-
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 MutableCharSet keySet()
- Specified by:
keySetin interfaceCharCharMap
-
values
public MutableCharCollection values()
- Specified by:
valuesin interfaceCharValuesMap
-
-