public class ShortShortHashMap extends AbstractMutableShortValuesMap implements MutableShortShortMap, Externalizable, MutableShortKeysMap
Constructor and Description |
---|
ShortShortHashMap() |
ShortShortHashMap(int initialCapacity) |
ShortShortHashMap(ShortShortMap map) |
Modifier and Type | Method and Description |
---|---|
short |
addToValue(short key,
short toBeAdded) |
MutableShortShortMap |
asSynchronized() |
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)
Follows the same general contract as
Map.equals(Object) . |
void |
forEachKey(ShortProcedure procedure) |
void |
forEachKeyValue(ShortShortProcedure procedure) |
short |
get(short key) |
short |
getIfAbsent(short key,
short ifAbsent) |
short |
getIfAbsentPut(short key,
short value) |
short |
getIfAbsentPut(short key,
ShortFunction0 function) |
<P> short |
getIfAbsentPutWith(short key,
ShortFunction<? super P> function,
P parameter) |
short |
getIfAbsentPutWithKey(short key,
ShortToShortFunction function) |
short |
getOrThrow(short key) |
int |
hashCode()
Follows the same general contract as
Map.hashCode() . |
<V> V |
injectInto(V injectedValue,
ObjectShortToObjectFunction<? super V,? extends V> function) |
MutableShortSet |
keySet() |
LazyShortIterable |
keysView() |
RichIterable<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(ShortShortMap map) |
void |
readExternal(ObjectInput in) |
ShortShortHashMap |
reject(ShortShortPredicate predicate) |
void |
remove(short key) |
void |
removeKey(short key) |
short |
removeKeyIfAbsent(short key,
short value) |
ShortShortHashMap |
select(ShortShortPredicate predicate) |
MutableShortIterator |
shortIterator() |
ImmutableShortShortMap |
toImmutable() |
String |
toString()
Returns a string representation of this PrimitiveIterable.
|
short |
updateValue(short key,
short initialValueIfAbsent,
ShortToShortFunction function) |
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(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, 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 ShortShortHashMap()
public ShortShortHashMap(int initialCapacity)
public ShortShortHashMap(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)
ShortShortMap
Map.equals(Object)
.equals
in interface ShortShortMap
equals
in class Object
public int hashCode()
ShortShortMap
Map.hashCode()
.hashCode
in interface ShortShortMap
hashCode
in class Object
public String toString()
PrimitiveIterable
toString
in interface ShortShortMap
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 MutableShortKeysMap
public void put(short key, short value)
put
in interface MutableShortShortMap
public void putAll(ShortShortMap map)
putAll
in interface MutableShortShortMap
public void removeKey(short key)
removeKey
in interface MutableShortShortMap
removeKey
in interface MutableShortKeysMap
public void remove(short key)
remove
in interface MutableShortShortMap
public short removeKeyIfAbsent(short key, short value)
removeKeyIfAbsent
in interface MutableShortShortMap
public short getIfAbsentPut(short key, short value)
getIfAbsentPut
in interface MutableShortShortMap
public short getIfAbsentPut(short key, ShortFunction0 function)
getIfAbsentPut
in interface MutableShortShortMap
public <P> short getIfAbsentPutWith(short key, ShortFunction<? super P> function, P parameter)
getIfAbsentPutWith
in interface MutableShortShortMap
public short getIfAbsentPutWithKey(short key, ShortToShortFunction function)
getIfAbsentPutWithKey
in interface MutableShortShortMap
public short addToValue(short key, short toBeAdded)
addToValue
in interface MutableShortShortMap
public short updateValue(short key, short initialValueIfAbsent, ShortToShortFunction function)
updateValue
in interface MutableShortShortMap
public ShortShortHashMap withKeyValue(short key1, short value1)
withKeyValue
in interface MutableShortShortMap
public 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 MutableShortShortMap
public ShortShortHashMap withoutAllKeys(ShortIterable keys)
withoutAllKeys
in interface MutableShortShortMap
public MutableShortShortMap asUnmodifiable()
asUnmodifiable
in interface MutableShortShortMap
public MutableShortShortMap asSynchronized()
asSynchronized
in interface MutableShortShortMap
public ImmutableShortShortMap toImmutable()
toImmutable
in interface ShortShortMap
public short get(short key)
get
in interface ShortShortMap
public short getIfAbsent(short key, short ifAbsent)
getIfAbsent
in interface ShortShortMap
public short getOrThrow(short key)
getOrThrow
in interface ShortShortMap
public boolean containsKey(short key)
containsKey
in interface ShortShortMap
containsKey
in interface ShortKeysMap
public void forEachKey(ShortProcedure procedure)
forEachKey
in interface ShortShortMap
forEachKey
in interface ShortKeysMap
public void forEachKeyValue(ShortShortProcedure procedure)
forEachKeyValue
in interface ShortShortMap
public LazyShortIterable keysView()
keysView
in interface ShortShortMap
public RichIterable<ShortShortPair> keyValuesView()
keyValuesView
in interface ShortShortMap
public ShortShortHashMap select(ShortShortPredicate predicate)
select
in interface MutableShortShortMap
select
in interface ShortShortMap
public ShortShortHashMap reject(ShortShortPredicate predicate)
reject
in interface MutableShortShortMap
reject
in interface ShortShortMap
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 MutableShortSet keySet()
keySet
in interface ShortShortMap
public MutableShortCollection values()
values
in interface ShortValuesMap
Copyright © 2004–2016. All rights reserved.