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)
Follows the same general contract as
Map.equals(Object) . |
void |
forEachKey(IntProcedure procedure) |
void |
forEachKeyValue(IntShortProcedure procedure) |
short |
get(int key) |
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()
Follows the same general contract as
Map.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()
Returns a string representation of this PrimitiveIterable.
|
short |
updateValue(int key,
short initialValueIfAbsent,
ShortToShortFunction 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, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, select, size, sum, toArray
appendString, appendString, asLazy, average, containsAll, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
collect, reject, select
containsValue, forEachValue
allSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
isEmpty, notEmpty, size
public 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)
IntShortMap
Map.equals(Object)
.equals
in interface IntShortMap
equals
in class Object
public int hashCode()
IntShortMap
Map.hashCode()
.hashCode
in interface IntShortMap
hashCode
in class Object
public String toString()
PrimitiveIterable
toString
in interface IntShortMap
toString
in interface PrimitiveIterable
toString
in class AbstractShortIterable
public MutableShortIterator shortIterator()
shortIterator
in interface MutableShortValuesMap
shortIterator
in interface ShortIterable
public <V> V injectInto(V injectedValue, ObjectShortToObjectFunction<? super V,? extends V> function)
injectInto
in interface ShortIterable
public void clear()
clear
in interface MutableShortValuesMap
clear
in interface MutableIntKeysMap
public void put(int key, short value)
put
in interface MutableIntShortMap
public void putAll(IntShortMap map)
putAll
in interface MutableIntShortMap
public void removeKey(int key)
removeKey
in interface MutableIntShortMap
removeKey
in interface MutableIntKeysMap
public void remove(int key)
remove
in interface MutableIntShortMap
public short removeKeyIfAbsent(int key, short value)
removeKeyIfAbsent
in interface MutableIntShortMap
public short getIfAbsentPut(int key, short value)
getIfAbsentPut
in interface MutableIntShortMap
public short getIfAbsentPut(int key, ShortFunction0 function)
getIfAbsentPut
in interface MutableIntShortMap
public <P> short getIfAbsentPutWith(int key, ShortFunction<? super P> function, P parameter)
getIfAbsentPutWith
in interface MutableIntShortMap
public short getIfAbsentPutWithKey(int key, IntToShortFunction function)
getIfAbsentPutWithKey
in interface MutableIntShortMap
public short addToValue(int key, short toBeAdded)
addToValue
in interface MutableIntShortMap
public short updateValue(int key, short initialValueIfAbsent, ShortToShortFunction function)
updateValue
in interface MutableIntShortMap
public IntShortHashMap withKeyValue(int key1, short value1)
withKeyValue
in interface MutableIntShortMap
public 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 MutableIntShortMap
public IntShortHashMap withoutAllKeys(IntIterable keys)
withoutAllKeys
in interface MutableIntShortMap
public MutableIntShortMap asUnmodifiable()
asUnmodifiable
in interface MutableIntShortMap
public MutableIntShortMap asSynchronized()
asSynchronized
in interface MutableIntShortMap
public ImmutableIntShortMap toImmutable()
toImmutable
in interface IntShortMap
public short get(int key)
get
in interface IntShortMap
public short getIfAbsent(int key, short ifAbsent)
getIfAbsent
in interface IntShortMap
public short getOrThrow(int key)
getOrThrow
in interface IntShortMap
public boolean containsKey(int key)
containsKey
in interface IntShortMap
containsKey
in interface IntKeysMap
public void forEachKey(IntProcedure procedure)
forEachKey
in interface IntShortMap
forEachKey
in interface IntKeysMap
public void forEachKeyValue(IntShortProcedure procedure)
forEachKeyValue
in interface IntShortMap
public LazyIntIterable keysView()
keysView
in interface IntShortMap
public RichIterable<IntShortPair> keyValuesView()
keyValuesView
in interface IntShortMap
public IntShortHashMap select(IntShortPredicate predicate)
select
in interface IntShortMap
select
in interface MutableIntShortMap
public IntShortHashMap reject(IntShortPredicate predicate)
reject
in interface IntShortMap
reject
in interface MutableIntShortMap
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void compact()
public MutableIntSet keySet()
keySet
in interface IntShortMap
public MutableShortCollection values()
values
in interface ShortValuesMap
Copyright © 2004–2016. All rights reserved.