public class ShortLongHashMap extends AbstractMutableLongValuesMap implements org.eclipse.collections.api.map.primitive.MutableShortLongMap, Externalizable, MutableShortKeysMap
| Constructor and Description |
|---|
ShortLongHashMap() |
ShortLongHashMap(int initialCapacity) |
ShortLongHashMap(org.eclipse.collections.api.map.primitive.ShortLongMap map) |
| Modifier and Type | Method and Description |
|---|---|
long |
addToValue(short key,
long toBeAdded) |
org.eclipse.collections.api.map.primitive.MutableShortLongMap |
asSynchronized() |
org.eclipse.collections.api.map.primitive.MutableShortLongMap |
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.ShortLongProcedure procedure) |
long |
get(short key) |
long |
getIfAbsent(short key,
long ifAbsent) |
long |
getIfAbsentPut(short key,
long value) |
long |
getIfAbsentPut(short key,
org.eclipse.collections.api.block.function.primitive.LongFunction0 function) |
<P> long |
getIfAbsentPutWith(short key,
org.eclipse.collections.api.block.function.primitive.LongFunction<? super P> function,
P parameter) |
long |
getIfAbsentPutWithKey(short key,
org.eclipse.collections.api.block.function.primitive.ShortToLongFunction function) |
long |
getOrThrow(short key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectLongToObjectFunction<? 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.ShortLongPair> |
keyValuesView() |
org.eclipse.collections.api.iterator.MutableLongIterator |
longIterator() |
static ShortLongHashMap |
newWithKeysValues(short key1,
long value1) |
static ShortLongHashMap |
newWithKeysValues(short key1,
long value1,
short key2,
long value2) |
static ShortLongHashMap |
newWithKeysValues(short key1,
long value1,
short key2,
long value2,
short key3,
long value3) |
static ShortLongHashMap |
newWithKeysValues(short key1,
long value1,
short key2,
long value2,
short key3,
long value3,
short key4,
long value4) |
void |
put(short key,
long value) |
void |
putAll(org.eclipse.collections.api.map.primitive.ShortLongMap map) |
void |
readExternal(ObjectInput in) |
ShortLongHashMap |
reject(org.eclipse.collections.api.block.predicate.primitive.ShortLongPredicate predicate) |
void |
remove(short key) |
void |
removeKey(short key) |
long |
removeKeyIfAbsent(short key,
long value) |
ShortLongHashMap |
select(org.eclipse.collections.api.block.predicate.primitive.ShortLongPredicate predicate) |
org.eclipse.collections.api.map.primitive.ImmutableShortLongMap |
toImmutable() |
String |
toString() |
long |
updateValue(short key,
long initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.LongToLongFunction function) |
org.eclipse.collections.api.collection.primitive.MutableLongCollection |
values() |
ShortLongHashMap |
withKeysValues(short key1,
long value1,
short key2,
long value2) |
ShortLongHashMap |
withKeysValues(short key1,
long value1,
short key2,
long value2,
short key3,
long value3) |
ShortLongHashMap |
withKeysValues(short key1,
long value1,
short key2,
long value2,
short key3,
long value3,
short key4,
long value4) |
ShortLongHashMap |
withKeyValue(short key1,
long value1) |
ShortLongHashMap |
withoutAllKeys(org.eclipse.collections.api.ShortIterable keys) |
ShortLongHashMap |
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 ShortLongHashMap()
public ShortLongHashMap(int initialCapacity)
public ShortLongHashMap(org.eclipse.collections.api.map.primitive.ShortLongMap map)
public static ShortLongHashMap newWithKeysValues(short key1, long value1)
public static ShortLongHashMap newWithKeysValues(short key1, long value1, short key2, long value2)
public static ShortLongHashMap newWithKeysValues(short key1, long value1, short key2, long value2, short key3, long value3)
public static ShortLongHashMap newWithKeysValues(short key1, long value1, short key2, long value2, short key3, long value3, short key4, long value4)
public boolean equals(Object obj)
public int hashCode()
public String toString()
toString in interface org.eclipse.collections.api.map.primitive.ShortLongMaptoString in interface org.eclipse.collections.api.PrimitiveIterabletoString in class AbstractLongIterablepublic org.eclipse.collections.api.iterator.MutableLongIterator longIterator()
longIterator in interface org.eclipse.collections.api.LongIterablelongIterator in interface org.eclipse.collections.api.map.primitive.MutableLongValuesMappublic <V> V injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectLongToObjectFunction<? super V,? extends V> function)
injectInto in interface org.eclipse.collections.api.LongIterablepublic void clear()
clear in interface org.eclipse.collections.api.map.primitive.MutableLongValuesMapclear in interface MutableShortKeysMappublic void put(short key,
long value)
put in interface org.eclipse.collections.api.map.primitive.MutableShortLongMappublic void putAll(org.eclipse.collections.api.map.primitive.ShortLongMap map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableShortLongMappublic void removeKey(short key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableShortLongMapremoveKey in interface MutableShortKeysMappublic void remove(short key)
remove in interface org.eclipse.collections.api.map.primitive.MutableShortLongMappublic long removeKeyIfAbsent(short key,
long value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableShortLongMappublic long getIfAbsentPut(short key,
long value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableShortLongMappublic long getIfAbsentPut(short key,
org.eclipse.collections.api.block.function.primitive.LongFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableShortLongMappublic <P> long getIfAbsentPutWith(short key,
org.eclipse.collections.api.block.function.primitive.LongFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableShortLongMappublic long getIfAbsentPutWithKey(short key,
org.eclipse.collections.api.block.function.primitive.ShortToLongFunction function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableShortLongMappublic long addToValue(short key,
long toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableShortLongMappublic long updateValue(short key,
long initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.LongToLongFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableShortLongMappublic ShortLongHashMap withKeyValue(short key1, long value1)
withKeyValue in interface org.eclipse.collections.api.map.primitive.MutableShortLongMappublic ShortLongHashMap withKeysValues(short key1, long value1, short key2, long value2)
public ShortLongHashMap withKeysValues(short key1, long value1, short key2, long value2, short key3, long value3)
public ShortLongHashMap withKeysValues(short key1, long value1, short key2, long value2, short key3, long value3, short key4, long value4)
public ShortLongHashMap withoutKey(short key)
withoutKey in interface org.eclipse.collections.api.map.primitive.MutableShortLongMappublic ShortLongHashMap withoutAllKeys(org.eclipse.collections.api.ShortIterable keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableShortLongMappublic org.eclipse.collections.api.map.primitive.MutableShortLongMap asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableShortLongMappublic org.eclipse.collections.api.map.primitive.MutableShortLongMap asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableShortLongMappublic org.eclipse.collections.api.map.primitive.ImmutableShortLongMap toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.ShortLongMappublic long get(short key)
get in interface org.eclipse.collections.api.map.primitive.ShortLongMappublic long getIfAbsent(short key,
long ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.ShortLongMappublic long getOrThrow(short key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.ShortLongMappublic boolean containsKey(short key)
containsKey in interface org.eclipse.collections.api.map.primitive.ShortLongMapcontainsKey in interface ShortKeysMappublic void forEachKey(org.eclipse.collections.api.block.procedure.primitive.ShortProcedure procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.ShortLongMapforEachKey in interface ShortKeysMappublic void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ShortLongProcedure procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.ShortLongMappublic org.eclipse.collections.api.LazyShortIterable keysView()
keysView in interface org.eclipse.collections.api.map.primitive.ShortLongMappublic org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.ShortLongPair> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.ShortLongMappublic ShortLongHashMap select(org.eclipse.collections.api.block.predicate.primitive.ShortLongPredicate predicate)
select in interface org.eclipse.collections.api.map.primitive.MutableShortLongMapselect in interface org.eclipse.collections.api.map.primitive.ShortLongMappublic ShortLongHashMap reject(org.eclipse.collections.api.block.predicate.primitive.ShortLongPredicate predicate)
reject in interface org.eclipse.collections.api.map.primitive.MutableShortLongMapreject in interface org.eclipse.collections.api.map.primitive.ShortLongMappublic 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.ShortLongMappublic org.eclipse.collections.api.collection.primitive.MutableLongCollection values()
values in interface org.eclipse.collections.api.map.primitive.LongValuesMapCopyright © 2004–2017. All rights reserved.