public class CharLongHashMap extends AbstractMutableLongValuesMap implements org.eclipse.collections.api.map.primitive.MutableCharLongMap, Externalizable, MutableCharKeysMap
| Constructor and Description |
|---|
CharLongHashMap() |
CharLongHashMap(org.eclipse.collections.api.map.primitive.CharLongMap map) |
CharLongHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
long |
addToValue(char key,
long toBeAdded) |
org.eclipse.collections.api.map.primitive.MutableCharLongMap |
asSynchronized() |
org.eclipse.collections.api.map.primitive.MutableCharLongMap |
asUnmodifiable() |
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.CharLongProcedure procedure) |
long |
get(char key) |
long |
getIfAbsent(char key,
long ifAbsent) |
long |
getIfAbsentPut(char key,
long value) |
long |
getIfAbsentPut(char key,
org.eclipse.collections.api.block.function.primitive.LongFunction0 function) |
<P> long |
getIfAbsentPutWith(char key,
org.eclipse.collections.api.block.function.primitive.LongFunction<? super P> function,
P parameter) |
long |
getIfAbsentPutWithKey(char key,
org.eclipse.collections.api.block.function.primitive.CharToLongFunction function) |
long |
getOrThrow(char key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectLongToObjectFunction<? 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.CharLongPair> |
keyValuesView() |
org.eclipse.collections.api.iterator.MutableLongIterator |
longIterator() |
static CharLongHashMap |
newWithKeysValues(char key1,
long value1) |
static CharLongHashMap |
newWithKeysValues(char key1,
long value1,
char key2,
long value2) |
static CharLongHashMap |
newWithKeysValues(char key1,
long value1,
char key2,
long value2,
char key3,
long value3) |
static CharLongHashMap |
newWithKeysValues(char key1,
long value1,
char key2,
long value2,
char key3,
long value3,
char key4,
long value4) |
void |
put(char key,
long value) |
void |
putAll(org.eclipse.collections.api.map.primitive.CharLongMap map) |
void |
readExternal(ObjectInput in) |
CharLongHashMap |
reject(org.eclipse.collections.api.block.predicate.primitive.CharLongPredicate predicate) |
void |
remove(char key) |
void |
removeKey(char key) |
long |
removeKeyIfAbsent(char key,
long value) |
CharLongHashMap |
select(org.eclipse.collections.api.block.predicate.primitive.CharLongPredicate predicate) |
org.eclipse.collections.api.map.primitive.ImmutableCharLongMap |
toImmutable() |
String |
toString() |
long |
updateValue(char key,
long initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.LongToLongFunction function) |
org.eclipse.collections.api.collection.primitive.MutableLongCollection |
values() |
CharLongHashMap |
withKeysValues(char key1,
long value1,
char key2,
long value2) |
CharLongHashMap |
withKeysValues(char key1,
long value1,
char key2,
long value2,
char key3,
long value3) |
CharLongHashMap |
withKeysValues(char key1,
long value1,
char key2,
long value2,
char key3,
long value3,
char key4,
long value4) |
CharLongHashMap |
withKeyValue(char key1,
long value1) |
CharLongHashMap |
withoutAllKeys(org.eclipse.collections.api.CharIterable keys) |
CharLongHashMap |
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 CharLongHashMap()
public CharLongHashMap(int initialCapacity)
public CharLongHashMap(org.eclipse.collections.api.map.primitive.CharLongMap map)
public static CharLongHashMap newWithKeysValues(char key1, long value1)
public static CharLongHashMap newWithKeysValues(char key1, long value1, char key2, long value2)
public static CharLongHashMap newWithKeysValues(char key1, long value1, char key2, long value2, char key3, long value3)
public static CharLongHashMap newWithKeysValues(char key1, long value1, char key2, long value2, char key3, long value3, char key4, long value4)
public boolean equals(Object obj)
public int hashCode()
public String toString()
toString in interface org.eclipse.collections.api.map.primitive.CharLongMaptoString in interface org.eclipse.collections.api.PrimitiveIterabletoString in class AbstractLongIterablepublic org.eclipse.collections.api.iterator.MutableLongIterator longIterator()
longIterator in interface org.eclipse.collections.api.LongIterablelongIterator in interface org.eclipse.collections.api.map.primitive.MutableLongValuesMappublic <V> V injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectLongToObjectFunction<? super V,? extends V> function)
injectInto in interface org.eclipse.collections.api.LongIterablepublic void clear()
clear in interface org.eclipse.collections.api.map.primitive.MutableLongValuesMapclear in interface MutableCharKeysMappublic void put(char key,
long value)
put in interface org.eclipse.collections.api.map.primitive.MutableCharLongMappublic void putAll(org.eclipse.collections.api.map.primitive.CharLongMap map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableCharLongMappublic void removeKey(char key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableCharLongMapremoveKey in interface MutableCharKeysMappublic void remove(char key)
remove in interface org.eclipse.collections.api.map.primitive.MutableCharLongMappublic long removeKeyIfAbsent(char key,
long value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableCharLongMappublic long getIfAbsentPut(char key,
long value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableCharLongMappublic long getIfAbsentPut(char key,
org.eclipse.collections.api.block.function.primitive.LongFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableCharLongMappublic <P> long getIfAbsentPutWith(char key,
org.eclipse.collections.api.block.function.primitive.LongFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableCharLongMappublic long getIfAbsentPutWithKey(char key,
org.eclipse.collections.api.block.function.primitive.CharToLongFunction function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableCharLongMappublic long addToValue(char key,
long toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableCharLongMappublic long updateValue(char key,
long initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.LongToLongFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableCharLongMappublic CharLongHashMap withKeyValue(char key1, long value1)
withKeyValue in interface org.eclipse.collections.api.map.primitive.MutableCharLongMappublic CharLongHashMap withKeysValues(char key1, long value1, char key2, long value2)
public CharLongHashMap withKeysValues(char key1, long value1, char key2, long value2, char key3, long value3)
public CharLongHashMap withKeysValues(char key1, long value1, char key2, long value2, char key3, long value3, char key4, long value4)
public CharLongHashMap withoutKey(char key)
withoutKey in interface org.eclipse.collections.api.map.primitive.MutableCharLongMappublic CharLongHashMap withoutAllKeys(org.eclipse.collections.api.CharIterable keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableCharLongMappublic org.eclipse.collections.api.map.primitive.MutableCharLongMap asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableCharLongMappublic org.eclipse.collections.api.map.primitive.MutableCharLongMap asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableCharLongMappublic org.eclipse.collections.api.map.primitive.ImmutableCharLongMap toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.CharLongMappublic long get(char key)
get in interface org.eclipse.collections.api.map.primitive.CharLongMappublic long getIfAbsent(char key,
long ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.CharLongMappublic long getOrThrow(char key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.CharLongMappublic boolean containsKey(char key)
containsKey in interface org.eclipse.collections.api.map.primitive.CharLongMapcontainsKey in interface CharKeysMappublic void forEachKey(org.eclipse.collections.api.block.procedure.primitive.CharProcedure procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.CharLongMapforEachKey in interface CharKeysMappublic void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.CharLongProcedure procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.CharLongMappublic org.eclipse.collections.api.LazyCharIterable keysView()
keysView in interface org.eclipse.collections.api.map.primitive.CharLongMappublic org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.CharLongPair> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.CharLongMappublic CharLongHashMap select(org.eclipse.collections.api.block.predicate.primitive.CharLongPredicate predicate)
select in interface org.eclipse.collections.api.map.primitive.CharLongMapselect in interface org.eclipse.collections.api.map.primitive.MutableCharLongMappublic CharLongHashMap reject(org.eclipse.collections.api.block.predicate.primitive.CharLongPredicate predicate)
reject in interface org.eclipse.collections.api.map.primitive.CharLongMapreject in interface org.eclipse.collections.api.map.primitive.MutableCharLongMappublic 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.CharLongMappublic org.eclipse.collections.api.collection.primitive.MutableLongCollection values()
values in interface org.eclipse.collections.api.map.primitive.LongValuesMapCopyright © 2004–2017. All rights reserved.