public class CharLongHashMap extends AbstractMutableLongValuesMap implements com.gs.collections.api.map.primitive.MutableCharLongMap, java.io.Externalizable, MutableCharKeysMap
AbstractMutableLongValuesMap.AbstractLongValuesCollection, AbstractMutableLongValuesMap.SentinelValues| Constructor and Description |
|---|
CharLongHashMap() |
CharLongHashMap(com.gs.collections.api.map.primitive.CharLongMap map) |
CharLongHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
long |
addToValue(char key,
long toBeAdded) |
com.gs.collections.api.map.primitive.MutableCharLongMap |
asSynchronized() |
com.gs.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(java.lang.Object obj)
Follows the same general contract as
Map.equals(Object). |
void |
forEachKey(com.gs.collections.api.block.procedure.primitive.CharProcedure procedure) |
void |
forEachKeyValue(com.gs.collections.api.block.procedure.primitive.CharLongProcedure procedure) |
long |
get(char key) |
protected long |
getEmptyValue() |
long |
getIfAbsent(char key,
long ifAbsent) |
long |
getIfAbsentPut(char key,
long value) |
long |
getIfAbsentPut(char key,
com.gs.collections.api.block.function.primitive.LongFunction0 function) |
<P> long |
getIfAbsentPutWith(char key,
com.gs.collections.api.block.function.primitive.LongFunction<? super P> function,
P parameter) |
long |
getIfAbsentPutWithKey(char key,
com.gs.collections.api.block.function.primitive.CharToLongFunction function) |
protected int |
getOccupiedWithData() |
long |
getOrThrow(char key) |
protected AbstractMutableLongValuesMap.SentinelValues |
getSentinelValues() |
protected int |
getTableSize() |
protected long |
getValueAtIndex(int index) |
int |
hashCode()
Follows the same general contract as
Map.hashCode(). |
<V> V |
injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectLongToObjectFunction<? super V,? extends V> function) |
protected boolean |
isNonSentinelAtIndex(int index) |
com.gs.collections.api.set.primitive.MutableCharSet |
keySet() |
com.gs.collections.api.LazyCharIterable |
keysView() |
com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.CharLongPair> |
keyValuesView() |
com.gs.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(com.gs.collections.api.map.primitive.CharLongMap map) |
void |
readExternal(java.io.ObjectInput in) |
CharLongHashMap |
reject(com.gs.collections.api.block.predicate.primitive.CharLongPredicate predicate) |
void |
remove(char key) |
void |
removeKey(char key) |
long |
removeKeyIfAbsent(char key,
long value) |
CharLongHashMap |
select(com.gs.collections.api.block.predicate.primitive.CharLongPredicate predicate) |
protected void |
setSentinelValuesNull() |
com.gs.collections.api.map.primitive.ImmutableCharLongMap |
toImmutable() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
long |
updateValue(char key,
long initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.LongToLongFunction function) |
com.gs.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(com.gs.collections.api.CharIterable keys) |
CharLongHashMap |
withoutKey(char key) |
void |
writeExternal(java.io.ObjectOutput out) |
addEmptyKeyValue, addRemovedKeyValue, allSatisfy, anySatisfy, appendString, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, removeEmptyKey, removeRemovedKey, select, size, sum, toArrayappendString, appendString, asLazy, average, containsAll, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListclone, finalize, getClass, notify, notifyAll, wait, wait, waitcollect, 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(com.gs.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)
protected int getOccupiedWithData()
getOccupiedWithData in class AbstractMutableLongValuesMapprotected AbstractMutableLongValuesMap.SentinelValues getSentinelValues()
getSentinelValues in class AbstractMutableLongValuesMapprotected void setSentinelValuesNull()
setSentinelValuesNull in class AbstractMutableLongValuesMapprotected long getEmptyValue()
getEmptyValue in class AbstractMutableLongValuesMapprotected int getTableSize()
getTableSize in class AbstractMutableLongValuesMapprotected long getValueAtIndex(int index)
getValueAtIndex in class AbstractMutableLongValuesMappublic boolean equals(java.lang.Object obj)
com.gs.collections.api.map.primitive.CharLongMapMap.equals(Object).equals in interface com.gs.collections.api.map.primitive.CharLongMapequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.map.primitive.CharLongMapMap.hashCode().hashCode in interface com.gs.collections.api.map.primitive.CharLongMaphashCode in class java.lang.Objectpublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.map.primitive.CharLongMaptoString in interface com.gs.collections.api.PrimitiveIterabletoString in class AbstractLongIterablepublic com.gs.collections.api.iterator.MutableLongIterator longIterator()
longIterator in interface com.gs.collections.api.LongIterablelongIterator in interface com.gs.collections.api.map.primitive.MutableLongValuesMappublic <V> V injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectLongToObjectFunction<? super V,? extends V> function)
injectInto in interface com.gs.collections.api.LongIterablepublic void clear()
clear in interface com.gs.collections.api.map.primitive.MutableLongValuesMapclear in interface MutableCharKeysMappublic void put(char key,
long value)
put in interface com.gs.collections.api.map.primitive.MutableCharLongMappublic void putAll(com.gs.collections.api.map.primitive.CharLongMap map)
putAll in interface com.gs.collections.api.map.primitive.MutableCharLongMappublic void removeKey(char key)
removeKey in interface com.gs.collections.api.map.primitive.MutableCharLongMapremoveKey in interface MutableCharKeysMappublic void remove(char key)
remove in interface com.gs.collections.api.map.primitive.MutableCharLongMappublic long removeKeyIfAbsent(char key,
long value)
removeKeyIfAbsent in interface com.gs.collections.api.map.primitive.MutableCharLongMappublic long getIfAbsentPut(char key,
long value)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableCharLongMappublic long getIfAbsentPut(char key,
com.gs.collections.api.block.function.primitive.LongFunction0 function)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableCharLongMappublic <P> long getIfAbsentPutWith(char key,
com.gs.collections.api.block.function.primitive.LongFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface com.gs.collections.api.map.primitive.MutableCharLongMappublic long getIfAbsentPutWithKey(char key,
com.gs.collections.api.block.function.primitive.CharToLongFunction function)
getIfAbsentPutWithKey in interface com.gs.collections.api.map.primitive.MutableCharLongMappublic long addToValue(char key,
long toBeAdded)
addToValue in interface com.gs.collections.api.map.primitive.MutableCharLongMappublic long updateValue(char key,
long initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.LongToLongFunction function)
updateValue in interface com.gs.collections.api.map.primitive.MutableCharLongMappublic CharLongHashMap withKeyValue(char key1, long value1)
withKeyValue in interface com.gs.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 com.gs.collections.api.map.primitive.MutableCharLongMappublic CharLongHashMap withoutAllKeys(com.gs.collections.api.CharIterable keys)
withoutAllKeys in interface com.gs.collections.api.map.primitive.MutableCharLongMappublic com.gs.collections.api.map.primitive.MutableCharLongMap asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.map.primitive.MutableCharLongMappublic com.gs.collections.api.map.primitive.MutableCharLongMap asSynchronized()
asSynchronized in interface com.gs.collections.api.map.primitive.MutableCharLongMappublic com.gs.collections.api.map.primitive.ImmutableCharLongMap toImmutable()
toImmutable in interface com.gs.collections.api.map.primitive.CharLongMappublic long get(char key)
get in interface com.gs.collections.api.map.primitive.CharLongMappublic long getIfAbsent(char key,
long ifAbsent)
getIfAbsent in interface com.gs.collections.api.map.primitive.CharLongMappublic long getOrThrow(char key)
getOrThrow in interface com.gs.collections.api.map.primitive.CharLongMappublic boolean containsKey(char key)
containsKey in interface com.gs.collections.api.map.primitive.CharLongMapcontainsKey in interface CharKeysMappublic void forEachKey(com.gs.collections.api.block.procedure.primitive.CharProcedure procedure)
forEachKey in interface com.gs.collections.api.map.primitive.CharLongMapforEachKey in interface CharKeysMappublic void forEachKeyValue(com.gs.collections.api.block.procedure.primitive.CharLongProcedure procedure)
forEachKeyValue in interface com.gs.collections.api.map.primitive.CharLongMappublic com.gs.collections.api.LazyCharIterable keysView()
keysView in interface com.gs.collections.api.map.primitive.CharLongMappublic com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.CharLongPair> keyValuesView()
keyValuesView in interface com.gs.collections.api.map.primitive.CharLongMappublic CharLongHashMap select(com.gs.collections.api.block.predicate.primitive.CharLongPredicate predicate)
select in interface com.gs.collections.api.map.primitive.CharLongMapselect in interface com.gs.collections.api.map.primitive.MutableCharLongMappublic CharLongHashMap reject(com.gs.collections.api.block.predicate.primitive.CharLongPredicate predicate)
reject in interface com.gs.collections.api.map.primitive.CharLongMapreject in interface com.gs.collections.api.map.primitive.MutableCharLongMappublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic void compact()
protected boolean isNonSentinelAtIndex(int index)
isNonSentinelAtIndex in class AbstractMutableLongValuesMappublic com.gs.collections.api.set.primitive.MutableCharSet keySet()
keySet in interface com.gs.collections.api.map.primitive.CharLongMappublic com.gs.collections.api.collection.primitive.MutableLongCollection values()
values in interface com.gs.collections.api.map.primitive.LongValuesMap