Externalizable, Serializable, ByteIterable, ByteValuesMap, IntByteMap, MutableByteValuesMap, MutableIntByteMap, PrimitiveIterable, MutableIntKeysMap, IntKeysMappublic class IntByteHashMap extends AbstractMutableByteValuesMap implements MutableIntByteMap, Externalizable, MutableIntKeysMap
| Constructor | Description |
|---|---|
IntByteHashMap() |
|
IntByteHashMap(int initialCapacity) |
|
IntByteHashMap(IntByteMap map) |
| Modifier and Type | Method | Description |
|---|---|---|
byte |
addToValue(int key,
byte toBeAdded) |
|
MutableIntByteMap |
asSynchronized() |
|
MutableIntByteMap |
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(int key) |
|
boolean |
equals(Object obj) |
Follows the same general contract as
Map.equals(Object). |
void |
forEachKey(IntProcedure procedure) |
|
void |
forEachKeyValue(IntByteProcedure procedure) |
|
byte |
get(int key) |
|
byte |
getIfAbsent(int key,
byte ifAbsent) |
|
byte |
getIfAbsentPut(int key,
byte value) |
|
byte |
getIfAbsentPut(int key,
ByteFunction0 function) |
|
<P> byte |
getIfAbsentPutWith(int key,
ByteFunction<? super P> function,
P parameter) |
|
byte |
getIfAbsentPutWithKey(int key,
IntToByteFunction function) |
|
byte |
getOrThrow(int key) |
|
int |
hashCode() |
Follows the same general contract as
Map.hashCode(). |
<V> V |
injectInto(V injectedValue,
ObjectByteToObjectFunction<? super V,? extends V> function) |
|
MutableIntSet |
keySet() |
|
LazyIntIterable |
keysView() |
|
RichIterable<IntBytePair> |
keyValuesView() |
|
static IntByteHashMap |
newWithKeysValues(int key1,
byte value1) |
|
static IntByteHashMap |
newWithKeysValues(int key1,
byte value1,
int key2,
byte value2) |
|
static IntByteHashMap |
newWithKeysValues(int key1,
byte value1,
int key2,
byte value2,
int key3,
byte value3) |
|
static IntByteHashMap |
newWithKeysValues(int key1,
byte value1,
int key2,
byte value2,
int key3,
byte value3,
int key4,
byte value4) |
|
void |
put(int key,
byte value) |
|
void |
putAll(IntByteMap map) |
|
void |
readExternal(ObjectInput in) |
|
IntByteHashMap |
reject(IntBytePredicate predicate) |
|
void |
remove(int key) |
|
void |
removeKey(int key) |
|
byte |
removeKeyIfAbsent(int key,
byte value) |
|
IntByteHashMap |
select(IntBytePredicate predicate) |
|
ImmutableIntByteMap |
toImmutable() |
|
String |
toString() |
Returns a string with the elements of this iterable separated by commas with spaces and
enclosed in square brackets.
|
byte |
updateValue(int key,
byte initialValueIfAbsent,
ByteToByteFunction function) |
|
MutableByteCollection |
values() |
|
IntByteHashMap |
withKeysValues(int key1,
byte value1,
int key2,
byte value2) |
|
IntByteHashMap |
withKeysValues(int key1,
byte value1,
int key2,
byte value2,
int key3,
byte value3) |
|
IntByteHashMap |
withKeysValues(int key1,
byte value1,
int key2,
byte value2,
int key3,
byte value3,
int key4,
byte value4) |
|
IntByteHashMap |
withKeyValue(int key1,
byte value1) |
|
IntByteHashMap |
withoutAllKeys(IntIterable keys) |
|
IntByteHashMap |
withoutKey(int key) |
|
void |
writeExternal(ObjectOutput out) |
asLazy, average, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListallSatisfy, anySatisfy, appendString, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, select, size, sum, toArrayallSatisfy, anySatisfy, asLazy, average, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListcontainsValue, forEachValueisEmpty, notEmpty, sizecollect, reject, selectappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizepublic IntByteHashMap()
public IntByteHashMap(int initialCapacity)
public IntByteHashMap(IntByteMap map)
public static IntByteHashMap newWithKeysValues(int key1, byte value1)
public static IntByteHashMap newWithKeysValues(int key1, byte value1, int key2, byte value2)
public static IntByteHashMap newWithKeysValues(int key1, byte value1, int key2, byte value2, int key3, byte value3)
public static IntByteHashMap newWithKeysValues(int key1, byte value1, int key2, byte value2, int key3, byte value3, int key4, byte value4)
public boolean equals(Object obj)
IntByteMapMap.equals(Object).equals in interface IntByteMapequals in class Objectpublic int hashCode()
IntByteMapMap.hashCode().hashCode in interface IntByteMaphashCode 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 IntByteMaptoString 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 MutableIntKeysMappublic void put(int key,
byte value)
put in interface MutableIntByteMappublic void putAll(IntByteMap map)
putAll in interface MutableIntByteMappublic void removeKey(int key)
removeKey in interface MutableIntByteMapremoveKey in interface MutableIntKeysMappublic void remove(int key)
remove in interface MutableIntByteMappublic byte removeKeyIfAbsent(int key,
byte value)
removeKeyIfAbsent in interface MutableIntByteMappublic byte getIfAbsentPut(int key,
byte value)
getIfAbsentPut in interface MutableIntByteMappublic byte getIfAbsentPut(int key,
ByteFunction0 function)
getIfAbsentPut in interface MutableIntByteMappublic <P> byte getIfAbsentPutWith(int key,
ByteFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableIntByteMappublic byte getIfAbsentPutWithKey(int key,
IntToByteFunction function)
getIfAbsentPutWithKey in interface MutableIntByteMappublic byte addToValue(int key,
byte toBeAdded)
addToValue in interface MutableIntByteMappublic byte updateValue(int key,
byte initialValueIfAbsent,
ByteToByteFunction function)
updateValue in interface MutableIntByteMappublic IntByteHashMap withKeyValue(int key1, byte value1)
withKeyValue in interface MutableIntByteMappublic IntByteHashMap withKeysValues(int key1, byte value1, int key2, byte value2)
public IntByteHashMap withKeysValues(int key1, byte value1, int key2, byte value2, int key3, byte value3)
public IntByteHashMap withKeysValues(int key1, byte value1, int key2, byte value2, int key3, byte value3, int key4, byte value4)
public IntByteHashMap withoutKey(int key)
withoutKey in interface MutableIntByteMappublic IntByteHashMap withoutAllKeys(IntIterable keys)
withoutAllKeys in interface MutableIntByteMappublic MutableIntByteMap asUnmodifiable()
asUnmodifiable in interface MutableIntByteMappublic MutableIntByteMap asSynchronized()
asSynchronized in interface MutableIntByteMappublic ImmutableIntByteMap toImmutable()
toImmutable in interface IntByteMappublic byte get(int key)
get in interface IntByteMappublic byte getIfAbsent(int key,
byte ifAbsent)
getIfAbsent in interface IntByteMappublic byte getOrThrow(int key)
getOrThrow in interface IntByteMappublic boolean containsKey(int key)
containsKey in interface IntByteMapcontainsKey in interface IntKeysMappublic void forEachKey(IntProcedure procedure)
forEachKey in interface IntByteMapforEachKey in interface IntKeysMappublic void forEachKeyValue(IntByteProcedure procedure)
forEachKeyValue in interface IntByteMappublic LazyIntIterable keysView()
keysView in interface IntByteMappublic RichIterable<IntBytePair> keyValuesView()
keyValuesView in interface IntByteMappublic IntByteHashMap select(IntBytePredicate predicate)
select in interface IntByteMapselect in interface MutableIntByteMappublic IntByteHashMap reject(IntBytePredicate predicate)
reject in interface IntByteMapreject in interface MutableIntByteMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void compact()
public MutableIntSet keySet()
keySet in interface IntByteMappublic MutableByteCollection values()
values in interface ByteValuesMapCopyright © 2004–2017. All rights reserved.