public class IntShortHashMap extends AbstractMutableShortValuesMap implements MutableIntShortMap, Externalizable, MutableIntKeysMap
| Constructor and Description |
|---|
IntShortHashMap() |
IntShortHashMap(int initialCapacity) |
IntShortHashMap(IntShortMap map) |
| Modifier and Type | Method and Description |
|---|---|
short |
addToValue(int key,
short toBeAdded) |
MutableIntShortMap |
asSynchronized() |
MutableIntShortMap |
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(int key) |
boolean |
equals(Object obj) |
MutableShortIntMap |
flipUniqueValues() |
void |
forEachKey(IntProcedure procedure) |
void |
forEachKeyValue(IntShortProcedure procedure) |
short |
get(int key) |
short |
getAndPut(int key,
short putValue,
short defaultValue) |
short |
getIfAbsent(int key,
short ifAbsent) |
short |
getIfAbsentPut(int key,
short value) |
short |
getIfAbsentPut(int key,
ShortFunction0 function) |
<P> short |
getIfAbsentPutWith(int key,
ShortFunction<? super P> function,
P parameter) |
short |
getIfAbsentPutWithKey(int key,
IntToShortFunction function) |
short |
getOrThrow(int key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
ObjectShortToObjectFunction<? super V,? extends V> function) |
MutableIntSet |
keySet() |
LazyIntIterable |
keysView() |
RichIterable<IntShortPair> |
keyValuesView() |
static IntShortHashMap |
newWithKeysValues(int key1,
short value1) |
static IntShortHashMap |
newWithKeysValues(int key1,
short value1,
int key2,
short value2) |
static IntShortHashMap |
newWithKeysValues(int key1,
short value1,
int key2,
short value2,
int key3,
short value3) |
static IntShortHashMap |
newWithKeysValues(int key1,
short value1,
int key2,
short value2,
int key3,
short value3,
int key4,
short value4) |
void |
put(int key,
short value) |
void |
putAll(IntShortMap map) |
void |
readExternal(ObjectInput in) |
IntShortHashMap |
reject(IntShortPredicate predicate) |
void |
remove(int key) |
void |
removeKey(int key) |
short |
removeKeyIfAbsent(int key,
short value) |
IntShortHashMap |
select(IntShortPredicate predicate) |
MutableShortIterator |
shortIterator() |
ImmutableIntShortMap |
toImmutable() |
String |
toString() |
short |
updateValue(int key,
short initialValueIfAbsent,
ShortToShortFunction function) |
void |
updateValues(IntShortToShortFunction function) |
MutableShortCollection |
values() |
IntShortHashMap |
withKeysValues(int key1,
short value1,
int key2,
short value2) |
IntShortHashMap |
withKeysValues(int key1,
short value1,
int key2,
short value2,
int key3,
short value3) |
IntShortHashMap |
withKeysValues(int key1,
short value1,
int key2,
short value2,
int key3,
short value3,
int key4,
short value4) |
IntShortHashMap |
withKeyValue(int key1,
short value1) |
IntShortHashMap |
withoutAllKeys(IntIterable keys) |
IntShortHashMap |
withoutKey(int key) |
void |
writeExternal(ObjectOutput out) |
allSatisfy, anySatisfy, appendString, chunk, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEachValue, isEmpty, max, min, notEmpty, reject, select, size, sum, toArray, toArrayasLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListputPair, withAllKeyValuesinjectIntoKeyValuecollect, reject, selectcontainsValue, forEachValue, tapallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeisEmpty, notEmpty, sizepublic IntShortHashMap()
public IntShortHashMap(int initialCapacity)
public IntShortHashMap(IntShortMap map)
public static IntShortHashMap newWithKeysValues(int key1, short value1)
public static IntShortHashMap newWithKeysValues(int key1, short value1, int key2, short value2)
public static IntShortHashMap newWithKeysValues(int key1, short value1, int key2, short value2, int key3, short value3)
public static IntShortHashMap newWithKeysValues(int key1, short value1, int key2, short value2, int key3, short value3, int key4, short value4)
public boolean equals(Object obj)
equals in interface IntShortMapequals in class Objectpublic int hashCode()
hashCode in interface IntShortMaphashCode in class Objectpublic String toString()
toString in interface IntShortMaptoString in interface PrimitiveIterabletoString in class AbstractShortIterablepublic MutableShortIterator shortIterator()
shortIterator in interface MutableShortValuesMapshortIterator in interface ShortIterablepublic <V> V injectInto(V injectedValue,
ObjectShortToObjectFunction<? super V,? extends V> function)
injectInto in interface ShortIterablepublic void clear()
clear in interface MutableShortValuesMapclear in interface MutableIntKeysMappublic void put(int key,
short value)
put in interface MutableIntShortMappublic void putAll(IntShortMap map)
putAll in interface MutableIntShortMappublic void updateValues(IntShortToShortFunction function)
updateValues in interface MutableIntShortMappublic void removeKey(int key)
removeKey in interface MutableIntShortMapremoveKey in interface MutableIntKeysMappublic void remove(int key)
remove in interface MutableIntShortMappublic short removeKeyIfAbsent(int key,
short value)
removeKeyIfAbsent in interface MutableIntShortMappublic short getIfAbsentPut(int key,
short value)
getIfAbsentPut in interface MutableIntShortMappublic short getAndPut(int key,
short putValue,
short defaultValue)
getAndPut in interface MutableIntShortMappublic short getIfAbsentPut(int key,
ShortFunction0 function)
getIfAbsentPut in interface MutableIntShortMappublic <P> short getIfAbsentPutWith(int key,
ShortFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableIntShortMappublic short getIfAbsentPutWithKey(int key,
IntToShortFunction function)
getIfAbsentPutWithKey in interface MutableIntShortMappublic short addToValue(int key,
short toBeAdded)
addToValue in interface MutableIntShortMappublic short updateValue(int key,
short initialValueIfAbsent,
ShortToShortFunction function)
updateValue in interface MutableIntShortMappublic IntShortHashMap withKeyValue(int key1, short value1)
withKeyValue in interface MutableIntShortMappublic IntShortHashMap withKeysValues(int key1, short value1, int key2, short value2)
public IntShortHashMap withKeysValues(int key1, short value1, int key2, short value2, int key3, short value3)
public IntShortHashMap withKeysValues(int key1, short value1, int key2, short value2, int key3, short value3, int key4, short value4)
public IntShortHashMap withoutKey(int key)
withoutKey in interface MutableIntShortMappublic IntShortHashMap withoutAllKeys(IntIterable keys)
withoutAllKeys in interface MutableIntShortMappublic MutableIntShortMap asUnmodifiable()
asUnmodifiable in interface MutableIntShortMappublic MutableIntShortMap asSynchronized()
asSynchronized in interface MutableIntShortMappublic ImmutableIntShortMap toImmutable()
toImmutable in interface IntShortMappublic short get(int key)
get in interface IntShortMappublic short getIfAbsent(int key,
short ifAbsent)
getIfAbsent in interface IntShortMappublic short getOrThrow(int key)
getOrThrow in interface IntShortMappublic boolean containsKey(int key)
containsKey in interface IntShortMapcontainsKey in interface IntKeysMappublic void forEachKey(IntProcedure procedure)
forEachKey in interface IntShortMapforEachKey in interface IntKeysMappublic void forEachKeyValue(IntShortProcedure procedure)
forEachKeyValue in interface IntShortMappublic LazyIntIterable keysView()
keysView in interface IntShortMappublic RichIterable<IntShortPair> keyValuesView()
keyValuesView in interface IntShortMappublic MutableShortIntMap flipUniqueValues()
flipUniqueValues in interface IntShortMapflipUniqueValues in interface MutableIntShortMappublic IntShortHashMap select(IntShortPredicate predicate)
select in interface IntShortMapselect in interface MutableIntShortMappublic IntShortHashMap reject(IntShortPredicate predicate)
reject in interface IntShortMapreject in interface MutableIntShortMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void compact()
public MutableIntSet keySet()
keySet in interface IntShortMappublic MutableShortCollection values()
values in interface ShortValuesMapCopyright © 2004–2022. All rights reserved.