public class LongByteHashMap extends AbstractMutableByteValuesMap implements MutableLongByteMap, Externalizable, MutableLongKeysMap
| Constructor and Description |
|---|
LongByteHashMap() |
LongByteHashMap(int initialCapacity) |
LongByteHashMap(LongByteMap map) |
| Modifier and Type | Method and Description |
|---|---|
byte |
addToValue(long key,
byte toBeAdded) |
MutableLongByteMap |
asSynchronized() |
MutableLongByteMap |
asUnmodifiable() |
MutableByteIterator |
byteIterator() |
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(long key) |
boolean |
equals(Object obj) |
MutableByteLongMap |
flipUniqueValues() |
void |
forEachKey(LongProcedure procedure) |
void |
forEachKeyValue(LongByteProcedure procedure) |
byte |
get(long key) |
byte |
getAndPut(long key,
byte putValue,
byte defaultValue) |
byte |
getIfAbsent(long key,
byte ifAbsent) |
byte |
getIfAbsentPut(long key,
byte value) |
byte |
getIfAbsentPut(long key,
ByteFunction0 function) |
<P> byte |
getIfAbsentPutWith(long key,
ByteFunction<? super P> function,
P parameter) |
byte |
getIfAbsentPutWithKey(long key,
LongToByteFunction function) |
byte |
getOrThrow(long key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
ObjectByteToObjectFunction<? super V,? extends V> function) |
MutableLongSet |
keySet() |
LazyLongIterable |
keysView() |
RichIterable<LongBytePair> |
keyValuesView() |
static LongByteHashMap |
newWithKeysValues(long key1,
byte value1) |
static LongByteHashMap |
newWithKeysValues(long key1,
byte value1,
long key2,
byte value2) |
static LongByteHashMap |
newWithKeysValues(long key1,
byte value1,
long key2,
byte value2,
long key3,
byte value3) |
static LongByteHashMap |
newWithKeysValues(long key1,
byte value1,
long key2,
byte value2,
long key3,
byte value3,
long key4,
byte value4) |
void |
put(long key,
byte value) |
void |
putAll(LongByteMap map) |
void |
readExternal(ObjectInput in) |
LongByteHashMap |
reject(LongBytePredicate predicate) |
void |
remove(long key) |
void |
removeKey(long key) |
byte |
removeKeyIfAbsent(long key,
byte value) |
LongByteHashMap |
select(LongBytePredicate predicate) |
ImmutableLongByteMap |
toImmutable() |
String |
toString() |
byte |
updateValue(long key,
byte initialValueIfAbsent,
ByteToByteFunction function) |
void |
updateValues(LongByteToByteFunction function) |
MutableByteCollection |
values() |
LongByteHashMap |
withKeysValues(long key1,
byte value1,
long key2,
byte value2) |
LongByteHashMap |
withKeysValues(long key1,
byte value1,
long key2,
byte value2,
long key3,
byte value3) |
LongByteHashMap |
withKeysValues(long key1,
byte value1,
long key2,
byte value2,
long key3,
byte value3,
long key4,
byte value4) |
LongByteHashMap |
withKeyValue(long key1,
byte value1) |
LongByteHashMap |
withoutAllKeys(LongIterable keys) |
LongByteHashMap |
withoutKey(long 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 LongByteHashMap()
public LongByteHashMap(int initialCapacity)
public LongByteHashMap(LongByteMap map)
public static LongByteHashMap newWithKeysValues(long key1, byte value1)
public static LongByteHashMap newWithKeysValues(long key1, byte value1, long key2, byte value2)
public static LongByteHashMap newWithKeysValues(long key1, byte value1, long key2, byte value2, long key3, byte value3)
public static LongByteHashMap newWithKeysValues(long key1, byte value1, long key2, byte value2, long key3, byte value3, long key4, byte value4)
public boolean equals(Object obj)
equals in interface LongByteMapequals in class Objectpublic int hashCode()
hashCode in interface LongByteMaphashCode in class Objectpublic String toString()
toString in interface LongByteMaptoString in interface PrimitiveIterabletoString in class AbstractByteIterablepublic MutableByteIterator byteIterator()
byteIterator in interface ByteIterablebyteIterator in interface MutableByteValuesMappublic <V> V injectInto(V injectedValue,
ObjectByteToObjectFunction<? super V,? extends V> function)
injectInto in interface ByteIterablepublic void clear()
clear in interface MutableByteValuesMapclear in interface MutableLongKeysMappublic void put(long key,
byte value)
put in interface MutableLongByteMappublic void putAll(LongByteMap map)
putAll in interface MutableLongByteMappublic void updateValues(LongByteToByteFunction function)
updateValues in interface MutableLongByteMappublic void removeKey(long key)
removeKey in interface MutableLongByteMapremoveKey in interface MutableLongKeysMappublic void remove(long key)
remove in interface MutableLongByteMappublic byte removeKeyIfAbsent(long key,
byte value)
removeKeyIfAbsent in interface MutableLongByteMappublic byte getIfAbsentPut(long key,
byte value)
getIfAbsentPut in interface MutableLongByteMappublic byte getAndPut(long key,
byte putValue,
byte defaultValue)
getAndPut in interface MutableLongByteMappublic byte getIfAbsentPut(long key,
ByteFunction0 function)
getIfAbsentPut in interface MutableLongByteMappublic <P> byte getIfAbsentPutWith(long key,
ByteFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableLongByteMappublic byte getIfAbsentPutWithKey(long key,
LongToByteFunction function)
getIfAbsentPutWithKey in interface MutableLongByteMappublic byte addToValue(long key,
byte toBeAdded)
addToValue in interface MutableLongByteMappublic byte updateValue(long key,
byte initialValueIfAbsent,
ByteToByteFunction function)
updateValue in interface MutableLongByteMappublic LongByteHashMap withKeyValue(long key1, byte value1)
withKeyValue in interface MutableLongByteMappublic LongByteHashMap withKeysValues(long key1, byte value1, long key2, byte value2)
public LongByteHashMap withKeysValues(long key1, byte value1, long key2, byte value2, long key3, byte value3)
public LongByteHashMap withKeysValues(long key1, byte value1, long key2, byte value2, long key3, byte value3, long key4, byte value4)
public LongByteHashMap withoutKey(long key)
withoutKey in interface MutableLongByteMappublic LongByteHashMap withoutAllKeys(LongIterable keys)
withoutAllKeys in interface MutableLongByteMappublic MutableLongByteMap asUnmodifiable()
asUnmodifiable in interface MutableLongByteMappublic MutableLongByteMap asSynchronized()
asSynchronized in interface MutableLongByteMappublic ImmutableLongByteMap toImmutable()
toImmutable in interface LongByteMappublic byte get(long key)
get in interface LongByteMappublic byte getIfAbsent(long key,
byte ifAbsent)
getIfAbsent in interface LongByteMappublic byte getOrThrow(long key)
getOrThrow in interface LongByteMappublic boolean containsKey(long key)
containsKey in interface LongByteMapcontainsKey in interface LongKeysMappublic void forEachKey(LongProcedure procedure)
forEachKey in interface LongByteMapforEachKey in interface LongKeysMappublic void forEachKeyValue(LongByteProcedure procedure)
forEachKeyValue in interface LongByteMappublic LazyLongIterable keysView()
keysView in interface LongByteMappublic RichIterable<LongBytePair> keyValuesView()
keyValuesView in interface LongByteMappublic MutableByteLongMap flipUniqueValues()
flipUniqueValues in interface LongByteMapflipUniqueValues in interface MutableLongByteMappublic LongByteHashMap select(LongBytePredicate predicate)
select in interface LongByteMapselect in interface MutableLongByteMappublic LongByteHashMap reject(LongBytePredicate predicate)
reject in interface LongByteMapreject in interface MutableLongByteMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void compact()
public MutableLongSet keySet()
keySet in interface LongByteMappublic MutableByteCollection values()
values in interface ByteValuesMapCopyright © 2004–2022. All rights reserved.