public class ShortShortHashMap extends AbstractMutableShortValuesMap implements org.eclipse.collections.api.map.primitive.MutableShortShortMap, Externalizable, MutableShortKeysMap
| Constructor and Description |
|---|
ShortShortHashMap() |
ShortShortHashMap(int initialCapacity) |
ShortShortHashMap(org.eclipse.collections.api.map.primitive.ShortShortMap map) |
| Modifier and Type | Method and Description |
|---|---|
short |
addToValue(short key,
short toBeAdded) |
org.eclipse.collections.api.map.primitive.MutableShortShortMap |
asSynchronized() |
org.eclipse.collections.api.map.primitive.MutableShortShortMap |
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.ShortShortProcedure procedure) |
short |
get(short key) |
short |
getIfAbsent(short key,
short ifAbsent) |
short |
getIfAbsentPut(short key,
short value) |
short |
getIfAbsentPut(short key,
org.eclipse.collections.api.block.function.primitive.ShortFunction0 function) |
<P> short |
getIfAbsentPutWith(short key,
org.eclipse.collections.api.block.function.primitive.ShortFunction<? super P> function,
P parameter) |
short |
getIfAbsentPutWithKey(short key,
org.eclipse.collections.api.block.function.primitive.ShortToShortFunction function) |
short |
getOrThrow(short key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectShortToObjectFunction<? super V,? extends V> function) |
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.ShortShortPair> |
keyValuesView() |
static ShortShortHashMap |
newWithKeysValues(short key1,
short value1) |
static ShortShortHashMap |
newWithKeysValues(short key1,
short value1,
short key2,
short value2) |
static ShortShortHashMap |
newWithKeysValues(short key1,
short value1,
short key2,
short value2,
short key3,
short value3) |
static ShortShortHashMap |
newWithKeysValues(short key1,
short value1,
short key2,
short value2,
short key3,
short value3,
short key4,
short value4) |
void |
put(short key,
short value) |
void |
putAll(org.eclipse.collections.api.map.primitive.ShortShortMap map) |
void |
readExternal(ObjectInput in) |
ShortShortHashMap |
reject(org.eclipse.collections.api.block.predicate.primitive.ShortShortPredicate predicate) |
void |
remove(short key) |
void |
removeKey(short key) |
short |
removeKeyIfAbsent(short key,
short value) |
ShortShortHashMap |
select(org.eclipse.collections.api.block.predicate.primitive.ShortShortPredicate predicate) |
org.eclipse.collections.api.iterator.MutableShortIterator |
shortIterator() |
org.eclipse.collections.api.map.primitive.ImmutableShortShortMap |
toImmutable() |
String |
toString() |
short |
updateValue(short key,
short initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.ShortToShortFunction function) |
org.eclipse.collections.api.collection.primitive.MutableShortCollection |
values() |
ShortShortHashMap |
withKeysValues(short key1,
short value1,
short key2,
short value2) |
ShortShortHashMap |
withKeysValues(short key1,
short value1,
short key2,
short value2,
short key3,
short value3) |
ShortShortHashMap |
withKeysValues(short key1,
short value1,
short key2,
short value2,
short key3,
short value3,
short key4,
short value4) |
ShortShortHashMap |
withKeyValue(short key1,
short value1) |
ShortShortHashMap |
withoutAllKeys(org.eclipse.collections.api.ShortIterable keys) |
ShortShortHashMap |
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 ShortShortHashMap()
public ShortShortHashMap(int initialCapacity)
public ShortShortHashMap(org.eclipse.collections.api.map.primitive.ShortShortMap map)
public static ShortShortHashMap newWithKeysValues(short key1, short value1)
public static ShortShortHashMap newWithKeysValues(short key1, short value1, short key2, short value2)
public static ShortShortHashMap newWithKeysValues(short key1, short value1, short key2, short value2, short key3, short value3)
public static ShortShortHashMap newWithKeysValues(short key1, short value1, short key2, short value2, short key3, short value3, short key4, short value4)
public boolean equals(Object obj)
public int hashCode()
public String toString()
toString in interface org.eclipse.collections.api.map.primitive.ShortShortMaptoString in interface org.eclipse.collections.api.PrimitiveIterabletoString in class AbstractShortIterablepublic org.eclipse.collections.api.iterator.MutableShortIterator shortIterator()
shortIterator in interface org.eclipse.collections.api.map.primitive.MutableShortValuesMapshortIterator 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 void clear()
clear in interface org.eclipse.collections.api.map.primitive.MutableShortValuesMapclear in interface MutableShortKeysMappublic void put(short key,
short value)
put in interface org.eclipse.collections.api.map.primitive.MutableShortShortMappublic void putAll(org.eclipse.collections.api.map.primitive.ShortShortMap map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableShortShortMappublic void removeKey(short key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableShortShortMapremoveKey in interface MutableShortKeysMappublic void remove(short key)
remove in interface org.eclipse.collections.api.map.primitive.MutableShortShortMappublic short removeKeyIfAbsent(short key,
short value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableShortShortMappublic short getIfAbsentPut(short key,
short value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableShortShortMappublic short getIfAbsentPut(short key,
org.eclipse.collections.api.block.function.primitive.ShortFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableShortShortMappublic <P> short getIfAbsentPutWith(short key,
org.eclipse.collections.api.block.function.primitive.ShortFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableShortShortMappublic short getIfAbsentPutWithKey(short key,
org.eclipse.collections.api.block.function.primitive.ShortToShortFunction function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableShortShortMappublic short addToValue(short key,
short toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableShortShortMappublic short updateValue(short key,
short initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.ShortToShortFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableShortShortMappublic ShortShortHashMap withKeyValue(short key1, short value1)
withKeyValue in interface org.eclipse.collections.api.map.primitive.MutableShortShortMappublic ShortShortHashMap withKeysValues(short key1, short value1, short key2, short value2)
public ShortShortHashMap withKeysValues(short key1, short value1, short key2, short value2, short key3, short value3)
public ShortShortHashMap withKeysValues(short key1, short value1, short key2, short value2, short key3, short value3, short key4, short value4)
public ShortShortHashMap withoutKey(short key)
withoutKey in interface org.eclipse.collections.api.map.primitive.MutableShortShortMappublic ShortShortHashMap withoutAllKeys(org.eclipse.collections.api.ShortIterable keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableShortShortMappublic org.eclipse.collections.api.map.primitive.MutableShortShortMap asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableShortShortMappublic org.eclipse.collections.api.map.primitive.MutableShortShortMap asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableShortShortMappublic org.eclipse.collections.api.map.primitive.ImmutableShortShortMap toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.ShortShortMappublic short get(short key)
get in interface org.eclipse.collections.api.map.primitive.ShortShortMappublic short getIfAbsent(short key,
short ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.ShortShortMappublic short getOrThrow(short key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.ShortShortMappublic boolean containsKey(short key)
containsKey in interface org.eclipse.collections.api.map.primitive.ShortShortMapcontainsKey in interface ShortKeysMappublic void forEachKey(org.eclipse.collections.api.block.procedure.primitive.ShortProcedure procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.ShortShortMapforEachKey in interface ShortKeysMappublic void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ShortShortProcedure procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.ShortShortMappublic org.eclipse.collections.api.LazyShortIterable keysView()
keysView in interface org.eclipse.collections.api.map.primitive.ShortShortMappublic org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.ShortShortPair> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.ShortShortMappublic ShortShortHashMap select(org.eclipse.collections.api.block.predicate.primitive.ShortShortPredicate predicate)
select in interface org.eclipse.collections.api.map.primitive.MutableShortShortMapselect in interface org.eclipse.collections.api.map.primitive.ShortShortMappublic ShortShortHashMap reject(org.eclipse.collections.api.block.predicate.primitive.ShortShortPredicate predicate)
reject in interface org.eclipse.collections.api.map.primitive.MutableShortShortMapreject in interface org.eclipse.collections.api.map.primitive.ShortShortMappublic 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.ShortShortMappublic org.eclipse.collections.api.collection.primitive.MutableShortCollection values()
values in interface org.eclipse.collections.api.map.primitive.ShortValuesMapCopyright © 2004–2017. All rights reserved.