public class ByteShortHashMap extends AbstractMutableShortValuesMap implements com.gs.collections.api.map.primitive.MutableByteShortMap, java.io.Externalizable, MutableByteKeysMap
AbstractMutableShortValuesMap.AbstractShortValuesCollection, AbstractMutableShortValuesMap.SentinelValues| Constructor and Description |
|---|
ByteShortHashMap() |
ByteShortHashMap(com.gs.collections.api.map.primitive.ByteShortMap map) |
ByteShortHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
short |
addToValue(byte key,
short toBeAdded) |
com.gs.collections.api.map.primitive.MutableByteShortMap |
asSynchronized() |
com.gs.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(java.lang.Object obj)
Follows the same general contract as
Map.equals(Object). |
void |
forEachKey(com.gs.collections.api.block.procedure.primitive.ByteProcedure procedure) |
void |
forEachKeyValue(com.gs.collections.api.block.procedure.primitive.ByteShortProcedure procedure) |
short |
get(byte key) |
protected short |
getEmptyValue() |
short |
getIfAbsent(byte key,
short ifAbsent) |
short |
getIfAbsentPut(byte key,
short value) |
short |
getIfAbsentPut(byte key,
com.gs.collections.api.block.function.primitive.ShortFunction0 function) |
<P> short |
getIfAbsentPutWith(byte key,
com.gs.collections.api.block.function.primitive.ShortFunction<? super P> function,
P parameter) |
short |
getIfAbsentPutWithKey(byte key,
com.gs.collections.api.block.function.primitive.ByteToShortFunction function) |
protected int |
getOccupiedWithData() |
short |
getOrThrow(byte key) |
protected AbstractMutableShortValuesMap.SentinelValues |
getSentinelValues() |
protected int |
getTableSize() |
protected short |
getValueAtIndex(int index) |
int |
hashCode()
Follows the same general contract as
Map.hashCode(). |
<V> V |
injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectShortToObjectFunction<? super V,? extends V> function) |
protected boolean |
isNonSentinelAtIndex(int index) |
com.gs.collections.api.set.primitive.MutableByteSet |
keySet() |
com.gs.collections.api.LazyByteIterable |
keysView() |
com.gs.collections.api.RichIterable<com.gs.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(com.gs.collections.api.map.primitive.ByteShortMap map) |
void |
readExternal(java.io.ObjectInput in) |
ByteShortHashMap |
reject(com.gs.collections.api.block.predicate.primitive.ByteShortPredicate predicate) |
void |
remove(byte key) |
void |
removeKey(byte key) |
short |
removeKeyIfAbsent(byte key,
short value) |
ByteShortHashMap |
select(com.gs.collections.api.block.predicate.primitive.ByteShortPredicate predicate) |
protected void |
setSentinelValuesNull() |
com.gs.collections.api.iterator.MutableShortIterator |
shortIterator() |
com.gs.collections.api.map.primitive.ImmutableByteShortMap |
toImmutable() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
short |
updateValue(byte key,
short initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.ShortToShortFunction function) |
com.gs.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(com.gs.collections.api.ByteIterable keys) |
ByteShortHashMap |
withoutKey(byte key) |
void |
writeExternal(java.io.ObjectOutput out) |
addEmptyKeyValue, addRemovedKeyValue, allSatisfy, anySatisfy, appendString, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, removeEmptyKey, removeRemovedKey, select, size, sum, toArrayappendString, appendString, asLazy, average, containsAll, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListclone, finalize, getClass, notify, notifyAll, wait, wait, waitcollect, 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(com.gs.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)
protected int getOccupiedWithData()
getOccupiedWithData in class AbstractMutableShortValuesMapprotected AbstractMutableShortValuesMap.SentinelValues getSentinelValues()
getSentinelValues in class AbstractMutableShortValuesMapprotected void setSentinelValuesNull()
setSentinelValuesNull in class AbstractMutableShortValuesMapprotected short getEmptyValue()
getEmptyValue in class AbstractMutableShortValuesMapprotected int getTableSize()
getTableSize in class AbstractMutableShortValuesMapprotected short getValueAtIndex(int index)
getValueAtIndex in class AbstractMutableShortValuesMappublic boolean equals(java.lang.Object obj)
com.gs.collections.api.map.primitive.ByteShortMapMap.equals(Object).equals in interface com.gs.collections.api.map.primitive.ByteShortMapequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.map.primitive.ByteShortMapMap.hashCode().hashCode in interface com.gs.collections.api.map.primitive.ByteShortMaphashCode in class java.lang.Objectpublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.map.primitive.ByteShortMaptoString in interface com.gs.collections.api.PrimitiveIterabletoString in class AbstractShortIterablepublic com.gs.collections.api.iterator.MutableShortIterator shortIterator()
shortIterator in interface com.gs.collections.api.map.primitive.MutableShortValuesMapshortIterator in interface com.gs.collections.api.ShortIterablepublic <V> V injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectShortToObjectFunction<? super V,? extends V> function)
injectInto in interface com.gs.collections.api.ShortIterablepublic void clear()
clear in interface com.gs.collections.api.map.primitive.MutableShortValuesMapclear in interface MutableByteKeysMappublic void put(byte key,
short value)
put in interface com.gs.collections.api.map.primitive.MutableByteShortMappublic void putAll(com.gs.collections.api.map.primitive.ByteShortMap map)
putAll in interface com.gs.collections.api.map.primitive.MutableByteShortMappublic void removeKey(byte key)
removeKey in interface com.gs.collections.api.map.primitive.MutableByteShortMapremoveKey in interface MutableByteKeysMappublic void remove(byte key)
remove in interface com.gs.collections.api.map.primitive.MutableByteShortMappublic short removeKeyIfAbsent(byte key,
short value)
removeKeyIfAbsent in interface com.gs.collections.api.map.primitive.MutableByteShortMappublic short getIfAbsentPut(byte key,
short value)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableByteShortMappublic short getIfAbsentPut(byte key,
com.gs.collections.api.block.function.primitive.ShortFunction0 function)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableByteShortMappublic <P> short getIfAbsentPutWith(byte key,
com.gs.collections.api.block.function.primitive.ShortFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface com.gs.collections.api.map.primitive.MutableByteShortMappublic short getIfAbsentPutWithKey(byte key,
com.gs.collections.api.block.function.primitive.ByteToShortFunction function)
getIfAbsentPutWithKey in interface com.gs.collections.api.map.primitive.MutableByteShortMappublic short addToValue(byte key,
short toBeAdded)
addToValue in interface com.gs.collections.api.map.primitive.MutableByteShortMappublic short updateValue(byte key,
short initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.ShortToShortFunction function)
updateValue in interface com.gs.collections.api.map.primitive.MutableByteShortMappublic ByteShortHashMap withKeyValue(byte key1, short value1)
withKeyValue in interface com.gs.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 com.gs.collections.api.map.primitive.MutableByteShortMappublic ByteShortHashMap withoutAllKeys(com.gs.collections.api.ByteIterable keys)
withoutAllKeys in interface com.gs.collections.api.map.primitive.MutableByteShortMappublic com.gs.collections.api.map.primitive.MutableByteShortMap asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.map.primitive.MutableByteShortMappublic com.gs.collections.api.map.primitive.MutableByteShortMap asSynchronized()
asSynchronized in interface com.gs.collections.api.map.primitive.MutableByteShortMappublic com.gs.collections.api.map.primitive.ImmutableByteShortMap toImmutable()
toImmutable in interface com.gs.collections.api.map.primitive.ByteShortMappublic short get(byte key)
get in interface com.gs.collections.api.map.primitive.ByteShortMappublic short getIfAbsent(byte key,
short ifAbsent)
getIfAbsent in interface com.gs.collections.api.map.primitive.ByteShortMappublic short getOrThrow(byte key)
getOrThrow in interface com.gs.collections.api.map.primitive.ByteShortMappublic boolean containsKey(byte key)
containsKey in interface com.gs.collections.api.map.primitive.ByteShortMapcontainsKey in interface ByteKeysMappublic void forEachKey(com.gs.collections.api.block.procedure.primitive.ByteProcedure procedure)
forEachKey in interface com.gs.collections.api.map.primitive.ByteShortMapforEachKey in interface ByteKeysMappublic void forEachKeyValue(com.gs.collections.api.block.procedure.primitive.ByteShortProcedure procedure)
forEachKeyValue in interface com.gs.collections.api.map.primitive.ByteShortMappublic com.gs.collections.api.LazyByteIterable keysView()
keysView in interface com.gs.collections.api.map.primitive.ByteShortMappublic com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.ByteShortPair> keyValuesView()
keyValuesView in interface com.gs.collections.api.map.primitive.ByteShortMappublic ByteShortHashMap select(com.gs.collections.api.block.predicate.primitive.ByteShortPredicate predicate)
select in interface com.gs.collections.api.map.primitive.ByteShortMapselect in interface com.gs.collections.api.map.primitive.MutableByteShortMappublic ByteShortHashMap reject(com.gs.collections.api.block.predicate.primitive.ByteShortPredicate predicate)
reject in interface com.gs.collections.api.map.primitive.ByteShortMapreject in interface com.gs.collections.api.map.primitive.MutableByteShortMappublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic void compact()
protected boolean isNonSentinelAtIndex(int index)
isNonSentinelAtIndex in class AbstractMutableShortValuesMappublic com.gs.collections.api.set.primitive.MutableByteSet keySet()
keySet in interface com.gs.collections.api.map.primitive.ByteShortMappublic com.gs.collections.api.collection.primitive.MutableShortCollection values()
values in interface com.gs.collections.api.map.primitive.ShortValuesMap