Class ObjectCharHashMapWithHashingStrategy<K>
java.lang.Object
org.eclipse.collections.impl.map.mutable.primitive.ObjectCharHashMapWithHashingStrategy<K>
- All Implemented Interfaces:
Externalizable,Serializable,CharIterable,MutableObjectCharMap<K>,ObjectCharMap<K>,PrimitiveIterable
public class ObjectCharHashMapWithHashingStrategy<K>
extends Object
implements MutableObjectCharMap<K>, Externalizable
This file was automatically generated from template file objectPrimitiveHashMapWithHashingStrategy.stg.
- Since:
- 7.0.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Use ObjectCharHashMapWithHashingStrategy(HashingStrategy) instead.ObjectCharHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy) ObjectCharHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy, int initialCapacity) ObjectCharHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy, ObjectCharMap<? extends K> map) -
Method Summary
Modifier and TypeMethodDescriptioncharaddToValue(K key, char toBeAdded) booleanallSatisfy(CharPredicate predicate) booleanallSatisfyKeyValue(ObjectCharPredicate<K> predicate) booleananySatisfy(CharPredicate predicate) voidappendString(Appendable appendable) voidappendString(Appendable appendable, String separator) voidappendString(Appendable appendable, String start, String separator, String end) asLazy()doubleaverage()chunk(int size) voidclear()<V> MutableCollection<V>collect(CharToObjectFunction<? extends V> function) voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontains(char value) booleancontainsAll(char... source) booleancontainsAll(CharIterable source) booleancontainsKey(Object key) booleancontainsValue(char value) intcount(CharPredicate predicate) chardetectIfNone(CharPredicate predicate, char ifNone) voideach(CharProcedure procedure) booleanvoidforEachKey(Procedure<? super K> procedure) voidforEachKeyValue(ObjectCharProcedure<? super K> procedure) voidforEachValue(CharProcedure procedure) charcharchargetIfAbsent(Object key, char ifAbsent) chargetIfAbsentPut(K key, char value) chargetIfAbsentPut(K key, CharFunction0 function) <P> chargetIfAbsentPutWith(K key, CharFunction<? super P> function, P parameter) chargetIfAbsentPutWithKey(K key, CharFunction<? super K> function) chargetOrThrow(Object key) inthashCode()<V> VinjectInto(V injectedValue, ObjectCharToObjectFunction<? super V, ? extends V> function) booleanisEmpty()keySet()keysView()makeString(String separator) makeString(String start, String separator, String end) charmax()charmaxIfEmpty(char defaultValue) doublemedian()charmin()charminIfEmpty(char defaultValue) static <K> ObjectCharHashMapWithHashingStrategy<K>newMap(HashingStrategy<? super K> hashingStrategy) static <K> ObjectCharHashMapWithHashingStrategy<K>newMap(HashingStrategy<? super K> hashingStrategy, ObjectCharMap<K> map) static <K> ObjectCharHashMapWithHashingStrategy<K>static <K> ObjectCharHashMapWithHashingStrategy<K>newMapWithInitialCapacity(HashingStrategy<? super K> hashingStrategy, int initialCapacity) static <K> ObjectCharHashMapWithHashingStrategy<K>newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, char value1) static <K> ObjectCharHashMapWithHashingStrategy<K>newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, char value1, K key2, char value2) static <K> ObjectCharHashMapWithHashingStrategy<K>newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, char value1, K key2, char value2, K key3, char value3) static <K> ObjectCharHashMapWithHashingStrategy<K>newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, char value1, K key2, char value2, K key3, char value3, K key4, char value4) booleannoneSatisfy(CharPredicate predicate) booleannotEmpty()voidvoidputAll(ObjectCharMap<? extends K> map) voidreject(CharPredicate predicate) reject(ObjectCharPredicate<? super K> predicate) voidvoidvoidremoveKeyAtIndex(K key, int index) charremoveKeyIfAbsent(K key, char value) select(CharPredicate predicate) select(ObjectCharPredicate<? super K> predicate) intsize()longsum()char[]toArray()char[]toArray(char[] target) toBag()toList()toSet()char[]toString()booleancharupdateValue(K key, char initialValueIfAbsent, CharToCharFunction function) voidupdateValues(ObjectCharToCharFunction<? super K> function) values()withKeysValues(K key1, char value1, K key2, char value2) withKeysValues(K key1, char value1, K key2, char value2, K key3, char value3) withKeysValues(K key1, char value1, K key2, char value2, K key3, char value3, K key4, char value4) withKeyValue(K key1, char value1) withoutAllKeys(Iterable<? extends K> keys) withoutKey(K key) voidMethods inherited from interface org.eclipse.collections.api.CharIterable
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAny, containsAny, containsNone, containsNone, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics, toSortedList, toSortedListBy, toSortedListByMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableObjectCharMap
putPair, tap, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.map.primitive.ObjectCharMap
injectIntoKeyValue
-
Field Details
-
EMPTY_VALUE
public static final char EMPTY_VALUE- See Also:
-
-
Constructor Details
-
ObjectCharHashMapWithHashingStrategy
Deprecated.Use ObjectCharHashMapWithHashingStrategy(HashingStrategy) instead. -
ObjectCharHashMapWithHashingStrategy
-
ObjectCharHashMapWithHashingStrategy
public ObjectCharHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy, int initialCapacity) -
ObjectCharHashMapWithHashingStrategy
public ObjectCharHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy, ObjectCharMap<? extends K> map)
-
-
Method Details
-
newMap
public static <K> ObjectCharHashMapWithHashingStrategy<K> newMap(HashingStrategy<? super K> hashingStrategy) -
newMap
public static <K> ObjectCharHashMapWithHashingStrategy<K> newMap(HashingStrategy<? super K> hashingStrategy, ObjectCharMap<K> map) -
newMap
public static <K> ObjectCharHashMapWithHashingStrategy<K> newMap(ObjectCharHashMapWithHashingStrategy<K> map) -
newMapWithInitialCapacity
public static <K> ObjectCharHashMapWithHashingStrategy<K> newMapWithInitialCapacity(HashingStrategy<? super K> hashingStrategy, int initialCapacity) -
newWithKeysValues
public static <K> ObjectCharHashMapWithHashingStrategy<K> newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, char value1) -
newWithKeysValues
public static <K> ObjectCharHashMapWithHashingStrategy<K> newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, char value1, K key2, char value2) -
newWithKeysValues
public static <K> ObjectCharHashMapWithHashingStrategy<K> newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, char value1, K key2, char value2, K key3, char value3) -
newWithKeysValues
public static <K> ObjectCharHashMapWithHashingStrategy<K> newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, char value1, K key2, char value2, K key3, char value3, K key4, char value4) -
equals
-
hashCode
public int hashCode() -
toString
- Specified by:
toStringin interfaceObjectCharMap<K>- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
size
public int size()- Specified by:
sizein interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()- Specified by:
notEmptyin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
charIterator
- Specified by:
charIteratorin interfaceCharIterable- Specified by:
charIteratorin interfaceMutableObjectCharMap<K>
-
toArray
public char[] toArray()- Specified by:
toArrayin interfaceCharIterable
-
toArray
public char[] toArray(char[] target) - Specified by:
toArrayin interfaceCharIterable
-
contains
public boolean contains(char value) - Specified by:
containsin interfaceCharIterable
-
containsAll
public boolean containsAll(char... source) - Specified by:
containsAllin interfaceCharIterable
-
containsAll
- Specified by:
containsAllin interfaceCharIterable
-
clear
public void clear()- Specified by:
clearin interfaceMutableObjectCharMap<K>
-
put
- Specified by:
putin interfaceMutableObjectCharMap<K>
-
putAll
- Specified by:
putAllin interfaceMutableObjectCharMap<K>
-
updateValues
- Specified by:
updateValuesin interfaceMutableObjectCharMap<K>
-
removeKey
- Specified by:
removeKeyin interfaceMutableObjectCharMap<K>
-
removeKeyAtIndex
-
remove
- Specified by:
removein interfaceMutableObjectCharMap<K>
-
removeKeyIfAbsent
- Specified by:
removeKeyIfAbsentin interfaceMutableObjectCharMap<K>
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableObjectCharMap<K>
-
getAndPut
- Specified by:
getAndPutin interfaceMutableObjectCharMap<K>
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableObjectCharMap<K>
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableObjectCharMap<K>
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableObjectCharMap<K>
-
updateValue
- Specified by:
updateValuein interfaceMutableObjectCharMap<K>
-
addToValue
- Specified by:
addToValuein interfaceMutableObjectCharMap<K>
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableObjectCharMap<K>
-
withKeysValues
public ObjectCharHashMapWithHashingStrategy<K> withKeysValues(K key1, char value1, K key2, char value2) -
withKeysValues
public ObjectCharHashMapWithHashingStrategy<K> withKeysValues(K key1, char value1, K key2, char value2, K key3, char value3) -
withKeysValues
-
withoutKey
- Specified by:
withoutKeyin interfaceMutableObjectCharMap<K>
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableObjectCharMap<K>
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableObjectCharMap<K>
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableObjectCharMap<K>
-
toImmutable
- Specified by:
toImmutablein interfaceObjectCharMap<K>
-
get
- Specified by:
getin interfaceObjectCharMap<K>
-
getOrThrow
- Specified by:
getOrThrowin interfaceObjectCharMap<K>
-
getIfAbsent
- Specified by:
getIfAbsentin interfaceObjectCharMap<K>
-
containsKey
- Specified by:
containsKeyin interfaceObjectCharMap<K>
-
containsValue
public boolean containsValue(char value) - Specified by:
containsValuein interfaceObjectCharMap<K>
-
each
- Specified by:
eachin interfaceCharIterable
-
forEachValue
- Specified by:
forEachValuein interfaceObjectCharMap<K>
-
forEachKey
- Specified by:
forEachKeyin interfaceObjectCharMap<K>
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceObjectCharMap<K>
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceObjectCharMap<K>- Since:
- 12.0
-
select
- Specified by:
selectin interfaceMutableObjectCharMap<K>- Specified by:
selectin interfaceObjectCharMap<K>
-
reject
- Specified by:
rejectin interfaceMutableObjectCharMap<K>- Specified by:
rejectin interfaceObjectCharMap<K>
-
select
- Specified by:
selectin interfaceCharIterable- Specified by:
selectin interfaceMutableObjectCharMap<K>
-
reject
- Specified by:
rejectin interfaceCharIterable- Specified by:
rejectin interfaceMutableObjectCharMap<K>
-
detectIfNone
- Specified by:
detectIfNonein interfaceCharIterable
-
collect
- Specified by:
collectin interfaceCharIterable- Specified by:
collectin interfaceMutableObjectCharMap<K>
-
count
- Specified by:
countin interfaceCharIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceCharIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceCharIterable
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceCharIterable
-
injectInto
public <V> V injectInto(V injectedValue, ObjectCharToObjectFunction<? super V, ? extends V> function) - Specified by:
injectIntoin interfaceCharIterable
-
chunk
- Specified by:
chunkin interfaceCharIterable
-
sum
public long sum()- Specified by:
sumin interfaceCharIterable
-
max
public char max()- Specified by:
maxin interfaceCharIterable
-
min
public char min()- Specified by:
minin interfaceCharIterable
-
maxIfEmpty
public char maxIfEmpty(char defaultValue) - Specified by:
maxIfEmptyin interfaceCharIterable
-
minIfEmpty
public char minIfEmpty(char defaultValue) - Specified by:
minIfEmptyin interfaceCharIterable
-
average
public double average()- Specified by:
averagein interfaceCharIterable
-
median
public double median()- Specified by:
medianin interfaceCharIterable
-
toList
- Specified by:
toListin interfaceCharIterable
-
toSet
- Specified by:
toSetin interfaceCharIterable
-
toBag
- Specified by:
toBagin interfaceCharIterable
-
asLazy
- Specified by:
asLazyin interfaceCharIterable
-
toSortedArray
public char[] toSortedArray()- Specified by:
toSortedArrayin interfaceCharIterable
-
toSortedList
- Specified by:
toSortedListin interfaceCharIterable
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
keysView
- Specified by:
keysViewin interfaceObjectCharMap<K>
-
keyValuesView
- Specified by:
keyValuesViewin interfaceObjectCharMap<K>
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceMutableObjectCharMap<K>- Specified by:
flipUniqueValuesin interfaceObjectCharMap<K>
-
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 interfaceObjectCharMap<K>
-
values
- Specified by:
valuesin interfaceObjectCharMap<K>
-