public class ObjectByteHashMap<K> extends Object implements org.eclipse.collections.api.map.primitive.MutableObjectByteMap<K>, Externalizable
| Modifier and Type | Field and Description |
|---|---|
static byte |
EMPTY_VALUE |
| Constructor and Description |
|---|
ObjectByteHashMap() |
ObjectByteHashMap(int initialCapacity) |
ObjectByteHashMap(org.eclipse.collections.api.map.primitive.ObjectByteMap<? extends K> map) |
| Modifier and Type | Method and Description |
|---|---|
byte |
addToValue(K key,
byte toBeAdded) |
boolean |
allSatisfy(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate) |
boolean |
anySatisfy(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate) |
void |
appendString(Appendable appendable) |
void |
appendString(Appendable appendable,
String separator) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
org.eclipse.collections.api.LazyByteIterable |
asLazy() |
org.eclipse.collections.api.map.primitive.MutableObjectByteMap<K> |
asSynchronized() |
org.eclipse.collections.api.map.primitive.MutableObjectByteMap<K> |
asUnmodifiable() |
double |
average() |
org.eclipse.collections.api.iterator.MutableByteIterator |
byteIterator() |
void |
clear() |
<V> org.eclipse.collections.api.collection.MutableCollection<V> |
collect(org.eclipse.collections.api.block.function.primitive.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(org.eclipse.collections.api.ByteIterable source) |
boolean |
containsKey(Object key) |
boolean |
containsValue(byte value) |
int |
count(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate) |
byte |
detectIfNone(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate,
byte ifNone) |
void |
each(org.eclipse.collections.api.block.procedure.primitive.ByteProcedure procedure) |
boolean |
equals(Object obj) |
void |
forEach(org.eclipse.collections.api.block.procedure.primitive.ByteProcedure procedure) |
void |
forEachKey(org.eclipse.collections.api.block.procedure.Procedure<? super K> procedure) |
void |
forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ObjectByteProcedure<? super K> procedure) |
void |
forEachValue(org.eclipse.collections.api.block.procedure.primitive.ByteProcedure procedure) |
byte |
get(Object key) |
byte |
getIfAbsent(Object key,
byte ifAbsent) |
byte |
getIfAbsentPut(K key,
byte value) |
byte |
getIfAbsentPut(K key,
org.eclipse.collections.api.block.function.primitive.ByteFunction0 function) |
<P> byte |
getIfAbsentPutWith(K key,
org.eclipse.collections.api.block.function.primitive.ByteFunction<? super P> function,
P parameter) |
byte |
getIfAbsentPutWithKey(K key,
org.eclipse.collections.api.block.function.primitive.ByteFunction<? super K> function) |
byte |
getOrThrow(Object key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectByteToObjectFunction<? super V,? extends V> function) |
boolean |
isEmpty() |
Set<K> |
keySet() |
org.eclipse.collections.api.LazyIterable<K> |
keysView() |
org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.ObjectBytePair<K>> |
keyValuesView() |
String |
makeString() |
String |
makeString(String separator) |
String |
makeString(String start,
String separator,
String end) |
byte |
max() |
byte |
maxIfEmpty(byte defaultValue) |
double |
median() |
byte |
min() |
byte |
minIfEmpty(byte defaultValue) |
static <K> ObjectByteHashMap<K> |
newMap() |
static <K> ObjectByteHashMap<K> |
newWithKeysValues(K key1,
byte value1) |
static <K> ObjectByteHashMap<K> |
newWithKeysValues(K key1,
byte value1,
K key2,
byte value2) |
static <K> ObjectByteHashMap<K> |
newWithKeysValues(K key1,
byte value1,
K key2,
byte value2,
K key3,
byte value3) |
static <K> ObjectByteHashMap<K> |
newWithKeysValues(K key1,
byte value1,
K key2,
byte value2,
K key3,
byte value3,
K key4,
byte value4) |
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate) |
boolean |
notEmpty() |
void |
put(K key,
byte value) |
void |
putAll(org.eclipse.collections.api.map.primitive.ObjectByteMap<? extends K> map) |
void |
readExternal(ObjectInput in) |
org.eclipse.collections.api.collection.primitive.MutableByteCollection |
reject(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate) |
ObjectByteHashMap<K> |
reject(org.eclipse.collections.api.block.predicate.primitive.ObjectBytePredicate<? super K> predicate) |
void |
remove(Object key) |
void |
removeKey(K key) |
byte |
removeKeyIfAbsent(K key,
byte value) |
org.eclipse.collections.api.collection.primitive.MutableByteCollection |
select(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate) |
ObjectByteHashMap<K> |
select(org.eclipse.collections.api.block.predicate.primitive.ObjectBytePredicate<? super K> predicate) |
int |
size() |
long |
sum() |
byte[] |
toArray() |
org.eclipse.collections.api.bag.primitive.MutableByteBag |
toBag() |
org.eclipse.collections.api.map.primitive.ImmutableObjectByteMap<K> |
toImmutable() |
org.eclipse.collections.api.list.primitive.MutableByteList |
toList() |
org.eclipse.collections.api.set.primitive.MutableByteSet |
toSet() |
byte[] |
toSortedArray() |
org.eclipse.collections.api.list.primitive.MutableByteList |
toSortedList() |
String |
toString() |
byte |
updateValue(K key,
byte initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.ByteToByteFunction function) |
org.eclipse.collections.api.collection.primitive.MutableByteCollection |
values() |
ObjectByteHashMap<K> |
withKeysValues(K key1,
byte value1,
K key2,
byte value2) |
ObjectByteHashMap<K> |
withKeysValues(K key1,
byte value1,
K key2,
byte value2,
K key3,
byte value3) |
ObjectByteHashMap<K> |
withKeysValues(K key1,
byte value1,
K key2,
byte value2,
K key3,
byte value3,
K key4,
byte value4) |
ObjectByteHashMap<K> |
withKeyValue(K key1,
byte value1) |
ObjectByteHashMap<K> |
withoutAllKeys(Iterable<? extends K> keys) |
ObjectByteHashMap<K> |
withoutKey(K key) |
void |
writeExternal(ObjectOutput out) |
public static final byte EMPTY_VALUE
public ObjectByteHashMap()
public ObjectByteHashMap(int initialCapacity)
public ObjectByteHashMap(org.eclipse.collections.api.map.primitive.ObjectByteMap<? extends K> map)
public static <K> ObjectByteHashMap<K> newMap()
public static <K> ObjectByteHashMap<K> newWithKeysValues(K key1, byte value1)
public static <K> ObjectByteHashMap<K> newWithKeysValues(K key1, byte value1, K key2, byte value2)
public static <K> ObjectByteHashMap<K> newWithKeysValues(K key1, byte value1, K key2, byte value2, K key3, byte value3)
public static <K> ObjectByteHashMap<K> newWithKeysValues(K key1, byte value1, K key2, byte value2, K key3, byte value3, K key4, byte value4)
public String toString()
public int size()
size in interface org.eclipse.collections.api.PrimitiveIterablepublic boolean isEmpty()
isEmpty in interface org.eclipse.collections.api.PrimitiveIterablepublic boolean notEmpty()
notEmpty in interface org.eclipse.collections.api.PrimitiveIterablepublic String makeString()
makeString in interface org.eclipse.collections.api.PrimitiveIterablepublic String makeString(String separator)
makeString in interface org.eclipse.collections.api.PrimitiveIterablepublic String makeString(String start, String separator, String end)
makeString in interface org.eclipse.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable, String separator)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic org.eclipse.collections.api.iterator.MutableByteIterator byteIterator()
byteIterator in interface org.eclipse.collections.api.ByteIterablebyteIterator in interface org.eclipse.collections.api.map.primitive.MutableObjectByteMap<K>public byte[] toArray()
toArray in interface org.eclipse.collections.api.ByteIterablepublic boolean contains(byte value)
contains in interface org.eclipse.collections.api.ByteIterablepublic boolean containsAll(byte... source)
containsAll in interface org.eclipse.collections.api.ByteIterablepublic boolean containsAll(org.eclipse.collections.api.ByteIterable source)
containsAll in interface org.eclipse.collections.api.ByteIterablepublic void clear()
clear in interface org.eclipse.collections.api.map.primitive.MutableObjectByteMap<K>public void put(K key, byte value)
put in interface org.eclipse.collections.api.map.primitive.MutableObjectByteMap<K>public void putAll(org.eclipse.collections.api.map.primitive.ObjectByteMap<? extends K> map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableObjectByteMap<K>public void removeKey(K key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableObjectByteMap<K>public void remove(Object key)
remove in interface org.eclipse.collections.api.map.primitive.MutableObjectByteMap<K>public byte removeKeyIfAbsent(K key, byte value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableObjectByteMap<K>public byte getIfAbsentPut(K key, byte value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableObjectByteMap<K>public byte getIfAbsentPut(K key, org.eclipse.collections.api.block.function.primitive.ByteFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableObjectByteMap<K>public <P> byte getIfAbsentPutWith(K key, org.eclipse.collections.api.block.function.primitive.ByteFunction<? super P> function, P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableObjectByteMap<K>public byte getIfAbsentPutWithKey(K key, org.eclipse.collections.api.block.function.primitive.ByteFunction<? super K> function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableObjectByteMap<K>public byte updateValue(K key, byte initialValueIfAbsent, org.eclipse.collections.api.block.function.primitive.ByteToByteFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableObjectByteMap<K>public byte addToValue(K key, byte toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableObjectByteMap<K>public ObjectByteHashMap<K> withKeyValue(K key1, byte value1)
withKeyValue in interface org.eclipse.collections.api.map.primitive.MutableObjectByteMap<K>public ObjectByteHashMap<K> withKeysValues(K key1, byte value1, K key2, byte value2)
public ObjectByteHashMap<K> withKeysValues(K key1, byte value1, K key2, byte value2, K key3, byte value3)
public ObjectByteHashMap<K> withKeysValues(K key1, byte value1, K key2, byte value2, K key3, byte value3, K key4, byte value4)
public ObjectByteHashMap<K> withoutKey(K key)
withoutKey in interface org.eclipse.collections.api.map.primitive.MutableObjectByteMap<K>public ObjectByteHashMap<K> withoutAllKeys(Iterable<? extends K> keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableObjectByteMap<K>public org.eclipse.collections.api.map.primitive.MutableObjectByteMap<K> asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableObjectByteMap<K>public org.eclipse.collections.api.map.primitive.MutableObjectByteMap<K> asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableObjectByteMap<K>public org.eclipse.collections.api.map.primitive.ImmutableObjectByteMap<K> toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.ObjectByteMap<K>public byte get(Object key)
get in interface org.eclipse.collections.api.map.primitive.ObjectByteMap<K>public byte getOrThrow(Object key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.ObjectByteMap<K>public byte getIfAbsent(Object key, byte ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.ObjectByteMap<K>public boolean containsKey(Object key)
containsKey in interface org.eclipse.collections.api.map.primitive.ObjectByteMap<K>public boolean containsValue(byte value)
containsValue in interface org.eclipse.collections.api.map.primitive.ObjectByteMap<K>public void forEach(org.eclipse.collections.api.block.procedure.primitive.ByteProcedure procedure)
forEach in interface org.eclipse.collections.api.ByteIterablepublic void each(org.eclipse.collections.api.block.procedure.primitive.ByteProcedure procedure)
each in interface org.eclipse.collections.api.ByteIterablepublic void forEachValue(org.eclipse.collections.api.block.procedure.primitive.ByteProcedure procedure)
forEachValue in interface org.eclipse.collections.api.map.primitive.ObjectByteMap<K>public void forEachKey(org.eclipse.collections.api.block.procedure.Procedure<? super K> procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.ObjectByteMap<K>public void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ObjectByteProcedure<? super K> procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.ObjectByteMap<K>public ObjectByteHashMap<K> select(org.eclipse.collections.api.block.predicate.primitive.ObjectBytePredicate<? super K> predicate)
public ObjectByteHashMap<K> reject(org.eclipse.collections.api.block.predicate.primitive.ObjectBytePredicate<? super K> predicate)
public org.eclipse.collections.api.collection.primitive.MutableByteCollection select(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate)
select in interface org.eclipse.collections.api.ByteIterableselect in interface org.eclipse.collections.api.map.primitive.MutableObjectByteMap<K>public org.eclipse.collections.api.collection.primitive.MutableByteCollection reject(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate)
reject in interface org.eclipse.collections.api.ByteIterablereject in interface org.eclipse.collections.api.map.primitive.MutableObjectByteMap<K>public byte detectIfNone(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate,
byte ifNone)
detectIfNone in interface org.eclipse.collections.api.ByteIterablepublic <V> org.eclipse.collections.api.collection.MutableCollection<V> collect(org.eclipse.collections.api.block.function.primitive.ByteToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.ByteIterablecollect in interface org.eclipse.collections.api.map.primitive.MutableObjectByteMap<K>public int count(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate)
count in interface org.eclipse.collections.api.ByteIterablepublic boolean anySatisfy(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate)
anySatisfy in interface org.eclipse.collections.api.ByteIterablepublic boolean allSatisfy(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate)
allSatisfy in interface org.eclipse.collections.api.ByteIterablepublic boolean noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate)
noneSatisfy in interface org.eclipse.collections.api.ByteIterablepublic <V> V injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectByteToObjectFunction<? super V,? extends V> function)
injectInto in interface org.eclipse.collections.api.ByteIterablepublic long sum()
sum in interface org.eclipse.collections.api.ByteIterablepublic byte max()
max in interface org.eclipse.collections.api.ByteIterablepublic byte min()
min in interface org.eclipse.collections.api.ByteIterablepublic byte maxIfEmpty(byte defaultValue)
maxIfEmpty in interface org.eclipse.collections.api.ByteIterablepublic byte minIfEmpty(byte defaultValue)
minIfEmpty in interface org.eclipse.collections.api.ByteIterablepublic double average()
average in interface org.eclipse.collections.api.ByteIterablepublic double median()
median in interface org.eclipse.collections.api.ByteIterablepublic org.eclipse.collections.api.list.primitive.MutableByteList toList()
toList in interface org.eclipse.collections.api.ByteIterablepublic org.eclipse.collections.api.set.primitive.MutableByteSet toSet()
toSet in interface org.eclipse.collections.api.ByteIterablepublic org.eclipse.collections.api.bag.primitive.MutableByteBag toBag()
toBag in interface org.eclipse.collections.api.ByteIterablepublic org.eclipse.collections.api.LazyByteIterable asLazy()
asLazy in interface org.eclipse.collections.api.ByteIterablepublic byte[] toSortedArray()
toSortedArray in interface org.eclipse.collections.api.ByteIterablepublic org.eclipse.collections.api.list.primitive.MutableByteList toSortedList()
toSortedList in interface org.eclipse.collections.api.ByteIterablepublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic org.eclipse.collections.api.LazyIterable<K> keysView()
keysView in interface org.eclipse.collections.api.map.primitive.ObjectByteMap<K>public org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.ObjectBytePair<K>> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.ObjectByteMap<K>public void compact()
public Set<K> keySet()
keySet in interface org.eclipse.collections.api.map.primitive.ObjectByteMap<K>public org.eclipse.collections.api.collection.primitive.MutableByteCollection values()
values in interface org.eclipse.collections.api.map.primitive.ObjectByteMap<K>Copyright © 2004–2017. All rights reserved.