public class CharByteHashMap extends AbstractMutableByteValuesMap implements com.gs.collections.api.map.primitive.MutableCharByteMap, java.io.Externalizable, MutableCharKeysMap
AbstractMutableByteValuesMap.AbstractByteValuesCollection, AbstractMutableByteValuesMap.SentinelValues| Constructor and Description |
|---|
CharByteHashMap() |
CharByteHashMap(com.gs.collections.api.map.primitive.CharByteMap map) |
CharByteHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
byte |
addToValue(char key,
byte toBeAdded) |
com.gs.collections.api.map.primitive.MutableCharByteMap |
asSynchronized() |
com.gs.collections.api.map.primitive.MutableCharByteMap |
asUnmodifiable() |
com.gs.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(char 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.CharProcedure procedure) |
void |
forEachKeyValue(com.gs.collections.api.block.procedure.primitive.CharByteProcedure procedure) |
byte |
get(char key) |
protected byte |
getEmptyValue() |
byte |
getIfAbsent(char key,
byte ifAbsent) |
byte |
getIfAbsentPut(char key,
byte value) |
byte |
getIfAbsentPut(char key,
com.gs.collections.api.block.function.primitive.ByteFunction0 function) |
<P> byte |
getIfAbsentPutWith(char key,
com.gs.collections.api.block.function.primitive.ByteFunction<? super P> function,
P parameter) |
byte |
getIfAbsentPutWithKey(char key,
com.gs.collections.api.block.function.primitive.CharToByteFunction function) |
protected int |
getOccupiedWithData() |
byte |
getOrThrow(char key) |
protected AbstractMutableByteValuesMap.SentinelValues |
getSentinelValues() |
protected int |
getTableSize() |
protected byte |
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.ObjectByteToObjectFunction<? super V,? extends V> function) |
protected boolean |
isNonSentinelAtIndex(int index) |
com.gs.collections.api.set.primitive.MutableCharSet |
keySet() |
com.gs.collections.api.LazyCharIterable |
keysView() |
com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.CharBytePair> |
keyValuesView() |
static CharByteHashMap |
newWithKeysValues(char key1,
byte value1) |
static CharByteHashMap |
newWithKeysValues(char key1,
byte value1,
char key2,
byte value2) |
static CharByteHashMap |
newWithKeysValues(char key1,
byte value1,
char key2,
byte value2,
char key3,
byte value3) |
static CharByteHashMap |
newWithKeysValues(char key1,
byte value1,
char key2,
byte value2,
char key3,
byte value3,
char key4,
byte value4) |
void |
put(char key,
byte value) |
void |
putAll(com.gs.collections.api.map.primitive.CharByteMap map) |
void |
readExternal(java.io.ObjectInput in) |
CharByteHashMap |
reject(com.gs.collections.api.block.predicate.primitive.CharBytePredicate predicate) |
void |
remove(char key) |
void |
removeKey(char key) |
byte |
removeKeyIfAbsent(char key,
byte value) |
CharByteHashMap |
select(com.gs.collections.api.block.predicate.primitive.CharBytePredicate predicate) |
protected void |
setSentinelValuesNull() |
com.gs.collections.api.map.primitive.ImmutableCharByteMap |
toImmutable() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
byte |
updateValue(char key,
byte initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.ByteToByteFunction function) |
com.gs.collections.api.collection.primitive.MutableByteCollection |
values() |
CharByteHashMap |
withKeysValues(char key1,
byte value1,
char key2,
byte value2) |
CharByteHashMap |
withKeysValues(char key1,
byte value1,
char key2,
byte value2,
char key3,
byte value3) |
CharByteHashMap |
withKeysValues(char key1,
byte value1,
char key2,
byte value2,
char key3,
byte value3,
char key4,
byte value4) |
CharByteHashMap |
withKeyValue(char key1,
byte value1) |
CharByteHashMap |
withoutAllKeys(com.gs.collections.api.CharIterable keys) |
CharByteHashMap |
withoutKey(char 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 CharByteHashMap()
public CharByteHashMap(int initialCapacity)
public CharByteHashMap(com.gs.collections.api.map.primitive.CharByteMap map)
public static CharByteHashMap newWithKeysValues(char key1, byte value1)
public static CharByteHashMap newWithKeysValues(char key1, byte value1, char key2, byte value2)
public static CharByteHashMap newWithKeysValues(char key1, byte value1, char key2, byte value2, char key3, byte value3)
public static CharByteHashMap newWithKeysValues(char key1, byte value1, char key2, byte value2, char key3, byte value3, char key4, byte value4)
protected int getOccupiedWithData()
getOccupiedWithData in class AbstractMutableByteValuesMapprotected AbstractMutableByteValuesMap.SentinelValues getSentinelValues()
getSentinelValues in class AbstractMutableByteValuesMapprotected void setSentinelValuesNull()
setSentinelValuesNull in class AbstractMutableByteValuesMapprotected byte getEmptyValue()
getEmptyValue in class AbstractMutableByteValuesMapprotected int getTableSize()
getTableSize in class AbstractMutableByteValuesMapprotected byte getValueAtIndex(int index)
getValueAtIndex in class AbstractMutableByteValuesMappublic boolean equals(java.lang.Object obj)
com.gs.collections.api.map.primitive.CharByteMapMap.equals(Object).equals in interface com.gs.collections.api.map.primitive.CharByteMapequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.map.primitive.CharByteMapMap.hashCode().hashCode in interface com.gs.collections.api.map.primitive.CharByteMaphashCode in class java.lang.Objectpublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.map.primitive.CharByteMaptoString in interface com.gs.collections.api.PrimitiveIterabletoString in class AbstractByteIterablepublic com.gs.collections.api.iterator.MutableByteIterator byteIterator()
byteIterator in interface com.gs.collections.api.ByteIterablebyteIterator in interface com.gs.collections.api.map.primitive.MutableByteValuesMappublic <V> V injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectByteToObjectFunction<? super V,? extends V> function)
injectInto in interface com.gs.collections.api.ByteIterablepublic void clear()
clear in interface com.gs.collections.api.map.primitive.MutableByteValuesMapclear in interface MutableCharKeysMappublic void put(char key,
byte value)
put in interface com.gs.collections.api.map.primitive.MutableCharByteMappublic void putAll(com.gs.collections.api.map.primitive.CharByteMap map)
putAll in interface com.gs.collections.api.map.primitive.MutableCharByteMappublic void removeKey(char key)
removeKey in interface com.gs.collections.api.map.primitive.MutableCharByteMapremoveKey in interface MutableCharKeysMappublic void remove(char key)
remove in interface com.gs.collections.api.map.primitive.MutableCharByteMappublic byte removeKeyIfAbsent(char key,
byte value)
removeKeyIfAbsent in interface com.gs.collections.api.map.primitive.MutableCharByteMappublic byte getIfAbsentPut(char key,
byte value)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableCharByteMappublic byte getIfAbsentPut(char key,
com.gs.collections.api.block.function.primitive.ByteFunction0 function)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableCharByteMappublic <P> byte getIfAbsentPutWith(char key,
com.gs.collections.api.block.function.primitive.ByteFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface com.gs.collections.api.map.primitive.MutableCharByteMappublic byte getIfAbsentPutWithKey(char key,
com.gs.collections.api.block.function.primitive.CharToByteFunction function)
getIfAbsentPutWithKey in interface com.gs.collections.api.map.primitive.MutableCharByteMappublic byte addToValue(char key,
byte toBeAdded)
addToValue in interface com.gs.collections.api.map.primitive.MutableCharByteMappublic byte updateValue(char key,
byte initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.ByteToByteFunction function)
updateValue in interface com.gs.collections.api.map.primitive.MutableCharByteMappublic CharByteHashMap withKeyValue(char key1, byte value1)
withKeyValue in interface com.gs.collections.api.map.primitive.MutableCharByteMappublic CharByteHashMap withKeysValues(char key1, byte value1, char key2, byte value2)
public CharByteHashMap withKeysValues(char key1, byte value1, char key2, byte value2, char key3, byte value3)
public CharByteHashMap withKeysValues(char key1, byte value1, char key2, byte value2, char key3, byte value3, char key4, byte value4)
public CharByteHashMap withoutKey(char key)
withoutKey in interface com.gs.collections.api.map.primitive.MutableCharByteMappublic CharByteHashMap withoutAllKeys(com.gs.collections.api.CharIterable keys)
withoutAllKeys in interface com.gs.collections.api.map.primitive.MutableCharByteMappublic com.gs.collections.api.map.primitive.MutableCharByteMap asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.map.primitive.MutableCharByteMappublic com.gs.collections.api.map.primitive.MutableCharByteMap asSynchronized()
asSynchronized in interface com.gs.collections.api.map.primitive.MutableCharByteMappublic com.gs.collections.api.map.primitive.ImmutableCharByteMap toImmutable()
toImmutable in interface com.gs.collections.api.map.primitive.CharByteMappublic byte get(char key)
get in interface com.gs.collections.api.map.primitive.CharByteMappublic byte getIfAbsent(char key,
byte ifAbsent)
getIfAbsent in interface com.gs.collections.api.map.primitive.CharByteMappublic byte getOrThrow(char key)
getOrThrow in interface com.gs.collections.api.map.primitive.CharByteMappublic boolean containsKey(char key)
containsKey in interface com.gs.collections.api.map.primitive.CharByteMapcontainsKey in interface CharKeysMappublic void forEachKey(com.gs.collections.api.block.procedure.primitive.CharProcedure procedure)
forEachKey in interface com.gs.collections.api.map.primitive.CharByteMapforEachKey in interface CharKeysMappublic void forEachKeyValue(com.gs.collections.api.block.procedure.primitive.CharByteProcedure procedure)
forEachKeyValue in interface com.gs.collections.api.map.primitive.CharByteMappublic com.gs.collections.api.LazyCharIterable keysView()
keysView in interface com.gs.collections.api.map.primitive.CharByteMappublic com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.CharBytePair> keyValuesView()
keyValuesView in interface com.gs.collections.api.map.primitive.CharByteMappublic CharByteHashMap select(com.gs.collections.api.block.predicate.primitive.CharBytePredicate predicate)
select in interface com.gs.collections.api.map.primitive.CharByteMapselect in interface com.gs.collections.api.map.primitive.MutableCharByteMappublic CharByteHashMap reject(com.gs.collections.api.block.predicate.primitive.CharBytePredicate predicate)
reject in interface com.gs.collections.api.map.primitive.CharByteMapreject in interface com.gs.collections.api.map.primitive.MutableCharByteMappublic 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 AbstractMutableByteValuesMappublic com.gs.collections.api.set.primitive.MutableCharSet keySet()
keySet in interface com.gs.collections.api.map.primitive.CharByteMappublic com.gs.collections.api.collection.primitive.MutableByteCollection values()
values in interface com.gs.collections.api.map.primitive.ByteValuesMap