public class ShortByteHashMap extends AbstractMutableByteValuesMap implements org.eclipse.collections.api.map.primitive.MutableShortByteMap, Externalizable, MutableShortKeysMap
| Constructor and Description |
|---|
ShortByteHashMap() |
ShortByteHashMap(int initialCapacity) |
ShortByteHashMap(org.eclipse.collections.api.map.primitive.ShortByteMap map) |
| Modifier and Type | Method and Description |
|---|---|
byte |
addToValue(short key,
byte toBeAdded) |
org.eclipse.collections.api.map.primitive.MutableShortByteMap |
asSynchronized() |
org.eclipse.collections.api.map.primitive.MutableShortByteMap |
asUnmodifiable() |
org.eclipse.collections.api.iterator.MutableByteIterator |
byteIterator() |
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(short key) |
boolean |
equals(Object obj) |
void |
forEachKey(org.eclipse.collections.api.block.procedure.primitive.ShortProcedure procedure) |
void |
forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ShortByteProcedure procedure) |
byte |
get(short key) |
byte |
getIfAbsent(short key,
byte ifAbsent) |
byte |
getIfAbsentPut(short key,
byte value) |
byte |
getIfAbsentPut(short key,
org.eclipse.collections.api.block.function.primitive.ByteFunction0 function) |
<P> byte |
getIfAbsentPutWith(short key,
org.eclipse.collections.api.block.function.primitive.ByteFunction<? super P> function,
P parameter) |
byte |
getIfAbsentPutWithKey(short key,
org.eclipse.collections.api.block.function.primitive.ShortToByteFunction function) |
byte |
getOrThrow(short key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectByteToObjectFunction<? super V,? extends V> function) |
org.eclipse.collections.api.set.primitive.MutableShortSet |
keySet() |
org.eclipse.collections.api.LazyShortIterable |
keysView() |
org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.ShortBytePair> |
keyValuesView() |
static ShortByteHashMap |
newWithKeysValues(short key1,
byte value1) |
static ShortByteHashMap |
newWithKeysValues(short key1,
byte value1,
short key2,
byte value2) |
static ShortByteHashMap |
newWithKeysValues(short key1,
byte value1,
short key2,
byte value2,
short key3,
byte value3) |
static ShortByteHashMap |
newWithKeysValues(short key1,
byte value1,
short key2,
byte value2,
short key3,
byte value3,
short key4,
byte value4) |
void |
put(short key,
byte value) |
void |
putAll(org.eclipse.collections.api.map.primitive.ShortByteMap map) |
void |
readExternal(ObjectInput in) |
ShortByteHashMap |
reject(org.eclipse.collections.api.block.predicate.primitive.ShortBytePredicate predicate) |
void |
remove(short key) |
void |
removeKey(short key) |
byte |
removeKeyIfAbsent(short key,
byte value) |
ShortByteHashMap |
select(org.eclipse.collections.api.block.predicate.primitive.ShortBytePredicate predicate) |
org.eclipse.collections.api.map.primitive.ImmutableShortByteMap |
toImmutable() |
String |
toString() |
byte |
updateValue(short key,
byte initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.ByteToByteFunction function) |
org.eclipse.collections.api.collection.primitive.MutableByteCollection |
values() |
ShortByteHashMap |
withKeysValues(short key1,
byte value1,
short key2,
byte value2) |
ShortByteHashMap |
withKeysValues(short key1,
byte value1,
short key2,
byte value2,
short key3,
byte value3) |
ShortByteHashMap |
withKeysValues(short key1,
byte value1,
short key2,
byte value2,
short key3,
byte value3,
short key4,
byte value4) |
ShortByteHashMap |
withKeyValue(short key1,
byte value1) |
ShortByteHashMap |
withoutAllKeys(org.eclipse.collections.api.ShortIterable keys) |
ShortByteHashMap |
withoutKey(short 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 ShortByteHashMap()
public ShortByteHashMap(int initialCapacity)
public ShortByteHashMap(org.eclipse.collections.api.map.primitive.ShortByteMap map)
public static ShortByteHashMap newWithKeysValues(short key1, byte value1)
public static ShortByteHashMap newWithKeysValues(short key1, byte value1, short key2, byte value2)
public static ShortByteHashMap newWithKeysValues(short key1, byte value1, short key2, byte value2, short key3, byte value3)
public static ShortByteHashMap newWithKeysValues(short key1, byte value1, short key2, byte value2, short key3, byte value3, short key4, byte value4)
public boolean equals(Object obj)
public int hashCode()
public String toString()
toString in interface org.eclipse.collections.api.map.primitive.ShortByteMaptoString in interface org.eclipse.collections.api.PrimitiveIterabletoString in class AbstractByteIterablepublic org.eclipse.collections.api.iterator.MutableByteIterator byteIterator()
byteIterator in interface org.eclipse.collections.api.ByteIterablebyteIterator in interface org.eclipse.collections.api.map.primitive.MutableByteValuesMappublic <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 void clear()
clear in interface org.eclipse.collections.api.map.primitive.MutableByteValuesMapclear in interface MutableShortKeysMappublic void put(short key,
byte value)
put in interface org.eclipse.collections.api.map.primitive.MutableShortByteMappublic void putAll(org.eclipse.collections.api.map.primitive.ShortByteMap map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableShortByteMappublic void removeKey(short key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableShortByteMapremoveKey in interface MutableShortKeysMappublic void remove(short key)
remove in interface org.eclipse.collections.api.map.primitive.MutableShortByteMappublic byte removeKeyIfAbsent(short key,
byte value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableShortByteMappublic byte getIfAbsentPut(short key,
byte value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableShortByteMappublic byte getIfAbsentPut(short key,
org.eclipse.collections.api.block.function.primitive.ByteFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableShortByteMappublic <P> byte getIfAbsentPutWith(short key,
org.eclipse.collections.api.block.function.primitive.ByteFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableShortByteMappublic byte getIfAbsentPutWithKey(short key,
org.eclipse.collections.api.block.function.primitive.ShortToByteFunction function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableShortByteMappublic byte addToValue(short key,
byte toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableShortByteMappublic byte updateValue(short key,
byte initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.ByteToByteFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableShortByteMappublic ShortByteHashMap withKeyValue(short key1, byte value1)
withKeyValue in interface org.eclipse.collections.api.map.primitive.MutableShortByteMappublic ShortByteHashMap withKeysValues(short key1, byte value1, short key2, byte value2)
public ShortByteHashMap withKeysValues(short key1, byte value1, short key2, byte value2, short key3, byte value3)
public ShortByteHashMap withKeysValues(short key1, byte value1, short key2, byte value2, short key3, byte value3, short key4, byte value4)
public ShortByteHashMap withoutKey(short key)
withoutKey in interface org.eclipse.collections.api.map.primitive.MutableShortByteMappublic ShortByteHashMap withoutAllKeys(org.eclipse.collections.api.ShortIterable keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableShortByteMappublic org.eclipse.collections.api.map.primitive.MutableShortByteMap asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableShortByteMappublic org.eclipse.collections.api.map.primitive.MutableShortByteMap asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableShortByteMappublic org.eclipse.collections.api.map.primitive.ImmutableShortByteMap toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.ShortByteMappublic byte get(short key)
get in interface org.eclipse.collections.api.map.primitive.ShortByteMappublic byte getIfAbsent(short key,
byte ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.ShortByteMappublic byte getOrThrow(short key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.ShortByteMappublic boolean containsKey(short key)
containsKey in interface org.eclipse.collections.api.map.primitive.ShortByteMapcontainsKey in interface ShortKeysMappublic void forEachKey(org.eclipse.collections.api.block.procedure.primitive.ShortProcedure procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.ShortByteMapforEachKey in interface ShortKeysMappublic void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ShortByteProcedure procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.ShortByteMappublic org.eclipse.collections.api.LazyShortIterable keysView()
keysView in interface org.eclipse.collections.api.map.primitive.ShortByteMappublic org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.ShortBytePair> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.ShortByteMappublic ShortByteHashMap select(org.eclipse.collections.api.block.predicate.primitive.ShortBytePredicate predicate)
select in interface org.eclipse.collections.api.map.primitive.MutableShortByteMapselect in interface org.eclipse.collections.api.map.primitive.ShortByteMappublic ShortByteHashMap reject(org.eclipse.collections.api.block.predicate.primitive.ShortBytePredicate predicate)
reject in interface org.eclipse.collections.api.map.primitive.MutableShortByteMapreject in interface org.eclipse.collections.api.map.primitive.ShortByteMappublic 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.MutableShortSet keySet()
keySet in interface org.eclipse.collections.api.map.primitive.ShortByteMappublic org.eclipse.collections.api.collection.primitive.MutableByteCollection values()
values in interface org.eclipse.collections.api.map.primitive.ByteValuesMapCopyright © 2004–2018. All rights reserved.