Externalizable, Serializable, ByteIterable, ByteValuesMap, LongByteMap, MutableByteValuesMap, MutableLongByteMap, PrimitiveIterable, MutableLongKeysMap, LongKeysMappublic class LongByteHashMap extends AbstractMutableByteValuesMap implements MutableLongByteMap, Externalizable, MutableLongKeysMap
| Constructor | Description |
|---|---|
LongByteHashMap() |
|
LongByteHashMap(int initialCapacity) |
|
LongByteHashMap(LongByteMap map) |
| Modifier and Type | Method | Description |
|---|---|---|
byte |
addToValue(long key,
byte toBeAdded) |
|
MutableLongByteMap |
asSynchronized() |
|
MutableLongByteMap |
asUnmodifiable() |
|
MutableByteIterator |
byteIterator() |
Returns a primitive iterator that can be used to iterate over the ByteIterable in an
imperative style.
|
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) |
Follows the same general contract as
Map.equals(Object). |
MutableByteLongMap |
flipUniqueValues() |
Return the ByteLongMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
void |
forEachKey(LongProcedure procedure) |
|
void |
forEachKeyValue(LongByteProcedure procedure) |
|
byte |
get(long key) |
|
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() |
Follows the same general contract as
Map.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() |
Returns a string with the elements of this iterable separated by commas with spaces and
enclosed in square brackets.
|
byte |
updateValue(long key,
byte initialValueIfAbsent,
ByteToByteFunction function) |
|
void |
updateValues(LongByteToByteFunction function) |
Updates the values in-place.
|
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) |
asLazy, average, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListallSatisfy, anySatisfy, appendString, chunk, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, select, size, sum, toArrayallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListcontainsValue, forEachValue, tapisEmpty, notEmpty, sizecollect, reject, selectputPair, withAllKeyValuesappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, 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)
LongByteMapMap.equals(Object).equals in interface LongByteMapequals in class Objectpublic int hashCode()
LongByteMapMap.hashCode().hashCode in interface LongByteMaphashCode in class Objectpublic String toString()
PrimitiveIterable
Assert.assertEquals("[]", IntLists.mutable.empty().toString());
Assert.assertEquals("[1]", IntLists.mutable.with(1).toString());
Assert.assertEquals("[1, 2, 3]", IntLists.mutable.with(1, 2, 3).toString());
toString in interface LongByteMaptoString in interface PrimitiveIterabletoString in class AbstractByteIterableAbstractCollection.toString()public MutableByteIterator byteIterator()
ByteIterablebyteIterator 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)
MutableLongByteMapupdateValues in interface MutableLongByteMapfunction - that takes a key and its value and that returns a new value for this keypublic 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 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()
LongByteMapflipUniqueValues 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–2019. All rights reserved.