public class ObjectShortHashMapWithHashingStrategy<K> extends Object implements org.eclipse.collections.api.map.primitive.MutableObjectShortMap<K>, Externalizable
| Modifier and Type | Field and Description |
|---|---|
static short |
EMPTY_VALUE |
| Constructor and Description |
|---|
ObjectShortHashMapWithHashingStrategy()
Deprecated.
|
ObjectShortHashMapWithHashingStrategy(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy) |
ObjectShortHashMapWithHashingStrategy(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy,
int initialCapacity) |
ObjectShortHashMapWithHashingStrategy(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy,
org.eclipse.collections.api.map.primitive.ObjectShortMap<? extends K> map) |
| Modifier and Type | Method and Description |
|---|---|
short |
addToValue(K key,
short toBeAdded) |
boolean |
allSatisfy(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate) |
boolean |
anySatisfy(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate) |
void |
appendString(Appendable appendable) |
void |
appendString(Appendable appendable,
String separator) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
org.eclipse.collections.api.LazyShortIterable |
asLazy() |
org.eclipse.collections.api.map.primitive.MutableObjectShortMap<K> |
asSynchronized() |
org.eclipse.collections.api.map.primitive.MutableObjectShortMap<K> |
asUnmodifiable() |
double |
average() |
void |
clear() |
<V> org.eclipse.collections.api.collection.MutableCollection<V> |
collect(org.eclipse.collections.api.block.function.primitive.ShortToObjectFunction<? extends V> function) |
void |
compact()
Rehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels.
|
boolean |
contains(short value) |
boolean |
containsAll(short... source) |
boolean |
containsAll(org.eclipse.collections.api.ShortIterable source) |
boolean |
containsKey(Object key) |
boolean |
containsValue(short value) |
int |
count(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate) |
short |
detectIfNone(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate,
short ifNone) |
void |
each(org.eclipse.collections.api.block.procedure.primitive.ShortProcedure procedure) |
boolean |
equals(Object obj) |
void |
forEach(org.eclipse.collections.api.block.procedure.primitive.ShortProcedure procedure) |
void |
forEachKey(org.eclipse.collections.api.block.procedure.Procedure<? super K> procedure) |
void |
forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ObjectShortProcedure<? super K> procedure) |
void |
forEachValue(org.eclipse.collections.api.block.procedure.primitive.ShortProcedure procedure) |
short |
get(Object key) |
short |
getIfAbsent(Object key,
short ifAbsent) |
short |
getIfAbsentPut(K key,
short value) |
short |
getIfAbsentPut(K key,
org.eclipse.collections.api.block.function.primitive.ShortFunction0 function) |
<P> short |
getIfAbsentPutWith(K key,
org.eclipse.collections.api.block.function.primitive.ShortFunction<? super P> function,
P parameter) |
short |
getIfAbsentPutWithKey(K key,
org.eclipse.collections.api.block.function.primitive.ShortFunction<? super K> function) |
short |
getOrThrow(Object key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectShortToObjectFunction<? super V,? extends V> function) |
boolean |
isEmpty() |
Set<K> |
keySet() |
org.eclipse.collections.api.LazyIterable<K> |
keysView() |
org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.ObjectShortPair<K>> |
keyValuesView() |
String |
makeString() |
String |
makeString(String separator) |
String |
makeString(String start,
String separator,
String end) |
short |
max() |
short |
maxIfEmpty(short defaultValue) |
double |
median() |
short |
min() |
short |
minIfEmpty(short defaultValue) |
static <K> ObjectShortHashMapWithHashingStrategy<K> |
newMap(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy) |
static <K> ObjectShortHashMapWithHashingStrategy<K> |
newMap(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy,
org.eclipse.collections.api.map.primitive.ObjectShortMap<K> map) |
static <K> ObjectShortHashMapWithHashingStrategy<K> |
newMap(ObjectShortHashMapWithHashingStrategy<K> map) |
static <K> ObjectShortHashMapWithHashingStrategy<K> |
newWithKeysValues(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy,
K key1,
short value1) |
static <K> ObjectShortHashMapWithHashingStrategy<K> |
newWithKeysValues(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy,
K key1,
short value1,
K key2,
short value2) |
static <K> ObjectShortHashMapWithHashingStrategy<K> |
newWithKeysValues(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy,
K key1,
short value1,
K key2,
short value2,
K key3,
short value3) |
static <K> ObjectShortHashMapWithHashingStrategy<K> |
newWithKeysValues(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy,
K key1,
short value1,
K key2,
short value2,
K key3,
short value3,
K key4,
short value4) |
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate) |
boolean |
notEmpty() |
void |
put(K key,
short value) |
void |
putAll(org.eclipse.collections.api.map.primitive.ObjectShortMap<? extends K> map) |
void |
readExternal(ObjectInput in) |
ObjectShortHashMapWithHashingStrategy<K> |
reject(org.eclipse.collections.api.block.predicate.primitive.ObjectShortPredicate<? super K> predicate) |
org.eclipse.collections.api.collection.primitive.MutableShortCollection |
reject(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate) |
void |
remove(Object key) |
void |
removeKey(K key) |
void |
removeKeyAtIndex(K key,
int index) |
short |
removeKeyIfAbsent(K key,
short value) |
ObjectShortHashMapWithHashingStrategy<K> |
select(org.eclipse.collections.api.block.predicate.primitive.ObjectShortPredicate<? super K> predicate) |
org.eclipse.collections.api.collection.primitive.MutableShortCollection |
select(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate) |
org.eclipse.collections.api.iterator.MutableShortIterator |
shortIterator() |
int |
size() |
long |
sum() |
short[] |
toArray() |
org.eclipse.collections.api.bag.primitive.MutableShortBag |
toBag() |
org.eclipse.collections.api.map.primitive.ImmutableObjectShortMap<K> |
toImmutable() |
org.eclipse.collections.api.list.primitive.MutableShortList |
toList() |
org.eclipse.collections.api.set.primitive.MutableShortSet |
toSet() |
short[] |
toSortedArray() |
org.eclipse.collections.api.list.primitive.MutableShortList |
toSortedList() |
String |
toString() |
short |
updateValue(K key,
short initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.ShortToShortFunction function) |
org.eclipse.collections.api.collection.primitive.MutableShortCollection |
values() |
ObjectShortHashMapWithHashingStrategy<K> |
withKeysValues(K key1,
short value1,
K key2,
short value2) |
ObjectShortHashMapWithHashingStrategy<K> |
withKeysValues(K key1,
short value1,
K key2,
short value2,
K key3,
short value3) |
ObjectShortHashMapWithHashingStrategy<K> |
withKeysValues(K key1,
short value1,
K key2,
short value2,
K key3,
short value3,
K key4,
short value4) |
ObjectShortHashMapWithHashingStrategy<K> |
withKeyValue(K key1,
short value1) |
ObjectShortHashMapWithHashingStrategy<K> |
withoutAllKeys(Iterable<? extends K> keys) |
ObjectShortHashMapWithHashingStrategy<K> |
withoutKey(K key) |
void |
writeExternal(ObjectOutput out) |
public static final short EMPTY_VALUE
@Deprecated public ObjectShortHashMapWithHashingStrategy()
public ObjectShortHashMapWithHashingStrategy(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy)
public ObjectShortHashMapWithHashingStrategy(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy, int initialCapacity)
public static <K> ObjectShortHashMapWithHashingStrategy<K> newMap(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy)
public static <K> ObjectShortHashMapWithHashingStrategy<K> newMap(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy, org.eclipse.collections.api.map.primitive.ObjectShortMap<K> map)
public static <K> ObjectShortHashMapWithHashingStrategy<K> newMap(ObjectShortHashMapWithHashingStrategy<K> map)
public static <K> ObjectShortHashMapWithHashingStrategy<K> newWithKeysValues(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy, K key1, short value1)
public static <K> ObjectShortHashMapWithHashingStrategy<K> newWithKeysValues(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy, K key1, short value1, K key2, short value2)
public static <K> ObjectShortHashMapWithHashingStrategy<K> newWithKeysValues(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy, K key1, short value1, K key2, short value2, K key3, short value3)
public static <K> ObjectShortHashMapWithHashingStrategy<K> newWithKeysValues(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy, K key1, short value1, K key2, short value2, K key3, short value3, K key4, short value4)
public String toString()
public int size()
size in interface org.eclipse.collections.api.PrimitiveIterablepublic boolean isEmpty()
isEmpty in interface org.eclipse.collections.api.PrimitiveIterablepublic boolean notEmpty()
notEmpty in interface org.eclipse.collections.api.PrimitiveIterablepublic String makeString()
makeString in interface org.eclipse.collections.api.PrimitiveIterablepublic String makeString(String separator)
makeString in interface org.eclipse.collections.api.PrimitiveIterablepublic String makeString(String start, String separator, String end)
makeString in interface org.eclipse.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable, String separator)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic org.eclipse.collections.api.iterator.MutableShortIterator shortIterator()
shortIterator in interface org.eclipse.collections.api.map.primitive.MutableObjectShortMap<K>shortIterator in interface org.eclipse.collections.api.ShortIterablepublic short[] toArray()
toArray in interface org.eclipse.collections.api.ShortIterablepublic boolean contains(short value)
contains in interface org.eclipse.collections.api.ShortIterablepublic boolean containsAll(short... source)
containsAll in interface org.eclipse.collections.api.ShortIterablepublic boolean containsAll(org.eclipse.collections.api.ShortIterable source)
containsAll in interface org.eclipse.collections.api.ShortIterablepublic void clear()
clear in interface org.eclipse.collections.api.map.primitive.MutableObjectShortMap<K>public void put(K key, short value)
put in interface org.eclipse.collections.api.map.primitive.MutableObjectShortMap<K>public void putAll(org.eclipse.collections.api.map.primitive.ObjectShortMap<? extends K> map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableObjectShortMap<K>public void removeKey(K key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableObjectShortMap<K>public void removeKeyAtIndex(K key, int index)
public void remove(Object key)
remove in interface org.eclipse.collections.api.map.primitive.MutableObjectShortMap<K>public short removeKeyIfAbsent(K key, short value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableObjectShortMap<K>public short getIfAbsentPut(K key, short value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableObjectShortMap<K>public short getIfAbsentPut(K key, org.eclipse.collections.api.block.function.primitive.ShortFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableObjectShortMap<K>public <P> short getIfAbsentPutWith(K key, org.eclipse.collections.api.block.function.primitive.ShortFunction<? super P> function, P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableObjectShortMap<K>public short getIfAbsentPutWithKey(K key, org.eclipse.collections.api.block.function.primitive.ShortFunction<? super K> function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableObjectShortMap<K>public short updateValue(K key, short initialValueIfAbsent, org.eclipse.collections.api.block.function.primitive.ShortToShortFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableObjectShortMap<K>public short addToValue(K key, short toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableObjectShortMap<K>public ObjectShortHashMapWithHashingStrategy<K> withKeyValue(K key1, short value1)
withKeyValue in interface org.eclipse.collections.api.map.primitive.MutableObjectShortMap<K>public ObjectShortHashMapWithHashingStrategy<K> withKeysValues(K key1, short value1, K key2, short value2)
public ObjectShortHashMapWithHashingStrategy<K> withKeysValues(K key1, short value1, K key2, short value2, K key3, short value3)
public ObjectShortHashMapWithHashingStrategy<K> withKeysValues(K key1, short value1, K key2, short value2, K key3, short value3, K key4, short value4)
public ObjectShortHashMapWithHashingStrategy<K> withoutKey(K key)
withoutKey in interface org.eclipse.collections.api.map.primitive.MutableObjectShortMap<K>public ObjectShortHashMapWithHashingStrategy<K> withoutAllKeys(Iterable<? extends K> keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableObjectShortMap<K>public org.eclipse.collections.api.map.primitive.MutableObjectShortMap<K> asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableObjectShortMap<K>public org.eclipse.collections.api.map.primitive.MutableObjectShortMap<K> asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableObjectShortMap<K>public org.eclipse.collections.api.map.primitive.ImmutableObjectShortMap<K> toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.ObjectShortMap<K>public short get(Object key)
get in interface org.eclipse.collections.api.map.primitive.ObjectShortMap<K>public short getOrThrow(Object key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.ObjectShortMap<K>public short getIfAbsent(Object key, short ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.ObjectShortMap<K>public boolean containsKey(Object key)
containsKey in interface org.eclipse.collections.api.map.primitive.ObjectShortMap<K>public boolean containsValue(short value)
containsValue in interface org.eclipse.collections.api.map.primitive.ObjectShortMap<K>public void forEach(org.eclipse.collections.api.block.procedure.primitive.ShortProcedure procedure)
forEach in interface org.eclipse.collections.api.ShortIterablepublic void each(org.eclipse.collections.api.block.procedure.primitive.ShortProcedure procedure)
each in interface org.eclipse.collections.api.ShortIterablepublic void forEachValue(org.eclipse.collections.api.block.procedure.primitive.ShortProcedure procedure)
forEachValue in interface org.eclipse.collections.api.map.primitive.ObjectShortMap<K>public void forEachKey(org.eclipse.collections.api.block.procedure.Procedure<? super K> procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.ObjectShortMap<K>public void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ObjectShortProcedure<? super K> procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.ObjectShortMap<K>public ObjectShortHashMapWithHashingStrategy<K> select(org.eclipse.collections.api.block.predicate.primitive.ObjectShortPredicate<? super K> predicate)
public ObjectShortHashMapWithHashingStrategy<K> reject(org.eclipse.collections.api.block.predicate.primitive.ObjectShortPredicate<? super K> predicate)
public org.eclipse.collections.api.collection.primitive.MutableShortCollection select(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate)
select in interface org.eclipse.collections.api.map.primitive.MutableObjectShortMap<K>select in interface org.eclipse.collections.api.ShortIterablepublic org.eclipse.collections.api.collection.primitive.MutableShortCollection reject(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate)
reject in interface org.eclipse.collections.api.map.primitive.MutableObjectShortMap<K>reject in interface org.eclipse.collections.api.ShortIterablepublic short detectIfNone(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate,
short ifNone)
detectIfNone in interface org.eclipse.collections.api.ShortIterablepublic <V> org.eclipse.collections.api.collection.MutableCollection<V> collect(org.eclipse.collections.api.block.function.primitive.ShortToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.map.primitive.MutableObjectShortMap<K>collect in interface org.eclipse.collections.api.ShortIterablepublic int count(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate)
count in interface org.eclipse.collections.api.ShortIterablepublic boolean anySatisfy(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate)
anySatisfy in interface org.eclipse.collections.api.ShortIterablepublic boolean allSatisfy(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate)
allSatisfy in interface org.eclipse.collections.api.ShortIterablepublic boolean noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate)
noneSatisfy in interface org.eclipse.collections.api.ShortIterablepublic <V> V injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectShortToObjectFunction<? super V,? extends V> function)
injectInto in interface org.eclipse.collections.api.ShortIterablepublic long sum()
sum in interface org.eclipse.collections.api.ShortIterablepublic short max()
max in interface org.eclipse.collections.api.ShortIterablepublic short min()
min in interface org.eclipse.collections.api.ShortIterablepublic short maxIfEmpty(short defaultValue)
maxIfEmpty in interface org.eclipse.collections.api.ShortIterablepublic short minIfEmpty(short defaultValue)
minIfEmpty in interface org.eclipse.collections.api.ShortIterablepublic double average()
average in interface org.eclipse.collections.api.ShortIterablepublic double median()
median in interface org.eclipse.collections.api.ShortIterablepublic org.eclipse.collections.api.list.primitive.MutableShortList toList()
toList in interface org.eclipse.collections.api.ShortIterablepublic org.eclipse.collections.api.set.primitive.MutableShortSet toSet()
toSet in interface org.eclipse.collections.api.ShortIterablepublic org.eclipse.collections.api.bag.primitive.MutableShortBag toBag()
toBag in interface org.eclipse.collections.api.ShortIterablepublic org.eclipse.collections.api.LazyShortIterable asLazy()
asLazy in interface org.eclipse.collections.api.ShortIterablepublic short[] toSortedArray()
toSortedArray in interface org.eclipse.collections.api.ShortIterablepublic org.eclipse.collections.api.list.primitive.MutableShortList toSortedList()
toSortedList in interface org.eclipse.collections.api.ShortIterablepublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic org.eclipse.collections.api.LazyIterable<K> keysView()
keysView in interface org.eclipse.collections.api.map.primitive.ObjectShortMap<K>public org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.ObjectShortPair<K>> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.ObjectShortMap<K>public void compact()
public Set<K> keySet()
keySet in interface org.eclipse.collections.api.map.primitive.ObjectShortMap<K>public org.eclipse.collections.api.collection.primitive.MutableShortCollection values()
values in interface org.eclipse.collections.api.map.primitive.ObjectShortMap<K>Copyright © 2004–2017. All rights reserved.