Class CharShortHashMap
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractShortIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableShortValuesMap
org.eclipse.collections.impl.map.mutable.primitive.CharShortHashMap
- All Implemented Interfaces:
Externalizable,Serializable,CharShortMap,MutableCharShortMap,MutableShortValuesMap,ShortValuesMap,PrimitiveIterable,ShortIterable,MutableCharKeysMap,CharKeysMap
public class CharShortHashMap
extends AbstractMutableShortValuesMap
implements MutableCharShortMap, Externalizable, MutableCharKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionshortaddToValue(char key, short toBeAdded) booleanallSatisfyKeyValue(CharShortPredicate predicate) voidclear()voidcompact()Deprecated.booleancontainsKey(char key) booleanvoidforEachKey(CharProcedure procedure) voidforEachKeyValue(CharShortProcedure procedure) shortget(char key) shortgetAndPut(char key, short putValue, short defaultValue) shortgetIfAbsent(char key, short ifAbsent) shortgetIfAbsentPut(char key, short value) shortgetIfAbsentPut(char key, ShortFunction0 function) <P> shortgetIfAbsentPutWith(char key, ShortFunction<? super P> function, P parameter) shortgetIfAbsentPutWithKey(char key, CharToShortFunction function) shortgetOrThrow(char key) inthashCode()<V> VinjectInto(V injectedValue, ObjectShortToObjectFunction<? super V, ? extends V> function) keySet()keysView()static CharShortHashMapnewWithKeysValues(char key1, short value1) static CharShortHashMapnewWithKeysValues(char key1, short value1, char key2, short value2) static CharShortHashMapnewWithKeysValues(char key1, short value1, char key2, short value2, char key3, short value3) static CharShortHashMapnewWithKeysValues(char key1, short value1, char key2, short value2, char key3, short value3, char key4, short value4) voidput(char key, short value) voidputAll(CharShortMap map) voidreject(CharShortPredicate predicate) voidremove(char key) voidremoveKey(char key) shortremoveKeyIfAbsent(char key, short value) select(CharShortPredicate predicate) toString()booleanshortupdateValue(char key, short initialValueIfAbsent, ShortToShortFunction function) voidupdateValues(CharShortToShortFunction function) values()withKeysValues(char key1, short value1, char key2, short value2) withKeysValues(char key1, short value1, char key2, short value2, char key3, short value3) withKeysValues(char key1, short value1, char key2, short value2, char key3, short value3, char key4, short value4) withKeyValue(char key1, short value1) withoutAllKeys(CharIterable keys) withoutKey(char key) voidMethods inherited from class org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableShortValuesMap
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.AbstractShortIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListMethods inherited from interface org.eclipse.collections.impl.map.primitive.CharKeysMap
isEmpty, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.map.primitive.CharShortMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableCharShortMap
putPair, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableShortValuesMap
collect, reject, selectMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.ShortIterable
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.ShortValuesMap
containsValue, forEachValue, tap
-
Constructor Details
-
CharShortHashMap
public CharShortHashMap() -
CharShortHashMap
public CharShortHashMap(int initialCapacity) -
CharShortHashMap
-
-
Method Details
-
newWithKeysValues
-
newWithKeysValues
-
newWithKeysValues
public static CharShortHashMap newWithKeysValues(char key1, short value1, char key2, short value2, char key3, short value3) -
newWithKeysValues
public static CharShortHashMap newWithKeysValues(char key1, short value1, char key2, short value2, char key3, short value3, char key4, short value4) -
equals
- Specified by:
equalsin interfaceCharShortMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCharShortMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceCharShortMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractShortIterable
-
shortIterator
- Specified by:
shortIteratorin interfaceMutableShortValuesMap- Specified by:
shortIteratorin interfaceShortIterable
-
injectInto
public <V> V injectInto(V injectedValue, ObjectShortToObjectFunction<? super V, ? extends V> function) - Specified by:
injectIntoin interfaceShortIterable
-
clear
public void clear()- Specified by:
clearin interfaceMutableCharKeysMap- Specified by:
clearin interfaceMutableShortValuesMap
-
put
public void put(char key, short value) - Specified by:
putin interfaceMutableCharShortMap
-
putAll
- Specified by:
putAllin interfaceMutableCharShortMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableCharShortMap
-
removeKey
public void removeKey(char key) - Specified by:
removeKeyin interfaceMutableCharKeysMap- Specified by:
removeKeyin interfaceMutableCharShortMap
-
remove
public void remove(char key) - Specified by:
removein interfaceMutableCharShortMap
-
removeKeyIfAbsent
public short removeKeyIfAbsent(char key, short value) - Specified by:
removeKeyIfAbsentin interfaceMutableCharShortMap
-
getIfAbsentPut
public short getIfAbsentPut(char key, short value) - Specified by:
getIfAbsentPutin interfaceMutableCharShortMap
-
getAndPut
public short getAndPut(char key, short putValue, short defaultValue) - Specified by:
getAndPutin interfaceMutableCharShortMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableCharShortMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableCharShortMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableCharShortMap
-
addToValue
public short addToValue(char key, short toBeAdded) - Specified by:
addToValuein interfaceMutableCharShortMap
-
updateValue
- Specified by:
updateValuein interfaceMutableCharShortMap
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableCharShortMap
-
withKeysValues
-
withKeysValues
public CharShortHashMap withKeysValues(char key1, short value1, char key2, short value2, char key3, short value3) -
withKeysValues
public CharShortHashMap withKeysValues(char key1, short value1, char key2, short value2, char key3, short value3, char key4, short value4) -
withoutKey
- Specified by:
withoutKeyin interfaceMutableCharShortMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableCharShortMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableCharShortMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableCharShortMap
-
toImmutable
- Specified by:
toImmutablein interfaceCharShortMap
-
get
public short get(char key) - Specified by:
getin interfaceCharShortMap
-
getIfAbsent
public short getIfAbsent(char key, short ifAbsent) - Specified by:
getIfAbsentin interfaceCharShortMap
-
getOrThrow
public short getOrThrow(char key) - Specified by:
getOrThrowin interfaceCharShortMap
-
containsKey
public boolean containsKey(char key) - Specified by:
containsKeyin interfaceCharKeysMap- Specified by:
containsKeyin interfaceCharShortMap
-
forEachKey
- Specified by:
forEachKeyin interfaceCharKeysMap- Specified by:
forEachKeyin interfaceCharShortMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceCharShortMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceCharShortMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceCharShortMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceCharShortMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceCharShortMap- Specified by:
flipUniqueValuesin interfaceMutableCharShortMap
-
select
- Specified by:
selectin interfaceCharShortMap- Specified by:
selectin interfaceMutableCharShortMap
-
reject
- Specified by:
rejectin interfaceCharShortMap- Specified by:
rejectin interfaceMutableCharShortMap
-
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 interfaceCharShortMap
-
values
- Specified by:
valuesin interfaceShortValuesMap
-
trimToSize()instead