public class ByteCharHashMap extends AbstractMutableCharValuesMap implements org.eclipse.collections.api.map.primitive.MutableByteCharMap, Externalizable, MutableByteKeysMap
| Constructor and Description |
|---|
ByteCharHashMap() |
ByteCharHashMap(org.eclipse.collections.api.map.primitive.ByteCharMap map) |
ByteCharHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
char |
addToValue(byte key,
char toBeAdded) |
org.eclipse.collections.api.map.primitive.MutableByteCharMap |
asSynchronized() |
org.eclipse.collections.api.map.primitive.MutableByteCharMap |
asUnmodifiable() |
org.eclipse.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(Object obj) |
void |
forEachKey(org.eclipse.collections.api.block.procedure.primitive.ByteProcedure procedure) |
void |
forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ByteCharProcedure procedure) |
char |
get(byte key) |
char |
getIfAbsent(byte key,
char ifAbsent) |
char |
getIfAbsentPut(byte key,
char value) |
char |
getIfAbsentPut(byte key,
org.eclipse.collections.api.block.function.primitive.CharFunction0 function) |
<P> char |
getIfAbsentPutWith(byte key,
org.eclipse.collections.api.block.function.primitive.CharFunction<? super P> function,
P parameter) |
char |
getIfAbsentPutWithKey(byte key,
org.eclipse.collections.api.block.function.primitive.ByteToCharFunction function) |
char |
getOrThrow(byte key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectCharToObjectFunction<? 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.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(org.eclipse.collections.api.map.primitive.ByteCharMap map) |
void |
readExternal(ObjectInput in) |
ByteCharHashMap |
reject(org.eclipse.collections.api.block.predicate.primitive.ByteCharPredicate predicate) |
void |
remove(byte key) |
void |
removeKey(byte key) |
char |
removeKeyIfAbsent(byte key,
char value) |
ByteCharHashMap |
select(org.eclipse.collections.api.block.predicate.primitive.ByteCharPredicate predicate) |
org.eclipse.collections.api.map.primitive.ImmutableByteCharMap |
toImmutable() |
String |
toString() |
char |
updateValue(byte key,
char initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.CharToCharFunction function) |
org.eclipse.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(org.eclipse.collections.api.ByteIterable keys) |
ByteCharHashMap |
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 ByteCharHashMap()
public ByteCharHashMap(int initialCapacity)
public ByteCharHashMap(org.eclipse.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)
public boolean equals(Object obj)
public int hashCode()
public String toString()
toString in interface org.eclipse.collections.api.map.primitive.ByteCharMaptoString in interface org.eclipse.collections.api.PrimitiveIterabletoString in class AbstractCharIterablepublic org.eclipse.collections.api.iterator.MutableCharIterator charIterator()
charIterator in interface org.eclipse.collections.api.CharIterablecharIterator in interface org.eclipse.collections.api.map.primitive.MutableCharValuesMappublic <V> V injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectCharToObjectFunction<? super V,? extends V> function)
injectInto in interface org.eclipse.collections.api.CharIterablepublic void clear()
clear in interface org.eclipse.collections.api.map.primitive.MutableCharValuesMapclear in interface MutableByteKeysMappublic void put(byte key,
char value)
put in interface org.eclipse.collections.api.map.primitive.MutableByteCharMappublic void putAll(org.eclipse.collections.api.map.primitive.ByteCharMap map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableByteCharMappublic void removeKey(byte key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableByteCharMapremoveKey in interface MutableByteKeysMappublic void remove(byte key)
remove in interface org.eclipse.collections.api.map.primitive.MutableByteCharMappublic char removeKeyIfAbsent(byte key,
char value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableByteCharMappublic char getIfAbsentPut(byte key,
char value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableByteCharMappublic char getIfAbsentPut(byte key,
org.eclipse.collections.api.block.function.primitive.CharFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableByteCharMappublic <P> char getIfAbsentPutWith(byte key,
org.eclipse.collections.api.block.function.primitive.CharFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableByteCharMappublic char getIfAbsentPutWithKey(byte key,
org.eclipse.collections.api.block.function.primitive.ByteToCharFunction function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableByteCharMappublic char addToValue(byte key,
char toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableByteCharMappublic char updateValue(byte key,
char initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.CharToCharFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableByteCharMappublic ByteCharHashMap withKeyValue(byte key1, char value1)
withKeyValue in interface org.eclipse.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 org.eclipse.collections.api.map.primitive.MutableByteCharMappublic ByteCharHashMap withoutAllKeys(org.eclipse.collections.api.ByteIterable keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableByteCharMappublic org.eclipse.collections.api.map.primitive.MutableByteCharMap asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableByteCharMappublic org.eclipse.collections.api.map.primitive.MutableByteCharMap asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableByteCharMappublic org.eclipse.collections.api.map.primitive.ImmutableByteCharMap toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.ByteCharMappublic char get(byte key)
get in interface org.eclipse.collections.api.map.primitive.ByteCharMappublic char getIfAbsent(byte key,
char ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.ByteCharMappublic char getOrThrow(byte key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.ByteCharMappublic boolean containsKey(byte key)
containsKey in interface org.eclipse.collections.api.map.primitive.ByteCharMapcontainsKey in interface ByteKeysMappublic void forEachKey(org.eclipse.collections.api.block.procedure.primitive.ByteProcedure procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.ByteCharMapforEachKey in interface ByteKeysMappublic void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ByteCharProcedure procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.ByteCharMappublic org.eclipse.collections.api.LazyByteIterable keysView()
keysView in interface org.eclipse.collections.api.map.primitive.ByteCharMappublic org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.ByteCharPair> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.ByteCharMappublic ByteCharHashMap select(org.eclipse.collections.api.block.predicate.primitive.ByteCharPredicate predicate)
select in interface org.eclipse.collections.api.map.primitive.ByteCharMapselect in interface org.eclipse.collections.api.map.primitive.MutableByteCharMappublic ByteCharHashMap reject(org.eclipse.collections.api.block.predicate.primitive.ByteCharPredicate predicate)
reject in interface org.eclipse.collections.api.map.primitive.ByteCharMapreject in interface org.eclipse.collections.api.map.primitive.MutableByteCharMappublic 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.ByteCharMappublic org.eclipse.collections.api.collection.primitive.MutableCharCollection values()
values in interface org.eclipse.collections.api.map.primitive.CharValuesMapCopyright © 2004–2018. All rights reserved.