public class LongByteHashMap extends Object implements MutableLongByteMap, Externalizable
| Constructor and Description |
|---|
LongByteHashMap() |
LongByteHashMap(int initialCapacity) |
LongByteHashMap(LongByteMap map) |
| Modifier and Type | Method and Description |
|---|---|
byte |
addToValue(long key,
byte toBeAdded) |
boolean |
allSatisfy(BytePredicate predicate) |
boolean |
anySatisfy(BytePredicate predicate) |
void |
appendString(Appendable appendable)
Prints a string representation of this collection onto the given
Appendable. |
void |
appendString(Appendable appendable,
String separator)
Prints a string representation of this collection onto the given
Appendable. |
void |
appendString(Appendable appendable,
String start,
String separator,
String end)
Prints a string representation of this collection onto the given
Appendable. |
LazyByteIterable |
asLazy() |
MutableLongByteMap |
asSynchronized() |
MutableLongByteMap |
asUnmodifiable() |
double |
average() |
ByteIterator |
byteIterator() |
void |
clear() |
<V> MutableCollection<V> |
collect(ByteToObjectFunction<? extends V> function) |
void |
compact()
Rehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels.
|
boolean |
contains(byte value) |
boolean |
containsAll(byte... source) |
boolean |
containsAll(ByteIterable source) |
boolean |
containsKey(long key) |
boolean |
containsValue(byte value) |
int |
count(BytePredicate predicate) |
byte |
detectIfNone(BytePredicate predicate,
byte value) |
boolean |
equals(Object obj)
Follows the same general contract as
Map.equals(Object). |
void |
forEach(ByteProcedure procedure) |
void |
forEachKey(LongProcedure procedure) |
void |
forEachKeyValue(LongByteProcedure procedure) |
void |
forEachValue(ByteProcedure 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) |
boolean |
isEmpty()
Returns true if this iterable has zero items.
|
MutableLongSet |
keySet() |
LazyLongIterable |
keysView() |
RichIterable<LongBytePair> |
keyValuesView() |
String |
makeString()
Returns a string representation of this collection by delegating to
PrimitiveIterable.makeString(String) and defaulting
the separator parameter to the characters ", " (comma and space). |
String |
makeString(String separator)
Returns a string representation of this collection by delegating to
PrimitiveIterable.makeString(String, String, String)
and defaulting the start and end parameters to "" (the empty String). |
String |
makeString(String start,
String separator,
String end)
Returns a string representation of this collection.
|
byte |
max() |
byte |
maxIfEmpty(byte defaultValue) |
double |
median() |
byte |
min() |
byte |
minIfEmpty(byte defaultValue) |
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) |
boolean |
noneSatisfy(BytePredicate predicate) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
void |
put(long key,
byte value) |
void |
putAll(LongByteMap map) |
void |
readExternal(ObjectInput in) |
MutableByteCollection |
reject(BytePredicate predicate) |
LongByteHashMap |
reject(LongBytePredicate predicate) |
void |
remove(long key) |
void |
removeKey(long key) |
byte |
removeKeyIfAbsent(long key,
byte value) |
MutableByteCollection |
select(BytePredicate predicate) |
LongByteHashMap |
select(LongBytePredicate predicate) |
int |
size()
Returns the number of items in this iterable.
|
long |
sum() |
byte[] |
toArray() |
MutableByteBag |
toBag() |
ImmutableLongByteMap |
toImmutable() |
MutableByteList |
toList() |
MutableByteSet |
toSet() |
byte[] |
toSortedArray() |
MutableByteList |
toSortedList() |
String |
toString()
Returns a string representation of this LongByteMap.
|
byte |
updateValue(long key,
byte initialValueIfAbsent,
ByteToByteFunction 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) |
public 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()
LongByteMaptoString in interface LongByteMaptoString in interface PrimitiveIterabletoString in class Objectpublic int size()
PrimitiveIterablesize in interface PrimitiveIterablepublic boolean isEmpty()
PrimitiveIterableisEmpty in interface PrimitiveIterablepublic boolean notEmpty()
PrimitiveIterablenotEmpty in interface PrimitiveIterablepublic String makeString()
PrimitiveIterablePrimitiveIterable.makeString(String) and defaulting
the separator parameter to the characters ", " (comma and space).makeString in interface PrimitiveIterablepublic String makeString(String separator)
PrimitiveIterablePrimitiveIterable.makeString(String, String, String)
and defaulting the start and end parameters to "" (the empty String).makeString in interface PrimitiveIterablepublic String makeString(String start, String separator, String end)
PrimitiveIterablemakeString in interface PrimitiveIterablepublic void appendString(Appendable appendable)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString().appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String separator)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String).appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String, String, String).appendString in interface PrimitiveIterablepublic ByteIterator byteIterator()
byteIterator in interface ByteIterablepublic byte[] toArray()
toArray in interface ByteIterablepublic boolean contains(byte value)
contains in interface ByteIterablepublic boolean containsAll(byte... source)
containsAll in interface ByteIterablepublic boolean containsAll(ByteIterable source)
containsAll in interface ByteIterablepublic void forEach(ByteProcedure procedure)
forEach in interface ByteIterablepublic MutableByteCollection select(BytePredicate predicate)
select in interface ByteIterableselect in interface MutableLongByteMappublic MutableByteCollection reject(BytePredicate predicate)
reject in interface ByteIterablereject in interface MutableLongByteMappublic <V> MutableCollection<V> collect(ByteToObjectFunction<? extends V> function)
collect in interface ByteIterablecollect in interface MutableLongByteMappublic byte detectIfNone(BytePredicate predicate, byte value)
detectIfNone in interface ByteIterablepublic int count(BytePredicate predicate)
count in interface ByteIterablepublic boolean anySatisfy(BytePredicate predicate)
anySatisfy in interface ByteIterablepublic boolean allSatisfy(BytePredicate predicate)
allSatisfy in interface ByteIterablepublic boolean noneSatisfy(BytePredicate predicate)
noneSatisfy in interface ByteIterablepublic <V> V injectInto(V injectedValue,
ObjectByteToObjectFunction<? super V,? extends V> function)
injectInto in interface ByteIterablepublic MutableByteList toList()
toList in interface ByteIterablepublic MutableByteSet toSet()
toSet in interface ByteIterablepublic MutableByteBag toBag()
toBag in interface ByteIterablepublic LazyByteIterable asLazy()
asLazy in interface ByteIterablepublic void clear()
clear in interface MutableLongByteMappublic void put(long key,
byte value)
put in interface MutableLongByteMappublic void putAll(LongByteMap map)
putAll in interface MutableLongByteMappublic void removeKey(long key)
removeKey in interface MutableLongByteMappublic 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 LongByteMappublic boolean containsValue(byte value)
containsValue in interface LongByteMappublic void forEachValue(ByteProcedure procedure)
forEachValue in interface LongByteMappublic void forEachKey(LongProcedure procedure)
forEachKey in interface LongByteMappublic void forEachKeyValue(LongByteProcedure procedure)
forEachKeyValue in interface LongByteMappublic LazyLongIterable keysView()
keysView in interface LongByteMappublic RichIterable<LongBytePair> keyValuesView()
keyValuesView in interface LongByteMappublic LongByteHashMap select(LongBytePredicate predicate)
select in interface LongByteMapselect in interface MutableLongByteMappublic LongByteHashMap reject(LongBytePredicate predicate)
reject in interface LongByteMapreject in interface MutableLongByteMappublic long sum()
sum in interface ByteIterablepublic byte max()
max in interface ByteIterablepublic byte maxIfEmpty(byte defaultValue)
maxIfEmpty in interface ByteIterablepublic byte min()
min in interface ByteIterablepublic byte minIfEmpty(byte defaultValue)
minIfEmpty in interface ByteIterablepublic double average()
average in interface ByteIterablepublic double median()
median in interface ByteIterablepublic byte[] toSortedArray()
toSortedArray in interface ByteIterablepublic MutableByteList toSortedList()
toSortedList in interface ByteIterablepublic 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 LongByteMapCopyright © 2004–2017. All rights reserved.