Class ObjectShortHashMapWithHashingStrategy<K>
java.lang.Object
org.eclipse.collections.impl.map.mutable.primitive.ObjectShortHashMapWithHashingStrategy<K>
- All Implemented Interfaces:
Externalizable,Serializable,MutableObjectShortMap<K>,ObjectShortMap<K>,PrimitiveIterable,ShortIterable
public class ObjectShortHashMapWithHashingStrategy<K>
extends Object
implements MutableObjectShortMap<K>, Externalizable
This file was automatically generated from template file objectPrimitiveHashMapWithHashingStrategy.stg.
- Since:
- 7.0.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Use ObjectShortHashMapWithHashingStrategy(HashingStrategy) instead.ObjectShortHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy) ObjectShortHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy, int initialCapacity) ObjectShortHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy, ObjectShortMap<? extends K> map) -
Method Summary
Modifier and TypeMethodDescriptionshortaddToValue(K key, short toBeAdded) booleanallSatisfy(ShortPredicate predicate) booleanallSatisfyKeyValue(ObjectShortPredicate<K> predicate) booleananySatisfy(ShortPredicate 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(ShortToObjectFunction<? extends V> function) voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontains(short value) booleancontainsAll(short... source) booleancontainsAll(ShortIterable source) booleancontainsKey(Object key) booleancontainsValue(short value) intcount(ShortPredicate predicate) shortdetectIfNone(ShortPredicate predicate, short ifNone) voideach(ShortProcedure procedure) booleanvoidforEachKey(Procedure<? super K> procedure) voidforEachKeyValue(ObjectShortProcedure<? super K> procedure) voidforEachValue(ShortProcedure procedure) shortshortshortgetIfAbsent(Object key, short ifAbsent) shortgetIfAbsentPut(K key, short value) shortgetIfAbsentPut(K key, ShortFunction0 function) <P> shortgetIfAbsentPutWith(K key, ShortFunction<? super P> function, P parameter) shortgetIfAbsentPutWithKey(K key, ShortFunction<? super K> function) shortgetOrThrow(Object key) inthashCode()<V> VinjectInto(V injectedValue, ObjectShortToObjectFunction<? super V, ? extends V> function) booleanisEmpty()keySet()keysView()makeString(String separator) makeString(String start, String separator, String end) shortmax()shortmaxIfEmpty(short defaultValue) doublemedian()shortmin()shortminIfEmpty(short defaultValue) static <K> ObjectShortHashMapWithHashingStrategy<K>newMap(HashingStrategy<? super K> hashingStrategy) static <K> ObjectShortHashMapWithHashingStrategy<K>newMap(HashingStrategy<? super K> hashingStrategy, ObjectShortMap<K> map) static <K> ObjectShortHashMapWithHashingStrategy<K>static <K> ObjectShortHashMapWithHashingStrategy<K>newMapWithInitialCapacity(HashingStrategy<? super K> hashingStrategy, int initialCapacity) static <K> ObjectShortHashMapWithHashingStrategy<K>newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, short value1) static <K> ObjectShortHashMapWithHashingStrategy<K>newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, short value1, K key2, short value2) static <K> ObjectShortHashMapWithHashingStrategy<K>newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, short value1, K key2, short value2, K key3, short value3) static <K> ObjectShortHashMapWithHashingStrategy<K>newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, short value1, K key2, short value2, K key3, short value3, K key4, short value4) booleannoneSatisfy(ShortPredicate predicate) booleannotEmpty()voidvoidputAll(ObjectShortMap<? extends K> map) voidreject(ObjectShortPredicate<? super K> predicate) reject(ShortPredicate predicate) voidvoidvoidremoveKeyAtIndex(K key, int index) shortremoveKeyIfAbsent(K key, short value) select(ObjectShortPredicate<? super K> predicate) select(ShortPredicate predicate) intsize()longsum()short[]toArray()short[]toArray(short[] target) toBag()toList()toSet()short[]toString()booleanshortupdateValue(K key, short initialValueIfAbsent, ShortToShortFunction function) voidupdateValues(ObjectShortToShortFunction<? super K> function) values()withKeysValues(K key1, short value1, K key2, short value2) withKeysValues(K key1, short value1, K key2, short value2, K key3, short value3) withKeysValues(K key1, short value1, K key2, short value2, K key3, short value3, K key4, short value4) withKeyValue(K key1, short value1) withoutAllKeys(Iterable<? extends K> keys) withoutKey(K key) voidMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableObjectShortMap
putPair, tap, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.map.primitive.ObjectShortMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.api.ShortIterable
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, toSortedListBy
-
Field Details
-
EMPTY_VALUE
public static final short EMPTY_VALUE- See Also:
-
-
Constructor Details
-
ObjectShortHashMapWithHashingStrategy
Deprecated.Use ObjectShortHashMapWithHashingStrategy(HashingStrategy) instead. -
ObjectShortHashMapWithHashingStrategy
-
ObjectShortHashMapWithHashingStrategy
public ObjectShortHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy, int initialCapacity) -
ObjectShortHashMapWithHashingStrategy
public ObjectShortHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy, ObjectShortMap<? extends K> map)
-
-
Method Details
-
newMap
public static <K> ObjectShortHashMapWithHashingStrategy<K> newMap(HashingStrategy<? super K> hashingStrategy) -
newMap
public static <K> ObjectShortHashMapWithHashingStrategy<K> newMap(HashingStrategy<? super K> hashingStrategy, ObjectShortMap<K> map) -
newMap
public static <K> ObjectShortHashMapWithHashingStrategy<K> newMap(ObjectShortHashMapWithHashingStrategy<K> map) -
newMapWithInitialCapacity
public static <K> ObjectShortHashMapWithHashingStrategy<K> newMapWithInitialCapacity(HashingStrategy<? super K> hashingStrategy, int initialCapacity) -
newWithKeysValues
public static <K> ObjectShortHashMapWithHashingStrategy<K> newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, short value1) -
newWithKeysValues
public static <K> ObjectShortHashMapWithHashingStrategy<K> newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, short value1, K key2, short value2) -
newWithKeysValues
public static <K> ObjectShortHashMapWithHashingStrategy<K> newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, short value1, K key2, short value2, K key3, short value3) -
newWithKeysValues
public static <K> ObjectShortHashMapWithHashingStrategy<K> newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, short value1, K key2, short value2, K key3, short value3, K key4, short value4) -
equals
-
hashCode
public int hashCode() -
toString
- Specified by:
toStringin interfaceObjectShortMap<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
-
shortIterator
- Specified by:
shortIteratorin interfaceMutableObjectShortMap<K>- Specified by:
shortIteratorin interfaceShortIterable
-
toArray
public short[] toArray()- Specified by:
toArrayin interfaceShortIterable
-
toArray
public short[] toArray(short[] target) - Specified by:
toArrayin interfaceShortIterable
-
contains
public boolean contains(short value) - Specified by:
containsin interfaceShortIterable
-
containsAll
public boolean containsAll(short... source) - Specified by:
containsAllin interfaceShortIterable
-
containsAll
- Specified by:
containsAllin interfaceShortIterable
-
clear
public void clear()- Specified by:
clearin interfaceMutableObjectShortMap<K>
-
put
- Specified by:
putin interfaceMutableObjectShortMap<K>
-
putAll
- Specified by:
putAllin interfaceMutableObjectShortMap<K>
-
updateValues
- Specified by:
updateValuesin interfaceMutableObjectShortMap<K>
-
removeKey
- Specified by:
removeKeyin interfaceMutableObjectShortMap<K>
-
removeKeyAtIndex
-
remove
- Specified by:
removein interfaceMutableObjectShortMap<K>
-
removeKeyIfAbsent
- Specified by:
removeKeyIfAbsentin interfaceMutableObjectShortMap<K>
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableObjectShortMap<K>
-
getAndPut
- Specified by:
getAndPutin interfaceMutableObjectShortMap<K>
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableObjectShortMap<K>
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableObjectShortMap<K>
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableObjectShortMap<K>
-
updateValue
- Specified by:
updateValuein interfaceMutableObjectShortMap<K>
-
addToValue
- Specified by:
addToValuein interfaceMutableObjectShortMap<K>
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableObjectShortMap<K>
-
withKeysValues
public ObjectShortHashMapWithHashingStrategy<K> withKeysValues(K key1, short value1, K key2, short value2) -
withKeysValues
public ObjectShortHashMapWithHashingStrategy<K> withKeysValues(K key1, short value1, K key2, short value2, K key3, short value3) -
withKeysValues
-
withoutKey
- Specified by:
withoutKeyin interfaceMutableObjectShortMap<K>
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableObjectShortMap<K>
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableObjectShortMap<K>
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableObjectShortMap<K>
-
toImmutable
- Specified by:
toImmutablein interfaceObjectShortMap<K>
-
get
- Specified by:
getin interfaceObjectShortMap<K>
-
getOrThrow
- Specified by:
getOrThrowin interfaceObjectShortMap<K>
-
getIfAbsent
- Specified by:
getIfAbsentin interfaceObjectShortMap<K>
-
containsKey
- Specified by:
containsKeyin interfaceObjectShortMap<K>
-
containsValue
public boolean containsValue(short value) - Specified by:
containsValuein interfaceObjectShortMap<K>
-
each
- Specified by:
eachin interfaceShortIterable
-
forEachValue
- Specified by:
forEachValuein interfaceObjectShortMap<K>
-
forEachKey
- Specified by:
forEachKeyin interfaceObjectShortMap<K>
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceObjectShortMap<K>
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceObjectShortMap<K>- Since:
- 12.0
-
select
- Specified by:
selectin interfaceMutableObjectShortMap<K>- Specified by:
selectin interfaceObjectShortMap<K>
-
reject
- Specified by:
rejectin interfaceMutableObjectShortMap<K>- Specified by:
rejectin interfaceObjectShortMap<K>
-
select
- Specified by:
selectin interfaceMutableObjectShortMap<K>- Specified by:
selectin interfaceShortIterable
-
reject
- Specified by:
rejectin interfaceMutableObjectShortMap<K>- Specified by:
rejectin interfaceShortIterable
-
detectIfNone
- Specified by:
detectIfNonein interfaceShortIterable
-
collect
- Specified by:
collectin interfaceMutableObjectShortMap<K>- Specified by:
collectin interfaceShortIterable
-
count
- Specified by:
countin interfaceShortIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceShortIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceShortIterable
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceShortIterable
-
injectInto
public <V> V injectInto(V injectedValue, ObjectShortToObjectFunction<? super V, ? extends V> function) - Specified by:
injectIntoin interfaceShortIterable
-
chunk
- Specified by:
chunkin interfaceShortIterable
-
sum
public long sum()- Specified by:
sumin interfaceShortIterable
-
max
public short max()- Specified by:
maxin interfaceShortIterable
-
min
public short min()- Specified by:
minin interfaceShortIterable
-
maxIfEmpty
public short maxIfEmpty(short defaultValue) - Specified by:
maxIfEmptyin interfaceShortIterable
-
minIfEmpty
public short minIfEmpty(short defaultValue) - Specified by:
minIfEmptyin interfaceShortIterable
-
average
public double average()- Specified by:
averagein interfaceShortIterable
-
median
public double median()- Specified by:
medianin interfaceShortIterable
-
toList
- Specified by:
toListin interfaceShortIterable
-
toSet
- Specified by:
toSetin interfaceShortIterable
-
toBag
- Specified by:
toBagin interfaceShortIterable
-
asLazy
- Specified by:
asLazyin interfaceShortIterable
-
toSortedArray
public short[] toSortedArray()- Specified by:
toSortedArrayin interfaceShortIterable
-
toSortedList
- Specified by:
toSortedListin interfaceShortIterable
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
keysView
- Specified by:
keysViewin interfaceObjectShortMap<K>
-
keyValuesView
- Specified by:
keyValuesViewin interfaceObjectShortMap<K>
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceMutableObjectShortMap<K>- Specified by:
flipUniqueValuesin interfaceObjectShortMap<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 interfaceObjectShortMap<K>
-
values
- Specified by:
valuesin interfaceObjectShortMap<K>
-