public class CharByteHashMap extends AbstractMutableByteValuesMap implements org.eclipse.collections.api.map.primitive.MutableCharByteMap, Externalizable, MutableCharKeysMap
| Constructor and Description |
|---|
CharByteHashMap() |
CharByteHashMap(org.eclipse.collections.api.map.primitive.CharByteMap map) |
CharByteHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
byte |
addToValue(char key,
byte toBeAdded) |
org.eclipse.collections.api.map.primitive.MutableCharByteMap |
asSynchronized() |
org.eclipse.collections.api.map.primitive.MutableCharByteMap |
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(char key) |
boolean |
equals(Object obj) |
void |
forEachKey(org.eclipse.collections.api.block.procedure.primitive.CharProcedure procedure) |
void |
forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.CharByteProcedure procedure) |
byte |
get(char key) |
byte |
getIfAbsent(char key,
byte ifAbsent) |
byte |
getIfAbsentPut(char key,
byte value) |
byte |
getIfAbsentPut(char key,
org.eclipse.collections.api.block.function.primitive.ByteFunction0 function) |
<P> byte |
getIfAbsentPutWith(char key,
org.eclipse.collections.api.block.function.primitive.ByteFunction<? super P> function,
P parameter) |
byte |
getIfAbsentPutWithKey(char key,
org.eclipse.collections.api.block.function.primitive.CharToByteFunction function) |
byte |
getOrThrow(char 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.MutableCharSet |
keySet() |
org.eclipse.collections.api.LazyCharIterable |
keysView() |
org.eclipse.collections.api.RichIterable<org.eclipse.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(org.eclipse.collections.api.map.primitive.CharByteMap map) |
void |
readExternal(ObjectInput in) |
CharByteHashMap |
reject(org.eclipse.collections.api.block.predicate.primitive.CharBytePredicate predicate) |
void |
remove(char key) |
void |
removeKey(char key) |
byte |
removeKeyIfAbsent(char key,
byte value) |
CharByteHashMap |
select(org.eclipse.collections.api.block.predicate.primitive.CharBytePredicate predicate) |
org.eclipse.collections.api.map.primitive.ImmutableCharByteMap |
toImmutable() |
String |
toString() |
byte |
updateValue(char key,
byte initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.ByteToByteFunction function) |
org.eclipse.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(org.eclipse.collections.api.CharIterable keys) |
CharByteHashMap |
withoutKey(char 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 CharByteHashMap()
public CharByteHashMap(int initialCapacity)
public CharByteHashMap(org.eclipse.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)
public boolean equals(Object obj)
public int hashCode()
public String toString()
toString in interface org.eclipse.collections.api.map.primitive.CharByteMaptoString 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 MutableCharKeysMappublic void put(char key,
byte value)
put in interface org.eclipse.collections.api.map.primitive.MutableCharByteMappublic void putAll(org.eclipse.collections.api.map.primitive.CharByteMap map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableCharByteMappublic void removeKey(char key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableCharByteMapremoveKey in interface MutableCharKeysMappublic void remove(char key)
remove in interface org.eclipse.collections.api.map.primitive.MutableCharByteMappublic byte removeKeyIfAbsent(char key,
byte value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableCharByteMappublic byte getIfAbsentPut(char key,
byte value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableCharByteMappublic byte getIfAbsentPut(char key,
org.eclipse.collections.api.block.function.primitive.ByteFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableCharByteMappublic <P> byte getIfAbsentPutWith(char key,
org.eclipse.collections.api.block.function.primitive.ByteFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableCharByteMappublic byte getIfAbsentPutWithKey(char key,
org.eclipse.collections.api.block.function.primitive.CharToByteFunction function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableCharByteMappublic byte addToValue(char key,
byte toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableCharByteMappublic byte updateValue(char key,
byte initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.ByteToByteFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableCharByteMappublic CharByteHashMap withKeyValue(char key1, byte value1)
withKeyValue in interface org.eclipse.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 org.eclipse.collections.api.map.primitive.MutableCharByteMappublic CharByteHashMap withoutAllKeys(org.eclipse.collections.api.CharIterable keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableCharByteMappublic org.eclipse.collections.api.map.primitive.MutableCharByteMap asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableCharByteMappublic org.eclipse.collections.api.map.primitive.MutableCharByteMap asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableCharByteMappublic org.eclipse.collections.api.map.primitive.ImmutableCharByteMap toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.CharByteMappublic byte get(char key)
get in interface org.eclipse.collections.api.map.primitive.CharByteMappublic byte getIfAbsent(char key,
byte ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.CharByteMappublic byte getOrThrow(char key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.CharByteMappublic boolean containsKey(char key)
containsKey in interface org.eclipse.collections.api.map.primitive.CharByteMapcontainsKey in interface CharKeysMappublic void forEachKey(org.eclipse.collections.api.block.procedure.primitive.CharProcedure procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.CharByteMapforEachKey in interface CharKeysMappublic void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.CharByteProcedure procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.CharByteMappublic org.eclipse.collections.api.LazyCharIterable keysView()
keysView in interface org.eclipse.collections.api.map.primitive.CharByteMappublic org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.CharBytePair> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.CharByteMappublic CharByteHashMap select(org.eclipse.collections.api.block.predicate.primitive.CharBytePredicate predicate)
select in interface org.eclipse.collections.api.map.primitive.CharByteMapselect in interface org.eclipse.collections.api.map.primitive.MutableCharByteMappublic CharByteHashMap reject(org.eclipse.collections.api.block.predicate.primitive.CharBytePredicate predicate)
reject in interface org.eclipse.collections.api.map.primitive.CharByteMapreject in interface org.eclipse.collections.api.map.primitive.MutableCharByteMappublic 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.MutableCharSet keySet()
keySet in interface org.eclipse.collections.api.map.primitive.CharByteMappublic org.eclipse.collections.api.collection.primitive.MutableByteCollection values()
values in interface org.eclipse.collections.api.map.primitive.ByteValuesMapCopyright © 2004–2018. All rights reserved.