public class ByteIntHashMap extends AbstractMutableIntValuesMap implements MutableByteIntMap, Externalizable, MutableByteKeysMap
| Constructor and Description |
|---|
ByteIntHashMap() |
ByteIntHashMap(ByteIntMap map) |
ByteIntHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
int |
addToValue(byte key,
int toBeAdded) |
MutableByteIntMap |
asSynchronized() |
MutableByteIntMap |
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) |
MutableIntByteMap |
flipUniqueValues() |
void |
forEachKey(ByteProcedure procedure) |
void |
forEachKeyValue(ByteIntProcedure procedure) |
int |
get(byte key) |
int |
getAndPut(byte key,
int putValue,
int defaultValue) |
int |
getIfAbsent(byte key,
int ifAbsent) |
int |
getIfAbsentPut(byte key,
int value) |
int |
getIfAbsentPut(byte key,
IntFunction0 function) |
<P> int |
getIfAbsentPutWith(byte key,
IntFunction<? super P> function,
P parameter) |
int |
getIfAbsentPutWithKey(byte key,
ByteToIntFunction function) |
int |
getOrThrow(byte key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
ObjectIntToObjectFunction<? super V,? extends V> function) |
MutableIntIterator |
intIterator() |
MutableByteSet |
keySet() |
LazyByteIterable |
keysView() |
RichIterable<ByteIntPair> |
keyValuesView() |
static ByteIntHashMap |
newWithKeysValues(byte key1,
int value1) |
static ByteIntHashMap |
newWithKeysValues(byte key1,
int value1,
byte key2,
int value2) |
static ByteIntHashMap |
newWithKeysValues(byte key1,
int value1,
byte key2,
int value2,
byte key3,
int value3) |
static ByteIntHashMap |
newWithKeysValues(byte key1,
int value1,
byte key2,
int value2,
byte key3,
int value3,
byte key4,
int value4) |
void |
put(byte key,
int value) |
void |
putAll(ByteIntMap map) |
void |
readExternal(ObjectInput in) |
ByteIntHashMap |
reject(ByteIntPredicate predicate) |
void |
remove(byte key) |
void |
removeKey(byte key) |
int |
removeKeyIfAbsent(byte key,
int value) |
ByteIntHashMap |
select(ByteIntPredicate predicate) |
ImmutableByteIntMap |
toImmutable() |
String |
toString() |
int |
updateValue(byte key,
int initialValueIfAbsent,
IntToIntFunction function) |
void |
updateValues(ByteIntToIntFunction function) |
MutableIntCollection |
values() |
ByteIntHashMap |
withKeysValues(byte key1,
int value1,
byte key2,
int value2) |
ByteIntHashMap |
withKeysValues(byte key1,
int value1,
byte key2,
int value2,
byte key3,
int value3) |
ByteIntHashMap |
withKeysValues(byte key1,
int value1,
byte key2,
int value2,
byte key3,
int value3,
byte key4,
int value4) |
ByteIntHashMap |
withKeyValue(byte key1,
int value1) |
ByteIntHashMap |
withoutAllKeys(ByteIterable keys) |
ByteIntHashMap |
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 ByteIntHashMap()
public ByteIntHashMap(int initialCapacity)
public ByteIntHashMap(ByteIntMap map)
public static ByteIntHashMap newWithKeysValues(byte key1, int value1)
public static ByteIntHashMap newWithKeysValues(byte key1, int value1, byte key2, int value2)
public static ByteIntHashMap newWithKeysValues(byte key1, int value1, byte key2, int value2, byte key3, int value3)
public static ByteIntHashMap newWithKeysValues(byte key1, int value1, byte key2, int value2, byte key3, int value3, byte key4, int value4)
public boolean equals(Object obj)
equals in interface ByteIntMapequals in class Objectpublic int hashCode()
hashCode in interface ByteIntMaphashCode in class Objectpublic String toString()
toString in interface ByteIntMaptoString in interface PrimitiveIterabletoString in class AbstractIntIterablepublic MutableIntIterator intIterator()
intIterator in interface IntIterableintIterator in interface MutableIntValuesMappublic <V> V injectInto(V injectedValue,
ObjectIntToObjectFunction<? super V,? extends V> function)
injectInto in interface IntIterablepublic void clear()
clear in interface MutableIntValuesMapclear in interface MutableByteKeysMappublic void put(byte key,
int value)
put in interface MutableByteIntMappublic void putAll(ByteIntMap map)
putAll in interface MutableByteIntMappublic void updateValues(ByteIntToIntFunction function)
updateValues in interface MutableByteIntMappublic void removeKey(byte key)
removeKey in interface MutableByteIntMapremoveKey in interface MutableByteKeysMappublic void remove(byte key)
remove in interface MutableByteIntMappublic int removeKeyIfAbsent(byte key,
int value)
removeKeyIfAbsent in interface MutableByteIntMappublic int getIfAbsentPut(byte key,
int value)
getIfAbsentPut in interface MutableByteIntMappublic int getAndPut(byte key,
int putValue,
int defaultValue)
getAndPut in interface MutableByteIntMappublic int getIfAbsentPut(byte key,
IntFunction0 function)
getIfAbsentPut in interface MutableByteIntMappublic <P> int getIfAbsentPutWith(byte key,
IntFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableByteIntMappublic int getIfAbsentPutWithKey(byte key,
ByteToIntFunction function)
getIfAbsentPutWithKey in interface MutableByteIntMappublic int addToValue(byte key,
int toBeAdded)
addToValue in interface MutableByteIntMappublic int updateValue(byte key,
int initialValueIfAbsent,
IntToIntFunction function)
updateValue in interface MutableByteIntMappublic ByteIntHashMap withKeyValue(byte key1, int value1)
withKeyValue in interface MutableByteIntMappublic ByteIntHashMap withKeysValues(byte key1, int value1, byte key2, int value2)
public ByteIntHashMap withKeysValues(byte key1, int value1, byte key2, int value2, byte key3, int value3)
public ByteIntHashMap withKeysValues(byte key1, int value1, byte key2, int value2, byte key3, int value3, byte key4, int value4)
public ByteIntHashMap withoutKey(byte key)
withoutKey in interface MutableByteIntMappublic ByteIntHashMap withoutAllKeys(ByteIterable keys)
withoutAllKeys in interface MutableByteIntMappublic MutableByteIntMap asUnmodifiable()
asUnmodifiable in interface MutableByteIntMappublic MutableByteIntMap asSynchronized()
asSynchronized in interface MutableByteIntMappublic ImmutableByteIntMap toImmutable()
toImmutable in interface ByteIntMappublic int get(byte key)
get in interface ByteIntMappublic int getIfAbsent(byte key,
int ifAbsent)
getIfAbsent in interface ByteIntMappublic int getOrThrow(byte key)
getOrThrow in interface ByteIntMappublic boolean containsKey(byte key)
containsKey in interface ByteIntMapcontainsKey in interface ByteKeysMappublic void forEachKey(ByteProcedure procedure)
forEachKey in interface ByteIntMapforEachKey in interface ByteKeysMappublic void forEachKeyValue(ByteIntProcedure procedure)
forEachKeyValue in interface ByteIntMappublic LazyByteIterable keysView()
keysView in interface ByteIntMappublic RichIterable<ByteIntPair> keyValuesView()
keyValuesView in interface ByteIntMappublic MutableIntByteMap flipUniqueValues()
flipUniqueValues in interface ByteIntMapflipUniqueValues in interface MutableByteIntMappublic ByteIntHashMap select(ByteIntPredicate predicate)
select in interface ByteIntMapselect in interface MutableByteIntMappublic ByteIntHashMap reject(ByteIntPredicate predicate)
reject in interface ByteIntMapreject in interface MutableByteIntMappublic 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 ByteIntMappublic MutableIntCollection values()
values in interface IntValuesMapCopyright © 2004–2022. All rights reserved.