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