Externalizable, Serializable, LongIterable, CharLongMap, LongValuesMap, MutableCharLongMap, MutableLongValuesMap, PrimitiveIterable, MutableCharKeysMap, CharKeysMappublic class CharLongHashMap extends AbstractMutableLongValuesMap implements MutableCharLongMap, Externalizable, MutableCharKeysMap
| Constructor | Description |
|---|---|
CharLongHashMap() |
|
CharLongHashMap(int initialCapacity) |
|
CharLongHashMap(CharLongMap map) |
| Modifier and Type | Method | Description |
|---|---|---|
long |
addToValue(char key,
long toBeAdded) |
|
MutableCharLongMap |
asSynchronized() |
|
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) |
Follows the same general contract as
Map.equals(Object). |
void |
forEachKey(CharProcedure procedure) |
|
void |
forEachKeyValue(CharLongProcedure procedure) |
|
long |
get(char key) |
|
long |
getIfAbsent(char key,
long ifAbsent) |
|
long |
getIfAbsentPut(char key,
long value) |
|
long |
getIfAbsentPut(char key,
LongFunction0 function) |
|
<P> long |
getIfAbsentPutWith(char key,
LongFunction<? super P> function,
P parameter) |
|
long |
getIfAbsentPutWithKey(char key,
CharToLongFunction function) |
|
long |
getOrThrow(char key) |
|
int |
hashCode() |
Follows the same general contract as
Map.hashCode(). |
<V> V |
injectInto(V injectedValue,
ObjectLongToObjectFunction<? super V,? extends V> function) |
|
MutableCharSet |
keySet() |
|
LazyCharIterable |
keysView() |
|
RichIterable<CharLongPair> |
keyValuesView() |
|
MutableLongIterator |
longIterator() |
Returns a primitive iterator that can be used to iterate over the LongIterable in an
imperative style.
|
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(CharLongMap map) |
|
void |
readExternal(ObjectInput in) |
|
CharLongHashMap |
reject(CharLongPredicate predicate) |
|
void |
remove(char key) |
|
void |
removeKey(char key) |
|
long |
removeKeyIfAbsent(char key,
long value) |
|
CharLongHashMap |
select(CharLongPredicate predicate) |
|
ImmutableCharLongMap |
toImmutable() |
|
String |
toString() |
Returns a string with the elements of this iterable separated by commas with spaces and
enclosed in square brackets.
|
long |
updateValue(char key,
long initialValueIfAbsent,
LongToLongFunction function) |
|
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(CharIterable keys) |
|
CharLongHashMap |
withoutKey(char key) |
|
void |
writeExternal(ObjectOutput out) |
asLazy, average, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListallSatisfy, anySatisfy, appendString, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, select, size, sum, toArrayisEmpty, notEmpty, sizeallSatisfy, anySatisfy, asLazy, average, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListcontainsValue, forEachValuecollect, reject, selectappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizepublic CharLongHashMap()
public CharLongHashMap(int initialCapacity)
public CharLongHashMap(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)
CharLongMapMap.equals(Object).equals in interface CharLongMapequals in class Objectpublic int hashCode()
CharLongMapMap.hashCode().hashCode in interface CharLongMaphashCode in class Objectpublic String toString()
PrimitiveIterable
Assert.assertEquals("[]", IntLists.mutable.empty().toString());
Assert.assertEquals("[1]", IntLists.mutable.with(1).toString());
Assert.assertEquals("[1, 2, 3]", IntLists.mutable.with(1, 2, 3).toString());
toString in interface CharLongMaptoString in interface PrimitiveIterabletoString in class AbstractLongIterableAbstractCollection.toString()public MutableLongIterator longIterator()
LongIterablelongIterator in interface LongIterablelongIterator in interface MutableLongValuesMappublic <V> V injectInto(V injectedValue,
ObjectLongToObjectFunction<? super V,? extends V> function)
injectInto in interface LongIterablepublic void clear()
clear in interface MutableCharKeysMapclear in interface MutableLongValuesMappublic void put(char key,
long value)
put in interface MutableCharLongMappublic void putAll(CharLongMap map)
putAll in interface MutableCharLongMappublic void removeKey(char key)
removeKey in interface MutableCharKeysMapremoveKey in interface MutableCharLongMappublic void remove(char key)
remove in interface MutableCharLongMappublic long removeKeyIfAbsent(char key,
long value)
removeKeyIfAbsent in interface MutableCharLongMappublic long getIfAbsentPut(char key,
long value)
getIfAbsentPut in interface MutableCharLongMappublic long getIfAbsentPut(char key,
LongFunction0 function)
getIfAbsentPut in interface MutableCharLongMappublic <P> long getIfAbsentPutWith(char key,
LongFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableCharLongMappublic long getIfAbsentPutWithKey(char key,
CharToLongFunction function)
getIfAbsentPutWithKey in interface MutableCharLongMappublic long addToValue(char key,
long toBeAdded)
addToValue in interface MutableCharLongMappublic long updateValue(char key,
long initialValueIfAbsent,
LongToLongFunction function)
updateValue in interface MutableCharLongMappublic CharLongHashMap withKeyValue(char key1, long value1)
withKeyValue in interface 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 MutableCharLongMappublic CharLongHashMap withoutAllKeys(CharIterable keys)
withoutAllKeys in interface MutableCharLongMappublic MutableCharLongMap asUnmodifiable()
asUnmodifiable in interface MutableCharLongMappublic MutableCharLongMap asSynchronized()
asSynchronized in interface MutableCharLongMappublic ImmutableCharLongMap toImmutable()
toImmutable in interface CharLongMappublic long get(char key)
get in interface CharLongMappublic long getIfAbsent(char key,
long ifAbsent)
getIfAbsent in interface CharLongMappublic long getOrThrow(char key)
getOrThrow in interface CharLongMappublic boolean containsKey(char key)
containsKey in interface CharKeysMapcontainsKey in interface CharLongMappublic void forEachKey(CharProcedure procedure)
forEachKey in interface CharKeysMapforEachKey in interface CharLongMappublic void forEachKeyValue(CharLongProcedure procedure)
forEachKeyValue in interface CharLongMappublic LazyCharIterable keysView()
keysView in interface CharLongMappublic RichIterable<CharLongPair> keyValuesView()
keyValuesView in interface CharLongMappublic CharLongHashMap select(CharLongPredicate predicate)
select in interface CharLongMapselect in interface MutableCharLongMappublic CharLongHashMap reject(CharLongPredicate predicate)
reject in interface CharLongMapreject in interface 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 MutableCharSet keySet()
keySet in interface CharLongMappublic MutableLongCollection values()
values in interface LongValuesMapCopyright © 2004–2017. All rights reserved.