public class ShortIntHashMap extends AbstractMutableIntValuesMap implements org.eclipse.collections.api.map.primitive.MutableShortIntMap, Externalizable, MutableShortKeysMap
| Constructor and Description |
|---|
ShortIntHashMap() |
ShortIntHashMap(int initialCapacity) |
ShortIntHashMap(org.eclipse.collections.api.map.primitive.ShortIntMap map) |
| Modifier and Type | Method and Description |
|---|---|
int |
addToValue(short key,
int toBeAdded) |
org.eclipse.collections.api.map.primitive.MutableShortIntMap |
asSynchronized() |
org.eclipse.collections.api.map.primitive.MutableShortIntMap |
asUnmodifiable() |
void |
clear() |
void |
compact()
Rehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels.
|
boolean |
containsKey(short key) |
boolean |
equals(Object obj) |
void |
forEachKey(org.eclipse.collections.api.block.procedure.primitive.ShortProcedure procedure) |
void |
forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ShortIntProcedure procedure) |
int |
get(short key) |
int |
getIfAbsent(short key,
int ifAbsent) |
int |
getIfAbsentPut(short key,
int value) |
int |
getIfAbsentPut(short key,
org.eclipse.collections.api.block.function.primitive.IntFunction0 function) |
<P> int |
getIfAbsentPutWith(short key,
org.eclipse.collections.api.block.function.primitive.IntFunction<? super P> function,
P parameter) |
int |
getIfAbsentPutWithKey(short key,
org.eclipse.collections.api.block.function.primitive.ShortToIntFunction function) |
int |
getOrThrow(short key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction<? super V,? extends V> function) |
org.eclipse.collections.api.iterator.MutableIntIterator |
intIterator() |
org.eclipse.collections.api.set.primitive.MutableShortSet |
keySet() |
org.eclipse.collections.api.LazyShortIterable |
keysView() |
org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.ShortIntPair> |
keyValuesView() |
static ShortIntHashMap |
newWithKeysValues(short key1,
int value1) |
static ShortIntHashMap |
newWithKeysValues(short key1,
int value1,
short key2,
int value2) |
static ShortIntHashMap |
newWithKeysValues(short key1,
int value1,
short key2,
int value2,
short key3,
int value3) |
static ShortIntHashMap |
newWithKeysValues(short key1,
int value1,
short key2,
int value2,
short key3,
int value3,
short key4,
int value4) |
void |
put(short key,
int value) |
void |
putAll(org.eclipse.collections.api.map.primitive.ShortIntMap map) |
void |
readExternal(ObjectInput in) |
ShortIntHashMap |
reject(org.eclipse.collections.api.block.predicate.primitive.ShortIntPredicate predicate) |
void |
remove(short key) |
void |
removeKey(short key) |
int |
removeKeyIfAbsent(short key,
int value) |
ShortIntHashMap |
select(org.eclipse.collections.api.block.predicate.primitive.ShortIntPredicate predicate) |
org.eclipse.collections.api.map.primitive.ImmutableShortIntMap |
toImmutable() |
String |
toString() |
int |
updateValue(short key,
int initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.IntToIntFunction function) |
org.eclipse.collections.api.collection.primitive.MutableIntCollection |
values() |
ShortIntHashMap |
withKeysValues(short key1,
int value1,
short key2,
int value2) |
ShortIntHashMap |
withKeysValues(short key1,
int value1,
short key2,
int value2,
short key3,
int value3) |
ShortIntHashMap |
withKeysValues(short key1,
int value1,
short key2,
int value2,
short key3,
int value3,
short key4,
int value4) |
ShortIntHashMap |
withKeyValue(short key1,
int value1) |
ShortIntHashMap |
withoutAllKeys(org.eclipse.collections.api.ShortIterable keys) |
ShortIntHashMap |
withoutKey(short key) |
void |
writeExternal(ObjectOutput out) |
allSatisfy, anySatisfy, appendString, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, select, size, sum, toArrayappendString, appendString, asLazy, average, containsAll, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListcollect, reject, selectcontainsValue, forEachValueallSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeisEmpty, notEmpty, sizepublic ShortIntHashMap()
public ShortIntHashMap(int initialCapacity)
public ShortIntHashMap(org.eclipse.collections.api.map.primitive.ShortIntMap map)
public static ShortIntHashMap newWithKeysValues(short key1, int value1)
public static ShortIntHashMap newWithKeysValues(short key1, int value1, short key2, int value2)
public static ShortIntHashMap newWithKeysValues(short key1, int value1, short key2, int value2, short key3, int value3)
public static ShortIntHashMap newWithKeysValues(short key1, int value1, short key2, int value2, short key3, int value3, short key4, int value4)
public boolean equals(Object obj)
public int hashCode()
public String toString()
toString in interface org.eclipse.collections.api.map.primitive.ShortIntMaptoString in interface org.eclipse.collections.api.PrimitiveIterabletoString in class AbstractIntIterablepublic org.eclipse.collections.api.iterator.MutableIntIterator intIterator()
intIterator in interface org.eclipse.collections.api.IntIterableintIterator in interface org.eclipse.collections.api.map.primitive.MutableIntValuesMappublic <V> V injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction<? super V,? extends V> function)
injectInto in interface org.eclipse.collections.api.IntIterablepublic void clear()
clear in interface org.eclipse.collections.api.map.primitive.MutableIntValuesMapclear in interface MutableShortKeysMappublic void put(short key,
int value)
put in interface org.eclipse.collections.api.map.primitive.MutableShortIntMappublic void putAll(org.eclipse.collections.api.map.primitive.ShortIntMap map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableShortIntMappublic void removeKey(short key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableShortIntMapremoveKey in interface MutableShortKeysMappublic void remove(short key)
remove in interface org.eclipse.collections.api.map.primitive.MutableShortIntMappublic int removeKeyIfAbsent(short key,
int value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableShortIntMappublic int getIfAbsentPut(short key,
int value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableShortIntMappublic int getIfAbsentPut(short key,
org.eclipse.collections.api.block.function.primitive.IntFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableShortIntMappublic <P> int getIfAbsentPutWith(short key,
org.eclipse.collections.api.block.function.primitive.IntFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableShortIntMappublic int getIfAbsentPutWithKey(short key,
org.eclipse.collections.api.block.function.primitive.ShortToIntFunction function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableShortIntMappublic int addToValue(short key,
int toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableShortIntMappublic int updateValue(short key,
int initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.IntToIntFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableShortIntMappublic ShortIntHashMap withKeyValue(short key1, int value1)
withKeyValue in interface org.eclipse.collections.api.map.primitive.MutableShortIntMappublic ShortIntHashMap withKeysValues(short key1, int value1, short key2, int value2)
public ShortIntHashMap withKeysValues(short key1, int value1, short key2, int value2, short key3, int value3)
public ShortIntHashMap withKeysValues(short key1, int value1, short key2, int value2, short key3, int value3, short key4, int value4)
public ShortIntHashMap withoutKey(short key)
withoutKey in interface org.eclipse.collections.api.map.primitive.MutableShortIntMappublic ShortIntHashMap withoutAllKeys(org.eclipse.collections.api.ShortIterable keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableShortIntMappublic org.eclipse.collections.api.map.primitive.MutableShortIntMap asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableShortIntMappublic org.eclipse.collections.api.map.primitive.MutableShortIntMap asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableShortIntMappublic org.eclipse.collections.api.map.primitive.ImmutableShortIntMap toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.ShortIntMappublic int get(short key)
get in interface org.eclipse.collections.api.map.primitive.ShortIntMappublic int getIfAbsent(short key,
int ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.ShortIntMappublic int getOrThrow(short key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.ShortIntMappublic boolean containsKey(short key)
containsKey in interface org.eclipse.collections.api.map.primitive.ShortIntMapcontainsKey in interface ShortKeysMappublic void forEachKey(org.eclipse.collections.api.block.procedure.primitive.ShortProcedure procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.ShortIntMapforEachKey in interface ShortKeysMappublic void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ShortIntProcedure procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.ShortIntMappublic org.eclipse.collections.api.LazyShortIterable keysView()
keysView in interface org.eclipse.collections.api.map.primitive.ShortIntMappublic org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.ShortIntPair> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.ShortIntMappublic ShortIntHashMap select(org.eclipse.collections.api.block.predicate.primitive.ShortIntPredicate predicate)
select in interface org.eclipse.collections.api.map.primitive.MutableShortIntMapselect in interface org.eclipse.collections.api.map.primitive.ShortIntMappublic ShortIntHashMap reject(org.eclipse.collections.api.block.predicate.primitive.ShortIntPredicate predicate)
reject in interface org.eclipse.collections.api.map.primitive.MutableShortIntMapreject in interface org.eclipse.collections.api.map.primitive.ShortIntMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void compact()
public org.eclipse.collections.api.set.primitive.MutableShortSet keySet()
keySet in interface org.eclipse.collections.api.map.primitive.ShortIntMappublic org.eclipse.collections.api.collection.primitive.MutableIntCollection values()
values in interface org.eclipse.collections.api.map.primitive.IntValuesMapCopyright © 2004–2018. All rights reserved.