public class ByteShortHashMap extends AbstractMutableShortValuesMap implements MutableByteShortMap, Externalizable, MutableByteKeysMap
| Constructor and Description |
|---|
ByteShortHashMap() |
ByteShortHashMap(ByteShortMap map) |
ByteShortHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
short |
addToValue(byte key,
short toBeAdded) |
MutableByteShortMap |
asSynchronized() |
MutableByteShortMap |
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(byte key) |
boolean |
equals(Object obj) |
MutableShortByteMap |
flipUniqueValues() |
void |
forEachKey(ByteProcedure procedure) |
void |
forEachKeyValue(ByteShortProcedure procedure) |
short |
get(byte key) |
short |
getAndPut(byte key,
short putValue,
short defaultValue) |
short |
getIfAbsent(byte key,
short ifAbsent) |
short |
getIfAbsentPut(byte key,
short value) |
short |
getIfAbsentPut(byte key,
ShortFunction0 function) |
<P> short |
getIfAbsentPutWith(byte key,
ShortFunction<? super P> function,
P parameter) |
short |
getIfAbsentPutWithKey(byte key,
ByteToShortFunction function) |
short |
getOrThrow(byte key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
ObjectShortToObjectFunction<? super V,? extends V> function) |
MutableByteSet |
keySet() |
LazyByteIterable |
keysView() |
RichIterable<ByteShortPair> |
keyValuesView() |
static ByteShortHashMap |
newWithKeysValues(byte key1,
short value1) |
static ByteShortHashMap |
newWithKeysValues(byte key1,
short value1,
byte key2,
short value2) |
static ByteShortHashMap |
newWithKeysValues(byte key1,
short value1,
byte key2,
short value2,
byte key3,
short value3) |
static ByteShortHashMap |
newWithKeysValues(byte key1,
short value1,
byte key2,
short value2,
byte key3,
short value3,
byte key4,
short value4) |
void |
put(byte key,
short value) |
void |
putAll(ByteShortMap map) |
void |
readExternal(ObjectInput in) |
ByteShortHashMap |
reject(ByteShortPredicate predicate) |
void |
remove(byte key) |
void |
removeKey(byte key) |
short |
removeKeyIfAbsent(byte key,
short value) |
ByteShortHashMap |
select(ByteShortPredicate predicate) |
MutableShortIterator |
shortIterator() |
ImmutableByteShortMap |
toImmutable() |
String |
toString() |
short |
updateValue(byte key,
short initialValueIfAbsent,
ShortToShortFunction function) |
void |
updateValues(ByteShortToShortFunction function) |
MutableShortCollection |
values() |
ByteShortHashMap |
withKeysValues(byte key1,
short value1,
byte key2,
short value2) |
ByteShortHashMap |
withKeysValues(byte key1,
short value1,
byte key2,
short value2,
byte key3,
short value3) |
ByteShortHashMap |
withKeysValues(byte key1,
short value1,
byte key2,
short value2,
byte key3,
short value3,
byte key4,
short value4) |
ByteShortHashMap |
withKeyValue(byte key1,
short value1) |
ByteShortHashMap |
withoutAllKeys(ByteIterable keys) |
ByteShortHashMap |
withoutKey(byte 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 ByteShortHashMap()
public ByteShortHashMap(int initialCapacity)
public ByteShortHashMap(ByteShortMap map)
public static ByteShortHashMap newWithKeysValues(byte key1, short value1)
public static ByteShortHashMap newWithKeysValues(byte key1, short value1, byte key2, short value2)
public static ByteShortHashMap newWithKeysValues(byte key1, short value1, byte key2, short value2, byte key3, short value3)
public static ByteShortHashMap newWithKeysValues(byte key1, short value1, byte key2, short value2, byte key3, short value3, byte key4, short value4)
public boolean equals(Object obj)
equals in interface ByteShortMapequals in class Objectpublic int hashCode()
hashCode in interface ByteShortMaphashCode in class Objectpublic String toString()
toString in interface ByteShortMaptoString 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 MutableByteKeysMappublic void put(byte key,
short value)
put in interface MutableByteShortMappublic void putAll(ByteShortMap map)
putAll in interface MutableByteShortMappublic void updateValues(ByteShortToShortFunction function)
updateValues in interface MutableByteShortMappublic void removeKey(byte key)
removeKey in interface MutableByteShortMapremoveKey in interface MutableByteKeysMappublic void remove(byte key)
remove in interface MutableByteShortMappublic short removeKeyIfAbsent(byte key,
short value)
removeKeyIfAbsent in interface MutableByteShortMappublic short getIfAbsentPut(byte key,
short value)
getIfAbsentPut in interface MutableByteShortMappublic short getAndPut(byte key,
short putValue,
short defaultValue)
getAndPut in interface MutableByteShortMappublic short getIfAbsentPut(byte key,
ShortFunction0 function)
getIfAbsentPut in interface MutableByteShortMappublic <P> short getIfAbsentPutWith(byte key,
ShortFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableByteShortMappublic short getIfAbsentPutWithKey(byte key,
ByteToShortFunction function)
getIfAbsentPutWithKey in interface MutableByteShortMappublic short addToValue(byte key,
short toBeAdded)
addToValue in interface MutableByteShortMappublic short updateValue(byte key,
short initialValueIfAbsent,
ShortToShortFunction function)
updateValue in interface MutableByteShortMappublic ByteShortHashMap withKeyValue(byte key1, short value1)
withKeyValue in interface MutableByteShortMappublic ByteShortHashMap withKeysValues(byte key1, short value1, byte key2, short value2)
public ByteShortHashMap withKeysValues(byte key1, short value1, byte key2, short value2, byte key3, short value3)
public ByteShortHashMap withKeysValues(byte key1, short value1, byte key2, short value2, byte key3, short value3, byte key4, short value4)
public ByteShortHashMap withoutKey(byte key)
withoutKey in interface MutableByteShortMappublic ByteShortHashMap withoutAllKeys(ByteIterable keys)
withoutAllKeys in interface MutableByteShortMappublic MutableByteShortMap asUnmodifiable()
asUnmodifiable in interface MutableByteShortMappublic MutableByteShortMap asSynchronized()
asSynchronized in interface MutableByteShortMappublic ImmutableByteShortMap toImmutable()
toImmutable in interface ByteShortMappublic short get(byte key)
get in interface ByteShortMappublic short getIfAbsent(byte key,
short ifAbsent)
getIfAbsent in interface ByteShortMappublic short getOrThrow(byte key)
getOrThrow in interface ByteShortMappublic boolean containsKey(byte key)
containsKey in interface ByteShortMapcontainsKey in interface ByteKeysMappublic void forEachKey(ByteProcedure procedure)
forEachKey in interface ByteShortMapforEachKey in interface ByteKeysMappublic void forEachKeyValue(ByteShortProcedure procedure)
forEachKeyValue in interface ByteShortMappublic LazyByteIterable keysView()
keysView in interface ByteShortMappublic RichIterable<ByteShortPair> keyValuesView()
keyValuesView in interface ByteShortMappublic MutableShortByteMap flipUniqueValues()
flipUniqueValues in interface ByteShortMapflipUniqueValues in interface MutableByteShortMappublic ByteShortHashMap select(ByteShortPredicate predicate)
select in interface ByteShortMapselect in interface MutableByteShortMappublic ByteShortHashMap reject(ByteShortPredicate predicate)
reject in interface ByteShortMapreject in interface MutableByteShortMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void compact()
public MutableByteSet keySet()
keySet in interface ByteShortMappublic MutableShortCollection values()
values in interface ShortValuesMapCopyright © 2004–2022. All rights reserved.