public class ByteCharHashMap extends AbstractMutableCharValuesMap implements com.gs.collections.api.map.primitive.MutableByteCharMap, java.io.Externalizable, MutableByteKeysMap
AbstractMutableCharValuesMap.AbstractCharValuesCollection, AbstractMutableCharValuesMap.SentinelValues| Constructor and Description |
|---|
ByteCharHashMap() |
ByteCharHashMap(com.gs.collections.api.map.primitive.ByteCharMap map) |
ByteCharHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
char |
addToValue(byte key,
char toBeAdded) |
com.gs.collections.api.map.primitive.MutableByteCharMap |
asSynchronized() |
com.gs.collections.api.map.primitive.MutableByteCharMap |
asUnmodifiable() |
com.gs.collections.api.iterator.MutableCharIterator |
charIterator() |
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.ByteCharProcedure procedure) |
char |
get(byte key) |
protected char |
getEmptyValue() |
char |
getIfAbsent(byte key,
char ifAbsent) |
char |
getIfAbsentPut(byte key,
char value) |
char |
getIfAbsentPut(byte key,
com.gs.collections.api.block.function.primitive.CharFunction0 function) |
<P> char |
getIfAbsentPutWith(byte key,
com.gs.collections.api.block.function.primitive.CharFunction<? super P> function,
P parameter) |
char |
getIfAbsentPutWithKey(byte key,
com.gs.collections.api.block.function.primitive.ByteToCharFunction function) |
protected int |
getOccupiedWithData() |
char |
getOrThrow(byte key) |
protected AbstractMutableCharValuesMap.SentinelValues |
getSentinelValues() |
protected int |
getTableSize() |
protected char |
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.ObjectCharToObjectFunction<? 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.ByteCharPair> |
keyValuesView() |
static ByteCharHashMap |
newWithKeysValues(byte key1,
char value1) |
static ByteCharHashMap |
newWithKeysValues(byte key1,
char value1,
byte key2,
char value2) |
static ByteCharHashMap |
newWithKeysValues(byte key1,
char value1,
byte key2,
char value2,
byte key3,
char value3) |
static ByteCharHashMap |
newWithKeysValues(byte key1,
char value1,
byte key2,
char value2,
byte key3,
char value3,
byte key4,
char value4) |
void |
put(byte key,
char value) |
void |
putAll(com.gs.collections.api.map.primitive.ByteCharMap map) |
void |
readExternal(java.io.ObjectInput in) |
ByteCharHashMap |
reject(com.gs.collections.api.block.predicate.primitive.ByteCharPredicate predicate) |
void |
remove(byte key) |
void |
removeKey(byte key) |
char |
removeKeyIfAbsent(byte key,
char value) |
ByteCharHashMap |
select(com.gs.collections.api.block.predicate.primitive.ByteCharPredicate predicate) |
protected void |
setSentinelValuesNull() |
com.gs.collections.api.map.primitive.ImmutableByteCharMap |
toImmutable() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
char |
updateValue(byte key,
char initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.CharToCharFunction function) |
com.gs.collections.api.collection.primitive.MutableCharCollection |
values() |
ByteCharHashMap |
withKeysValues(byte key1,
char value1,
byte key2,
char value2) |
ByteCharHashMap |
withKeysValues(byte key1,
char value1,
byte key2,
char value2,
byte key3,
char value3) |
ByteCharHashMap |
withKeysValues(byte key1,
char value1,
byte key2,
char value2,
byte key3,
char value3,
byte key4,
char value4) |
ByteCharHashMap |
withKeyValue(byte key1,
char value1) |
ByteCharHashMap |
withoutAllKeys(com.gs.collections.api.ByteIterable keys) |
ByteCharHashMap |
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 ByteCharHashMap()
public ByteCharHashMap(int initialCapacity)
public ByteCharHashMap(com.gs.collections.api.map.primitive.ByteCharMap map)
public static ByteCharHashMap newWithKeysValues(byte key1, char value1)
public static ByteCharHashMap newWithKeysValues(byte key1, char value1, byte key2, char value2)
public static ByteCharHashMap newWithKeysValues(byte key1, char value1, byte key2, char value2, byte key3, char value3)
public static ByteCharHashMap newWithKeysValues(byte key1, char value1, byte key2, char value2, byte key3, char value3, byte key4, char value4)
protected int getOccupiedWithData()
getOccupiedWithData in class AbstractMutableCharValuesMapprotected AbstractMutableCharValuesMap.SentinelValues getSentinelValues()
getSentinelValues in class AbstractMutableCharValuesMapprotected void setSentinelValuesNull()
setSentinelValuesNull in class AbstractMutableCharValuesMapprotected char getEmptyValue()
getEmptyValue in class AbstractMutableCharValuesMapprotected int getTableSize()
getTableSize in class AbstractMutableCharValuesMapprotected char getValueAtIndex(int index)
getValueAtIndex in class AbstractMutableCharValuesMappublic boolean equals(java.lang.Object obj)
com.gs.collections.api.map.primitive.ByteCharMapMap.equals(Object).equals in interface com.gs.collections.api.map.primitive.ByteCharMapequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.map.primitive.ByteCharMapMap.hashCode().hashCode in interface com.gs.collections.api.map.primitive.ByteCharMaphashCode in class java.lang.Objectpublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.map.primitive.ByteCharMaptoString in interface com.gs.collections.api.PrimitiveIterabletoString in class AbstractCharIterablepublic com.gs.collections.api.iterator.MutableCharIterator charIterator()
charIterator in interface com.gs.collections.api.CharIterablecharIterator in interface com.gs.collections.api.map.primitive.MutableCharValuesMappublic <V> V injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectCharToObjectFunction<? super V,? extends V> function)
injectInto in interface com.gs.collections.api.CharIterablepublic void clear()
clear in interface com.gs.collections.api.map.primitive.MutableCharValuesMapclear in interface MutableByteKeysMappublic void put(byte key,
char value)
put in interface com.gs.collections.api.map.primitive.MutableByteCharMappublic void putAll(com.gs.collections.api.map.primitive.ByteCharMap map)
putAll in interface com.gs.collections.api.map.primitive.MutableByteCharMappublic void removeKey(byte key)
removeKey in interface com.gs.collections.api.map.primitive.MutableByteCharMapremoveKey in interface MutableByteKeysMappublic void remove(byte key)
remove in interface com.gs.collections.api.map.primitive.MutableByteCharMappublic char removeKeyIfAbsent(byte key,
char value)
removeKeyIfAbsent in interface com.gs.collections.api.map.primitive.MutableByteCharMappublic char getIfAbsentPut(byte key,
char value)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableByteCharMappublic char getIfAbsentPut(byte key,
com.gs.collections.api.block.function.primitive.CharFunction0 function)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableByteCharMappublic <P> char getIfAbsentPutWith(byte key,
com.gs.collections.api.block.function.primitive.CharFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface com.gs.collections.api.map.primitive.MutableByteCharMappublic char getIfAbsentPutWithKey(byte key,
com.gs.collections.api.block.function.primitive.ByteToCharFunction function)
getIfAbsentPutWithKey in interface com.gs.collections.api.map.primitive.MutableByteCharMappublic char addToValue(byte key,
char toBeAdded)
addToValue in interface com.gs.collections.api.map.primitive.MutableByteCharMappublic char updateValue(byte key,
char initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.CharToCharFunction function)
updateValue in interface com.gs.collections.api.map.primitive.MutableByteCharMappublic ByteCharHashMap withKeyValue(byte key1, char value1)
withKeyValue in interface com.gs.collections.api.map.primitive.MutableByteCharMappublic ByteCharHashMap withKeysValues(byte key1, char value1, byte key2, char value2)
public ByteCharHashMap withKeysValues(byte key1, char value1, byte key2, char value2, byte key3, char value3)
public ByteCharHashMap withKeysValues(byte key1, char value1, byte key2, char value2, byte key3, char value3, byte key4, char value4)
public ByteCharHashMap withoutKey(byte key)
withoutKey in interface com.gs.collections.api.map.primitive.MutableByteCharMappublic ByteCharHashMap withoutAllKeys(com.gs.collections.api.ByteIterable keys)
withoutAllKeys in interface com.gs.collections.api.map.primitive.MutableByteCharMappublic com.gs.collections.api.map.primitive.MutableByteCharMap asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.map.primitive.MutableByteCharMappublic com.gs.collections.api.map.primitive.MutableByteCharMap asSynchronized()
asSynchronized in interface com.gs.collections.api.map.primitive.MutableByteCharMappublic com.gs.collections.api.map.primitive.ImmutableByteCharMap toImmutable()
toImmutable in interface com.gs.collections.api.map.primitive.ByteCharMappublic char get(byte key)
get in interface com.gs.collections.api.map.primitive.ByteCharMappublic char getIfAbsent(byte key,
char ifAbsent)
getIfAbsent in interface com.gs.collections.api.map.primitive.ByteCharMappublic char getOrThrow(byte key)
getOrThrow in interface com.gs.collections.api.map.primitive.ByteCharMappublic boolean containsKey(byte key)
containsKey in interface com.gs.collections.api.map.primitive.ByteCharMapcontainsKey in interface ByteKeysMappublic void forEachKey(com.gs.collections.api.block.procedure.primitive.ByteProcedure procedure)
forEachKey in interface com.gs.collections.api.map.primitive.ByteCharMapforEachKey in interface ByteKeysMappublic void forEachKeyValue(com.gs.collections.api.block.procedure.primitive.ByteCharProcedure procedure)
forEachKeyValue in interface com.gs.collections.api.map.primitive.ByteCharMappublic com.gs.collections.api.LazyByteIterable keysView()
keysView in interface com.gs.collections.api.map.primitive.ByteCharMappublic com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.ByteCharPair> keyValuesView()
keyValuesView in interface com.gs.collections.api.map.primitive.ByteCharMappublic ByteCharHashMap select(com.gs.collections.api.block.predicate.primitive.ByteCharPredicate predicate)
select in interface com.gs.collections.api.map.primitive.ByteCharMapselect in interface com.gs.collections.api.map.primitive.MutableByteCharMappublic ByteCharHashMap reject(com.gs.collections.api.block.predicate.primitive.ByteCharPredicate predicate)
reject in interface com.gs.collections.api.map.primitive.ByteCharMapreject in interface com.gs.collections.api.map.primitive.MutableByteCharMappublic 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 AbstractMutableCharValuesMappublic com.gs.collections.api.set.primitive.MutableByteSet keySet()
keySet in interface com.gs.collections.api.map.primitive.ByteCharMappublic com.gs.collections.api.collection.primitive.MutableCharCollection values()
values in interface com.gs.collections.api.map.primitive.CharValuesMap