public class ByteShortHashMap extends AbstractMutableShortValuesMap implements org.eclipse.collections.api.map.primitive.MutableByteShortMap, Externalizable, MutableByteKeysMap
| Constructor and Description |
|---|
ByteShortHashMap() |
ByteShortHashMap(org.eclipse.collections.api.map.primitive.ByteShortMap map) |
ByteShortHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
short |
addToValue(byte key,
short toBeAdded) |
org.eclipse.collections.api.map.primitive.MutableByteShortMap |
asSynchronized() |
org.eclipse.collections.api.map.primitive.MutableByteShortMap |
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.ByteShortProcedure procedure) |
short |
get(byte key) |
short |
getIfAbsent(byte key,
short ifAbsent) |
short |
getIfAbsentPut(byte key,
short value) |
short |
getIfAbsentPut(byte key,
org.eclipse.collections.api.block.function.primitive.ShortFunction0 function) |
<P> short |
getIfAbsentPutWith(byte key,
org.eclipse.collections.api.block.function.primitive.ShortFunction<? super P> function,
P parameter) |
short |
getIfAbsentPutWithKey(byte key,
org.eclipse.collections.api.block.function.primitive.ByteToShortFunction function) |
short |
getOrThrow(byte key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectShortToObjectFunction<? super V,? extends V> function) |
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.ByteShortPair> |
keyValuesView() |
static ByteShortHashMap |
newWithKeysValues(byte key1,
short value1) |
static ByteShortHashMap |
newWithKeysValues(byte key1,
short value1,
byte key2,
short value2) |
static ByteShortHashMap |
newWithKeysValues(byte key1,
short value1,
byte key2,
short value2,
byte key3,
short value3) |
static ByteShortHashMap |
newWithKeysValues(byte key1,
short value1,
byte key2,
short value2,
byte key3,
short value3,
byte key4,
short value4) |
void |
put(byte key,
short value) |
void |
putAll(org.eclipse.collections.api.map.primitive.ByteShortMap map) |
void |
readExternal(ObjectInput in) |
ByteShortHashMap |
reject(org.eclipse.collections.api.block.predicate.primitive.ByteShortPredicate predicate) |
void |
remove(byte key) |
void |
removeKey(byte key) |
short |
removeKeyIfAbsent(byte key,
short value) |
ByteShortHashMap |
select(org.eclipse.collections.api.block.predicate.primitive.ByteShortPredicate predicate) |
org.eclipse.collections.api.iterator.MutableShortIterator |
shortIterator() |
org.eclipse.collections.api.map.primitive.ImmutableByteShortMap |
toImmutable() |
String |
toString() |
short |
updateValue(byte key,
short initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.ShortToShortFunction function) |
org.eclipse.collections.api.collection.primitive.MutableShortCollection |
values() |
ByteShortHashMap |
withKeysValues(byte key1,
short value1,
byte key2,
short value2) |
ByteShortHashMap |
withKeysValues(byte key1,
short value1,
byte key2,
short value2,
byte key3,
short value3) |
ByteShortHashMap |
withKeysValues(byte key1,
short value1,
byte key2,
short value2,
byte key3,
short value3,
byte key4,
short value4) |
ByteShortHashMap |
withKeyValue(byte key1,
short value1) |
ByteShortHashMap |
withoutAllKeys(org.eclipse.collections.api.ByteIterable keys) |
ByteShortHashMap |
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 ByteShortHashMap()
public ByteShortHashMap(int initialCapacity)
public ByteShortHashMap(org.eclipse.collections.api.map.primitive.ByteShortMap map)
public static ByteShortHashMap newWithKeysValues(byte key1, short value1)
public static ByteShortHashMap newWithKeysValues(byte key1, short value1, byte key2, short value2)
public static ByteShortHashMap newWithKeysValues(byte key1, short value1, byte key2, short value2, byte key3, short value3)
public static ByteShortHashMap newWithKeysValues(byte key1, short value1, byte key2, short value2, byte key3, short value3, byte key4, short value4)
public boolean equals(Object obj)
public int hashCode()
public String toString()
toString in interface org.eclipse.collections.api.map.primitive.ByteShortMaptoString in interface org.eclipse.collections.api.PrimitiveIterabletoString in class AbstractShortIterablepublic org.eclipse.collections.api.iterator.MutableShortIterator shortIterator()
shortIterator in interface org.eclipse.collections.api.map.primitive.MutableShortValuesMapshortIterator in interface org.eclipse.collections.api.ShortIterablepublic <V> V injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectShortToObjectFunction<? super V,? extends V> function)
injectInto in interface org.eclipse.collections.api.ShortIterablepublic void clear()
clear in interface org.eclipse.collections.api.map.primitive.MutableShortValuesMapclear in interface MutableByteKeysMappublic void put(byte key,
short value)
put in interface org.eclipse.collections.api.map.primitive.MutableByteShortMappublic void putAll(org.eclipse.collections.api.map.primitive.ByteShortMap map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableByteShortMappublic void removeKey(byte key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableByteShortMapremoveKey in interface MutableByteKeysMappublic void remove(byte key)
remove in interface org.eclipse.collections.api.map.primitive.MutableByteShortMappublic short removeKeyIfAbsent(byte key,
short value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableByteShortMappublic short getIfAbsentPut(byte key,
short value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableByteShortMappublic short getIfAbsentPut(byte key,
org.eclipse.collections.api.block.function.primitive.ShortFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableByteShortMappublic <P> short getIfAbsentPutWith(byte key,
org.eclipse.collections.api.block.function.primitive.ShortFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableByteShortMappublic short getIfAbsentPutWithKey(byte key,
org.eclipse.collections.api.block.function.primitive.ByteToShortFunction function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableByteShortMappublic short addToValue(byte key,
short toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableByteShortMappublic short updateValue(byte key,
short initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.ShortToShortFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableByteShortMappublic ByteShortHashMap withKeyValue(byte key1, short value1)
withKeyValue in interface org.eclipse.collections.api.map.primitive.MutableByteShortMappublic ByteShortHashMap withKeysValues(byte key1, short value1, byte key2, short value2)
public ByteShortHashMap withKeysValues(byte key1, short value1, byte key2, short value2, byte key3, short value3)
public ByteShortHashMap withKeysValues(byte key1, short value1, byte key2, short value2, byte key3, short value3, byte key4, short value4)
public ByteShortHashMap withoutKey(byte key)
withoutKey in interface org.eclipse.collections.api.map.primitive.MutableByteShortMappublic ByteShortHashMap withoutAllKeys(org.eclipse.collections.api.ByteIterable keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableByteShortMappublic org.eclipse.collections.api.map.primitive.MutableByteShortMap asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableByteShortMappublic org.eclipse.collections.api.map.primitive.MutableByteShortMap asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableByteShortMappublic org.eclipse.collections.api.map.primitive.ImmutableByteShortMap toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.ByteShortMappublic short get(byte key)
get in interface org.eclipse.collections.api.map.primitive.ByteShortMappublic short getIfAbsent(byte key,
short ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.ByteShortMappublic short getOrThrow(byte key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.ByteShortMappublic boolean containsKey(byte key)
containsKey in interface org.eclipse.collections.api.map.primitive.ByteShortMapcontainsKey in interface ByteKeysMappublic void forEachKey(org.eclipse.collections.api.block.procedure.primitive.ByteProcedure procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.ByteShortMapforEachKey in interface ByteKeysMappublic void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ByteShortProcedure procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.ByteShortMappublic org.eclipse.collections.api.LazyByteIterable keysView()
keysView in interface org.eclipse.collections.api.map.primitive.ByteShortMappublic org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.ByteShortPair> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.ByteShortMappublic ByteShortHashMap select(org.eclipse.collections.api.block.predicate.primitive.ByteShortPredicate predicate)
select in interface org.eclipse.collections.api.map.primitive.ByteShortMapselect in interface org.eclipse.collections.api.map.primitive.MutableByteShortMappublic ByteShortHashMap reject(org.eclipse.collections.api.block.predicate.primitive.ByteShortPredicate predicate)
reject in interface org.eclipse.collections.api.map.primitive.ByteShortMapreject in interface org.eclipse.collections.api.map.primitive.MutableByteShortMappublic 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.ByteShortMappublic org.eclipse.collections.api.collection.primitive.MutableShortCollection values()
values in interface org.eclipse.collections.api.map.primitive.ShortValuesMapCopyright © 2004–2017. All rights reserved.