public class ObjectCharHashMap<K> extends Object implements org.eclipse.collections.api.map.primitive.MutableObjectCharMap<K>, Externalizable
| Modifier and Type | Field and Description |
|---|---|
static char |
EMPTY_VALUE |
| Constructor and Description |
|---|
ObjectCharHashMap() |
ObjectCharHashMap(int initialCapacity) |
ObjectCharHashMap(org.eclipse.collections.api.map.primitive.ObjectCharMap<? extends K> map) |
| Modifier and Type | Method and Description |
|---|---|
char |
addToValue(K key,
char toBeAdded) |
boolean |
allSatisfy(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate) |
boolean |
anySatisfy(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate) |
void |
appendString(Appendable appendable) |
void |
appendString(Appendable appendable,
String separator) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
org.eclipse.collections.api.LazyCharIterable |
asLazy() |
org.eclipse.collections.api.map.primitive.MutableObjectCharMap<K> |
asSynchronized() |
org.eclipse.collections.api.map.primitive.MutableObjectCharMap<K> |
asUnmodifiable() |
double |
average() |
org.eclipse.collections.api.iterator.MutableCharIterator |
charIterator() |
void |
clear() |
<V> org.eclipse.collections.api.collection.MutableCollection<V> |
collect(org.eclipse.collections.api.block.function.primitive.CharToObjectFunction<? extends V> function) |
void |
compact()
Rehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels.
|
boolean |
contains(char value) |
boolean |
containsAll(char... source) |
boolean |
containsAll(org.eclipse.collections.api.CharIterable source) |
boolean |
containsKey(Object key) |
boolean |
containsValue(char value) |
int |
count(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate) |
char |
detectIfNone(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate,
char ifNone) |
void |
each(org.eclipse.collections.api.block.procedure.primitive.CharProcedure procedure) |
boolean |
equals(Object obj) |
void |
forEach(org.eclipse.collections.api.block.procedure.primitive.CharProcedure procedure) |
void |
forEachKey(org.eclipse.collections.api.block.procedure.Procedure<? super K> procedure) |
void |
forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ObjectCharProcedure<? super K> procedure) |
void |
forEachValue(org.eclipse.collections.api.block.procedure.primitive.CharProcedure procedure) |
char |
get(Object key) |
char |
getIfAbsent(Object key,
char ifAbsent) |
char |
getIfAbsentPut(K key,
char value) |
char |
getIfAbsentPut(K key,
org.eclipse.collections.api.block.function.primitive.CharFunction0 function) |
<P> char |
getIfAbsentPutWith(K key,
org.eclipse.collections.api.block.function.primitive.CharFunction<? super P> function,
P parameter) |
char |
getIfAbsentPutWithKey(K key,
org.eclipse.collections.api.block.function.primitive.CharFunction<? super K> function) |
char |
getOrThrow(Object key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectCharToObjectFunction<? super V,? extends V> function) |
boolean |
isEmpty() |
Set<K> |
keySet() |
org.eclipse.collections.api.LazyIterable<K> |
keysView() |
org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.ObjectCharPair<K>> |
keyValuesView() |
String |
makeString() |
String |
makeString(String separator) |
String |
makeString(String start,
String separator,
String end) |
char |
max() |
char |
maxIfEmpty(char defaultValue) |
double |
median() |
char |
min() |
char |
minIfEmpty(char defaultValue) |
static <K> ObjectCharHashMap<K> |
newMap() |
static <K> ObjectCharHashMap<K> |
newWithKeysValues(K key1,
char value1) |
static <K> ObjectCharHashMap<K> |
newWithKeysValues(K key1,
char value1,
K key2,
char value2) |
static <K> ObjectCharHashMap<K> |
newWithKeysValues(K key1,
char value1,
K key2,
char value2,
K key3,
char value3) |
static <K> ObjectCharHashMap<K> |
newWithKeysValues(K key1,
char value1,
K key2,
char value2,
K key3,
char value3,
K key4,
char value4) |
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate) |
boolean |
notEmpty() |
void |
put(K key,
char value) |
void |
putAll(org.eclipse.collections.api.map.primitive.ObjectCharMap<? extends K> map) |
void |
readExternal(ObjectInput in) |
org.eclipse.collections.api.collection.primitive.MutableCharCollection |
reject(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate) |
ObjectCharHashMap<K> |
reject(org.eclipse.collections.api.block.predicate.primitive.ObjectCharPredicate<? super K> predicate) |
void |
remove(Object key) |
void |
removeKey(K key) |
char |
removeKeyIfAbsent(K key,
char value) |
org.eclipse.collections.api.collection.primitive.MutableCharCollection |
select(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate) |
ObjectCharHashMap<K> |
select(org.eclipse.collections.api.block.predicate.primitive.ObjectCharPredicate<? super K> predicate) |
int |
size() |
long |
sum() |
char[] |
toArray() |
org.eclipse.collections.api.bag.primitive.MutableCharBag |
toBag() |
org.eclipse.collections.api.map.primitive.ImmutableObjectCharMap<K> |
toImmutable() |
org.eclipse.collections.api.list.primitive.MutableCharList |
toList() |
org.eclipse.collections.api.set.primitive.MutableCharSet |
toSet() |
char[] |
toSortedArray() |
org.eclipse.collections.api.list.primitive.MutableCharList |
toSortedList() |
String |
toString() |
char |
updateValue(K key,
char initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.CharToCharFunction function) |
org.eclipse.collections.api.collection.primitive.MutableCharCollection |
values() |
ObjectCharHashMap<K> |
withKeysValues(K key1,
char value1,
K key2,
char value2) |
ObjectCharHashMap<K> |
withKeysValues(K key1,
char value1,
K key2,
char value2,
K key3,
char value3) |
ObjectCharHashMap<K> |
withKeysValues(K key1,
char value1,
K key2,
char value2,
K key3,
char value3,
K key4,
char value4) |
ObjectCharHashMap<K> |
withKeyValue(K key1,
char value1) |
ObjectCharHashMap<K> |
withoutAllKeys(Iterable<? extends K> keys) |
ObjectCharHashMap<K> |
withoutKey(K key) |
void |
writeExternal(ObjectOutput out) |
public static final char EMPTY_VALUE
public ObjectCharHashMap()
public ObjectCharHashMap(int initialCapacity)
public ObjectCharHashMap(org.eclipse.collections.api.map.primitive.ObjectCharMap<? extends K> map)
public static <K> ObjectCharHashMap<K> newMap()
public static <K> ObjectCharHashMap<K> newWithKeysValues(K key1, char value1)
public static <K> ObjectCharHashMap<K> newWithKeysValues(K key1, char value1, K key2, char value2)
public static <K> ObjectCharHashMap<K> newWithKeysValues(K key1, char value1, K key2, char value2, K key3, char value3)
public static <K> ObjectCharHashMap<K> newWithKeysValues(K key1, char value1, K key2, char value2, K key3, char value3, K key4, char value4)
public String toString()
public int size()
size in interface org.eclipse.collections.api.PrimitiveIterablepublic boolean isEmpty()
isEmpty in interface org.eclipse.collections.api.PrimitiveIterablepublic boolean notEmpty()
notEmpty in interface org.eclipse.collections.api.PrimitiveIterablepublic String makeString()
makeString in interface org.eclipse.collections.api.PrimitiveIterablepublic String makeString(String separator)
makeString in interface org.eclipse.collections.api.PrimitiveIterablepublic String makeString(String start, String separator, String end)
makeString in interface org.eclipse.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable, String separator)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic org.eclipse.collections.api.iterator.MutableCharIterator charIterator()
charIterator in interface org.eclipse.collections.api.CharIterablecharIterator in interface org.eclipse.collections.api.map.primitive.MutableObjectCharMap<K>public char[] toArray()
toArray in interface org.eclipse.collections.api.CharIterablepublic boolean contains(char value)
contains in interface org.eclipse.collections.api.CharIterablepublic boolean containsAll(char... source)
containsAll in interface org.eclipse.collections.api.CharIterablepublic boolean containsAll(org.eclipse.collections.api.CharIterable source)
containsAll in interface org.eclipse.collections.api.CharIterablepublic void clear()
clear in interface org.eclipse.collections.api.map.primitive.MutableObjectCharMap<K>public void put(K key, char value)
put in interface org.eclipse.collections.api.map.primitive.MutableObjectCharMap<K>public void putAll(org.eclipse.collections.api.map.primitive.ObjectCharMap<? extends K> map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableObjectCharMap<K>public void removeKey(K key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableObjectCharMap<K>public void remove(Object key)
remove in interface org.eclipse.collections.api.map.primitive.MutableObjectCharMap<K>public char removeKeyIfAbsent(K key, char value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableObjectCharMap<K>public char getIfAbsentPut(K key, char value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableObjectCharMap<K>public char getIfAbsentPut(K key, org.eclipse.collections.api.block.function.primitive.CharFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableObjectCharMap<K>public <P> char getIfAbsentPutWith(K key, org.eclipse.collections.api.block.function.primitive.CharFunction<? super P> function, P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableObjectCharMap<K>public char getIfAbsentPutWithKey(K key, org.eclipse.collections.api.block.function.primitive.CharFunction<? super K> function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableObjectCharMap<K>public char updateValue(K key, char initialValueIfAbsent, org.eclipse.collections.api.block.function.primitive.CharToCharFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableObjectCharMap<K>public char addToValue(K key, char toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableObjectCharMap<K>public ObjectCharHashMap<K> withKeyValue(K key1, char value1)
withKeyValue in interface org.eclipse.collections.api.map.primitive.MutableObjectCharMap<K>public ObjectCharHashMap<K> withKeysValues(K key1, char value1, K key2, char value2)
public ObjectCharHashMap<K> withKeysValues(K key1, char value1, K key2, char value2, K key3, char value3)
public ObjectCharHashMap<K> withKeysValues(K key1, char value1, K key2, char value2, K key3, char value3, K key4, char value4)
public ObjectCharHashMap<K> withoutKey(K key)
withoutKey in interface org.eclipse.collections.api.map.primitive.MutableObjectCharMap<K>public ObjectCharHashMap<K> withoutAllKeys(Iterable<? extends K> keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableObjectCharMap<K>public org.eclipse.collections.api.map.primitive.MutableObjectCharMap<K> asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableObjectCharMap<K>public org.eclipse.collections.api.map.primitive.MutableObjectCharMap<K> asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableObjectCharMap<K>public org.eclipse.collections.api.map.primitive.ImmutableObjectCharMap<K> toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.ObjectCharMap<K>public char get(Object key)
get in interface org.eclipse.collections.api.map.primitive.ObjectCharMap<K>public char getOrThrow(Object key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.ObjectCharMap<K>public char getIfAbsent(Object key, char ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.ObjectCharMap<K>public boolean containsKey(Object key)
containsKey in interface org.eclipse.collections.api.map.primitive.ObjectCharMap<K>public boolean containsValue(char value)
containsValue in interface org.eclipse.collections.api.map.primitive.ObjectCharMap<K>public void forEach(org.eclipse.collections.api.block.procedure.primitive.CharProcedure procedure)
forEach in interface org.eclipse.collections.api.CharIterablepublic void each(org.eclipse.collections.api.block.procedure.primitive.CharProcedure procedure)
each in interface org.eclipse.collections.api.CharIterablepublic void forEachValue(org.eclipse.collections.api.block.procedure.primitive.CharProcedure procedure)
forEachValue in interface org.eclipse.collections.api.map.primitive.ObjectCharMap<K>public void forEachKey(org.eclipse.collections.api.block.procedure.Procedure<? super K> procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.ObjectCharMap<K>public void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ObjectCharProcedure<? super K> procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.ObjectCharMap<K>public ObjectCharHashMap<K> select(org.eclipse.collections.api.block.predicate.primitive.ObjectCharPredicate<? super K> predicate)
public ObjectCharHashMap<K> reject(org.eclipse.collections.api.block.predicate.primitive.ObjectCharPredicate<? super K> predicate)
public org.eclipse.collections.api.collection.primitive.MutableCharCollection select(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate)
select in interface org.eclipse.collections.api.CharIterableselect in interface org.eclipse.collections.api.map.primitive.MutableObjectCharMap<K>public org.eclipse.collections.api.collection.primitive.MutableCharCollection reject(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate)
reject in interface org.eclipse.collections.api.CharIterablereject in interface org.eclipse.collections.api.map.primitive.MutableObjectCharMap<K>public char detectIfNone(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate,
char ifNone)
detectIfNone in interface org.eclipse.collections.api.CharIterablepublic <V> org.eclipse.collections.api.collection.MutableCollection<V> collect(org.eclipse.collections.api.block.function.primitive.CharToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.CharIterablecollect in interface org.eclipse.collections.api.map.primitive.MutableObjectCharMap<K>public int count(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate)
count in interface org.eclipse.collections.api.CharIterablepublic boolean anySatisfy(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate)
anySatisfy in interface org.eclipse.collections.api.CharIterablepublic boolean allSatisfy(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate)
allSatisfy in interface org.eclipse.collections.api.CharIterablepublic boolean noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate)
noneSatisfy in interface org.eclipse.collections.api.CharIterablepublic <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 long sum()
sum in interface org.eclipse.collections.api.CharIterablepublic char max()
max in interface org.eclipse.collections.api.CharIterablepublic char min()
min in interface org.eclipse.collections.api.CharIterablepublic char maxIfEmpty(char defaultValue)
maxIfEmpty in interface org.eclipse.collections.api.CharIterablepublic char minIfEmpty(char defaultValue)
minIfEmpty in interface org.eclipse.collections.api.CharIterablepublic double average()
average in interface org.eclipse.collections.api.CharIterablepublic double median()
median in interface org.eclipse.collections.api.CharIterablepublic org.eclipse.collections.api.list.primitive.MutableCharList toList()
toList in interface org.eclipse.collections.api.CharIterablepublic org.eclipse.collections.api.set.primitive.MutableCharSet toSet()
toSet in interface org.eclipse.collections.api.CharIterablepublic org.eclipse.collections.api.bag.primitive.MutableCharBag toBag()
toBag in interface org.eclipse.collections.api.CharIterablepublic org.eclipse.collections.api.LazyCharIterable asLazy()
asLazy in interface org.eclipse.collections.api.CharIterablepublic char[] toSortedArray()
toSortedArray in interface org.eclipse.collections.api.CharIterablepublic org.eclipse.collections.api.list.primitive.MutableCharList toSortedList()
toSortedList in interface org.eclipse.collections.api.CharIterablepublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic org.eclipse.collections.api.LazyIterable<K> keysView()
keysView in interface org.eclipse.collections.api.map.primitive.ObjectCharMap<K>public org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.ObjectCharPair<K>> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.ObjectCharMap<K>public void compact()
public Set<K> keySet()
keySet in interface org.eclipse.collections.api.map.primitive.ObjectCharMap<K>public org.eclipse.collections.api.collection.primitive.MutableCharCollection values()
values in interface org.eclipse.collections.api.map.primitive.ObjectCharMap<K>Copyright © 2004–2018. All rights reserved.