public class ByteIntHashMap extends AbstractMutableIntValuesMap implements org.eclipse.collections.api.map.primitive.MutableByteIntMap, Externalizable, MutableByteKeysMap
| Constructor and Description |
|---|
ByteIntHashMap() |
ByteIntHashMap(org.eclipse.collections.api.map.primitive.ByteIntMap map) |
ByteIntHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
int |
addToValue(byte key,
int toBeAdded) |
org.eclipse.collections.api.map.primitive.MutableByteIntMap |
asSynchronized() |
org.eclipse.collections.api.map.primitive.MutableByteIntMap |
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) |
void |
forEachKey(org.eclipse.collections.api.block.procedure.primitive.ByteProcedure procedure) |
void |
forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ByteIntProcedure procedure) |
int |
get(byte key) |
int |
getIfAbsent(byte key,
int ifAbsent) |
int |
getIfAbsentPut(byte key,
int value) |
int |
getIfAbsentPut(byte key,
org.eclipse.collections.api.block.function.primitive.IntFunction0 function) |
<P> int |
getIfAbsentPutWith(byte key,
org.eclipse.collections.api.block.function.primitive.IntFunction<? super P> function,
P parameter) |
int |
getIfAbsentPutWithKey(byte key,
org.eclipse.collections.api.block.function.primitive.ByteToIntFunction function) |
int |
getOrThrow(byte key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction<? super V,? extends V> function) |
org.eclipse.collections.api.iterator.MutableIntIterator |
intIterator() |
org.eclipse.collections.api.set.primitive.MutableByteSet |
keySet() |
org.eclipse.collections.api.LazyByteIterable |
keysView() |
org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.ByteIntPair> |
keyValuesView() |
static ByteIntHashMap |
newWithKeysValues(byte key1,
int value1) |
static ByteIntHashMap |
newWithKeysValues(byte key1,
int value1,
byte key2,
int value2) |
static ByteIntHashMap |
newWithKeysValues(byte key1,
int value1,
byte key2,
int value2,
byte key3,
int value3) |
static ByteIntHashMap |
newWithKeysValues(byte key1,
int value1,
byte key2,
int value2,
byte key3,
int value3,
byte key4,
int value4) |
void |
put(byte key,
int value) |
void |
putAll(org.eclipse.collections.api.map.primitive.ByteIntMap map) |
void |
readExternal(ObjectInput in) |
ByteIntHashMap |
reject(org.eclipse.collections.api.block.predicate.primitive.ByteIntPredicate predicate) |
void |
remove(byte key) |
void |
removeKey(byte key) |
int |
removeKeyIfAbsent(byte key,
int value) |
ByteIntHashMap |
select(org.eclipse.collections.api.block.predicate.primitive.ByteIntPredicate predicate) |
org.eclipse.collections.api.map.primitive.ImmutableByteIntMap |
toImmutable() |
String |
toString() |
int |
updateValue(byte key,
int initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.IntToIntFunction function) |
org.eclipse.collections.api.collection.primitive.MutableIntCollection |
values() |
ByteIntHashMap |
withKeysValues(byte key1,
int value1,
byte key2,
int value2) |
ByteIntHashMap |
withKeysValues(byte key1,
int value1,
byte key2,
int value2,
byte key3,
int value3) |
ByteIntHashMap |
withKeysValues(byte key1,
int value1,
byte key2,
int value2,
byte key3,
int value3,
byte key4,
int value4) |
ByteIntHashMap |
withKeyValue(byte key1,
int value1) |
ByteIntHashMap |
withoutAllKeys(org.eclipse.collections.api.ByteIterable keys) |
ByteIntHashMap |
withoutKey(byte key) |
void |
writeExternal(ObjectOutput out) |
allSatisfy, anySatisfy, appendString, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, select, size, sum, toArrayappendString, appendString, asLazy, average, containsAll, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListcollect, reject, selectcontainsValue, forEachValueallSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeisEmpty, notEmpty, sizepublic ByteIntHashMap()
public ByteIntHashMap(int initialCapacity)
public ByteIntHashMap(org.eclipse.collections.api.map.primitive.ByteIntMap map)
public static ByteIntHashMap newWithKeysValues(byte key1, int value1)
public static ByteIntHashMap newWithKeysValues(byte key1, int value1, byte key2, int value2)
public static ByteIntHashMap newWithKeysValues(byte key1, int value1, byte key2, int value2, byte key3, int value3)
public static ByteIntHashMap newWithKeysValues(byte key1, int value1, byte key2, int value2, byte key3, int value3, byte key4, int value4)
public boolean equals(Object obj)
public int hashCode()
public String toString()
toString in interface org.eclipse.collections.api.map.primitive.ByteIntMaptoString in interface org.eclipse.collections.api.PrimitiveIterabletoString in class AbstractIntIterablepublic org.eclipse.collections.api.iterator.MutableIntIterator intIterator()
intIterator in interface org.eclipse.collections.api.IntIterableintIterator in interface org.eclipse.collections.api.map.primitive.MutableIntValuesMappublic <V> V injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction<? super V,? extends V> function)
injectInto in interface org.eclipse.collections.api.IntIterablepublic void clear()
clear in interface org.eclipse.collections.api.map.primitive.MutableIntValuesMapclear in interface MutableByteKeysMappublic void put(byte key,
int value)
put in interface org.eclipse.collections.api.map.primitive.MutableByteIntMappublic void putAll(org.eclipse.collections.api.map.primitive.ByteIntMap map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableByteIntMappublic void removeKey(byte key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableByteIntMapremoveKey in interface MutableByteKeysMappublic void remove(byte key)
remove in interface org.eclipse.collections.api.map.primitive.MutableByteIntMappublic int removeKeyIfAbsent(byte key,
int value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableByteIntMappublic int getIfAbsentPut(byte key,
int value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableByteIntMappublic int getIfAbsentPut(byte key,
org.eclipse.collections.api.block.function.primitive.IntFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableByteIntMappublic <P> int getIfAbsentPutWith(byte key,
org.eclipse.collections.api.block.function.primitive.IntFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableByteIntMappublic int getIfAbsentPutWithKey(byte key,
org.eclipse.collections.api.block.function.primitive.ByteToIntFunction function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableByteIntMappublic int addToValue(byte key,
int toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableByteIntMappublic int updateValue(byte key,
int initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.IntToIntFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableByteIntMappublic ByteIntHashMap withKeyValue(byte key1, int value1)
withKeyValue in interface org.eclipse.collections.api.map.primitive.MutableByteIntMappublic ByteIntHashMap withKeysValues(byte key1, int value1, byte key2, int value2)
public ByteIntHashMap withKeysValues(byte key1, int value1, byte key2, int value2, byte key3, int value3)
public ByteIntHashMap withKeysValues(byte key1, int value1, byte key2, int value2, byte key3, int value3, byte key4, int value4)
public ByteIntHashMap withoutKey(byte key)
withoutKey in interface org.eclipse.collections.api.map.primitive.MutableByteIntMappublic ByteIntHashMap withoutAllKeys(org.eclipse.collections.api.ByteIterable keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableByteIntMappublic org.eclipse.collections.api.map.primitive.MutableByteIntMap asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableByteIntMappublic org.eclipse.collections.api.map.primitive.MutableByteIntMap asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableByteIntMappublic org.eclipse.collections.api.map.primitive.ImmutableByteIntMap toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.ByteIntMappublic int get(byte key)
get in interface org.eclipse.collections.api.map.primitive.ByteIntMappublic int getIfAbsent(byte key,
int ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.ByteIntMappublic int getOrThrow(byte key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.ByteIntMappublic boolean containsKey(byte key)
containsKey in interface org.eclipse.collections.api.map.primitive.ByteIntMapcontainsKey in interface ByteKeysMappublic void forEachKey(org.eclipse.collections.api.block.procedure.primitive.ByteProcedure procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.ByteIntMapforEachKey in interface ByteKeysMappublic void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ByteIntProcedure procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.ByteIntMappublic org.eclipse.collections.api.LazyByteIterable keysView()
keysView in interface org.eclipse.collections.api.map.primitive.ByteIntMappublic org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.ByteIntPair> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.ByteIntMappublic ByteIntHashMap select(org.eclipse.collections.api.block.predicate.primitive.ByteIntPredicate predicate)
select in interface org.eclipse.collections.api.map.primitive.ByteIntMapselect in interface org.eclipse.collections.api.map.primitive.MutableByteIntMappublic ByteIntHashMap reject(org.eclipse.collections.api.block.predicate.primitive.ByteIntPredicate predicate)
reject in interface org.eclipse.collections.api.map.primitive.ByteIntMapreject in interface org.eclipse.collections.api.map.primitive.MutableByteIntMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void compact()
public org.eclipse.collections.api.set.primitive.MutableByteSet keySet()
keySet in interface org.eclipse.collections.api.map.primitive.ByteIntMappublic org.eclipse.collections.api.collection.primitive.MutableIntCollection values()
values in interface org.eclipse.collections.api.map.primitive.IntValuesMapCopyright © 2004–2017. All rights reserved.