public class ByteLongHashMap extends AbstractMutableLongValuesMap implements MutableByteLongMap, Externalizable, MutableByteKeysMap
| Constructor and Description |
|---|
ByteLongHashMap() |
ByteLongHashMap(ByteLongMap map) |
ByteLongHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
long |
addToValue(byte key,
long toBeAdded) |
MutableByteLongMap |
asSynchronized() |
MutableByteLongMap |
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) |
MutableLongByteMap |
flipUniqueValues() |
void |
forEachKey(ByteProcedure procedure) |
void |
forEachKeyValue(ByteLongProcedure procedure) |
long |
get(byte key) |
long |
getAndPut(byte key,
long putValue,
long defaultValue) |
long |
getIfAbsent(byte key,
long ifAbsent) |
long |
getIfAbsentPut(byte key,
long value) |
long |
getIfAbsentPut(byte key,
LongFunction0 function) |
<P> long |
getIfAbsentPutWith(byte key,
LongFunction<? super P> function,
P parameter) |
long |
getIfAbsentPutWithKey(byte key,
ByteToLongFunction function) |
long |
getOrThrow(byte key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
ObjectLongToObjectFunction<? super V,? extends V> function) |
MutableByteSet |
keySet() |
LazyByteIterable |
keysView() |
RichIterable<ByteLongPair> |
keyValuesView() |
MutableLongIterator |
longIterator() |
static ByteLongHashMap |
newWithKeysValues(byte key1,
long value1) |
static ByteLongHashMap |
newWithKeysValues(byte key1,
long value1,
byte key2,
long value2) |
static ByteLongHashMap |
newWithKeysValues(byte key1,
long value1,
byte key2,
long value2,
byte key3,
long value3) |
static ByteLongHashMap |
newWithKeysValues(byte key1,
long value1,
byte key2,
long value2,
byte key3,
long value3,
byte key4,
long value4) |
void |
put(byte key,
long value) |
void |
putAll(ByteLongMap map) |
void |
readExternal(ObjectInput in) |
ByteLongHashMap |
reject(ByteLongPredicate predicate) |
void |
remove(byte key) |
void |
removeKey(byte key) |
long |
removeKeyIfAbsent(byte key,
long value) |
ByteLongHashMap |
select(ByteLongPredicate predicate) |
ImmutableByteLongMap |
toImmutable() |
String |
toString() |
long |
updateValue(byte key,
long initialValueIfAbsent,
LongToLongFunction function) |
void |
updateValues(ByteLongToLongFunction function) |
MutableLongCollection |
values() |
ByteLongHashMap |
withKeysValues(byte key1,
long value1,
byte key2,
long value2) |
ByteLongHashMap |
withKeysValues(byte key1,
long value1,
byte key2,
long value2,
byte key3,
long value3) |
ByteLongHashMap |
withKeysValues(byte key1,
long value1,
byte key2,
long value2,
byte key3,
long value3,
byte key4,
long value4) |
ByteLongHashMap |
withKeyValue(byte key1,
long value1) |
ByteLongHashMap |
withoutAllKeys(ByteIterable keys) |
ByteLongHashMap |
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 ByteLongHashMap()
public ByteLongHashMap(int initialCapacity)
public ByteLongHashMap(ByteLongMap map)
public static ByteLongHashMap newWithKeysValues(byte key1, long value1)
public static ByteLongHashMap newWithKeysValues(byte key1, long value1, byte key2, long value2)
public static ByteLongHashMap newWithKeysValues(byte key1, long value1, byte key2, long value2, byte key3, long value3)
public static ByteLongHashMap newWithKeysValues(byte key1, long value1, byte key2, long value2, byte key3, long value3, byte key4, long value4)
public boolean equals(Object obj)
equals in interface ByteLongMapequals in class Objectpublic int hashCode()
hashCode in interface ByteLongMaphashCode in class Objectpublic String toString()
toString in interface ByteLongMaptoString in interface PrimitiveIterabletoString in class AbstractLongIterablepublic MutableLongIterator longIterator()
longIterator in interface LongIterablelongIterator in interface MutableLongValuesMappublic <V> V injectInto(V injectedValue,
ObjectLongToObjectFunction<? super V,? extends V> function)
injectInto in interface LongIterablepublic void clear()
clear in interface MutableLongValuesMapclear in interface MutableByteKeysMappublic void put(byte key,
long value)
put in interface MutableByteLongMappublic void putAll(ByteLongMap map)
putAll in interface MutableByteLongMappublic void updateValues(ByteLongToLongFunction function)
updateValues in interface MutableByteLongMappublic void removeKey(byte key)
removeKey in interface MutableByteLongMapremoveKey in interface MutableByteKeysMappublic void remove(byte key)
remove in interface MutableByteLongMappublic long removeKeyIfAbsent(byte key,
long value)
removeKeyIfAbsent in interface MutableByteLongMappublic long getIfAbsentPut(byte key,
long value)
getIfAbsentPut in interface MutableByteLongMappublic long getAndPut(byte key,
long putValue,
long defaultValue)
getAndPut in interface MutableByteLongMappublic long getIfAbsentPut(byte key,
LongFunction0 function)
getIfAbsentPut in interface MutableByteLongMappublic <P> long getIfAbsentPutWith(byte key,
LongFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableByteLongMappublic long getIfAbsentPutWithKey(byte key,
ByteToLongFunction function)
getIfAbsentPutWithKey in interface MutableByteLongMappublic long addToValue(byte key,
long toBeAdded)
addToValue in interface MutableByteLongMappublic long updateValue(byte key,
long initialValueIfAbsent,
LongToLongFunction function)
updateValue in interface MutableByteLongMappublic ByteLongHashMap withKeyValue(byte key1, long value1)
withKeyValue in interface MutableByteLongMappublic ByteLongHashMap withKeysValues(byte key1, long value1, byte key2, long value2)
public ByteLongHashMap withKeysValues(byte key1, long value1, byte key2, long value2, byte key3, long value3)
public ByteLongHashMap withKeysValues(byte key1, long value1, byte key2, long value2, byte key3, long value3, byte key4, long value4)
public ByteLongHashMap withoutKey(byte key)
withoutKey in interface MutableByteLongMappublic ByteLongHashMap withoutAllKeys(ByteIterable keys)
withoutAllKeys in interface MutableByteLongMappublic MutableByteLongMap asUnmodifiable()
asUnmodifiable in interface MutableByteLongMappublic MutableByteLongMap asSynchronized()
asSynchronized in interface MutableByteLongMappublic ImmutableByteLongMap toImmutable()
toImmutable in interface ByteLongMappublic long get(byte key)
get in interface ByteLongMappublic long getIfAbsent(byte key,
long ifAbsent)
getIfAbsent in interface ByteLongMappublic long getOrThrow(byte key)
getOrThrow in interface ByteLongMappublic boolean containsKey(byte key)
containsKey in interface ByteLongMapcontainsKey in interface ByteKeysMappublic void forEachKey(ByteProcedure procedure)
forEachKey in interface ByteLongMapforEachKey in interface ByteKeysMappublic void forEachKeyValue(ByteLongProcedure procedure)
forEachKeyValue in interface ByteLongMappublic LazyByteIterable keysView()
keysView in interface ByteLongMappublic RichIterable<ByteLongPair> keyValuesView()
keyValuesView in interface ByteLongMappublic MutableLongByteMap flipUniqueValues()
flipUniqueValues in interface ByteLongMapflipUniqueValues in interface MutableByteLongMappublic ByteLongHashMap select(ByteLongPredicate predicate)
select in interface ByteLongMapselect in interface MutableByteLongMappublic ByteLongHashMap reject(ByteLongPredicate predicate)
reject in interface ByteLongMapreject in interface MutableByteLongMappublic 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 ByteLongMappublic MutableLongCollection values()
values in interface LongValuesMapCopyright © 2004–2022. All rights reserved.