public class LongCharHashMap extends AbstractMutableCharValuesMap implements com.gs.collections.api.map.primitive.MutableLongCharMap, java.io.Externalizable, MutableLongKeysMap
AbstractMutableCharValuesMap.AbstractCharValuesCollection, AbstractMutableCharValuesMap.SentinelValues| Constructor and Description |
|---|
LongCharHashMap() |
LongCharHashMap(int initialCapacity) |
LongCharHashMap(com.gs.collections.api.map.primitive.LongCharMap map) |
| Modifier and Type | Method and Description |
|---|---|
char |
addToValue(long key,
char toBeAdded) |
com.gs.collections.api.map.primitive.MutableLongCharMap |
asSynchronized() |
com.gs.collections.api.map.primitive.MutableLongCharMap |
asUnmodifiable() |
com.gs.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(long 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.LongProcedure procedure) |
void |
forEachKeyValue(com.gs.collections.api.block.procedure.primitive.LongCharProcedure procedure) |
char |
get(long key) |
protected char |
getEmptyValue() |
char |
getIfAbsent(long key,
char ifAbsent) |
char |
getIfAbsentPut(long key,
char value) |
char |
getIfAbsentPut(long key,
com.gs.collections.api.block.function.primitive.CharFunction0 function) |
<P> char |
getIfAbsentPutWith(long key,
com.gs.collections.api.block.function.primitive.CharFunction<? super P> function,
P parameter) |
char |
getIfAbsentPutWithKey(long key,
com.gs.collections.api.block.function.primitive.LongToCharFunction function) |
protected int |
getOccupiedWithData() |
char |
getOrThrow(long key) |
protected AbstractMutableCharValuesMap.SentinelValues |
getSentinelValues() |
protected int |
getTableSize() |
protected char |
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.ObjectCharToObjectFunction<? super V,? extends V> function) |
protected boolean |
isNonSentinelAtIndex(int index) |
com.gs.collections.api.set.primitive.MutableLongSet |
keySet() |
com.gs.collections.api.LazyLongIterable |
keysView() |
com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.LongCharPair> |
keyValuesView() |
static LongCharHashMap |
newWithKeysValues(long key1,
char value1) |
static LongCharHashMap |
newWithKeysValues(long key1,
char value1,
long key2,
char value2) |
static LongCharHashMap |
newWithKeysValues(long key1,
char value1,
long key2,
char value2,
long key3,
char value3) |
static LongCharHashMap |
newWithKeysValues(long key1,
char value1,
long key2,
char value2,
long key3,
char value3,
long key4,
char value4) |
void |
put(long key,
char value) |
void |
putAll(com.gs.collections.api.map.primitive.LongCharMap map) |
void |
readExternal(java.io.ObjectInput in) |
LongCharHashMap |
reject(com.gs.collections.api.block.predicate.primitive.LongCharPredicate predicate) |
void |
remove(long key) |
void |
removeKey(long key) |
char |
removeKeyIfAbsent(long key,
char value) |
LongCharHashMap |
select(com.gs.collections.api.block.predicate.primitive.LongCharPredicate predicate) |
protected void |
setSentinelValuesNull() |
com.gs.collections.api.map.primitive.ImmutableLongCharMap |
toImmutable() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
char |
updateValue(long key,
char initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.CharToCharFunction function) |
com.gs.collections.api.collection.primitive.MutableCharCollection |
values() |
LongCharHashMap |
withKeysValues(long key1,
char value1,
long key2,
char value2) |
LongCharHashMap |
withKeysValues(long key1,
char value1,
long key2,
char value2,
long key3,
char value3) |
LongCharHashMap |
withKeysValues(long key1,
char value1,
long key2,
char value2,
long key3,
char value3,
long key4,
char value4) |
LongCharHashMap |
withKeyValue(long key1,
char value1) |
LongCharHashMap |
withoutAllKeys(com.gs.collections.api.LongIterable keys) |
LongCharHashMap |
withoutKey(long 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 LongCharHashMap()
public LongCharHashMap(int initialCapacity)
public LongCharHashMap(com.gs.collections.api.map.primitive.LongCharMap map)
public static LongCharHashMap newWithKeysValues(long key1, char value1)
public static LongCharHashMap newWithKeysValues(long key1, char value1, long key2, char value2)
public static LongCharHashMap newWithKeysValues(long key1, char value1, long key2, char value2, long key3, char value3)
public static LongCharHashMap newWithKeysValues(long key1, char value1, long key2, char value2, long key3, char value3, long key4, char value4)
protected int getOccupiedWithData()
getOccupiedWithData in class AbstractMutableCharValuesMapprotected AbstractMutableCharValuesMap.SentinelValues getSentinelValues()
getSentinelValues in class AbstractMutableCharValuesMapprotected void setSentinelValuesNull()
setSentinelValuesNull in class AbstractMutableCharValuesMapprotected char getEmptyValue()
getEmptyValue in class AbstractMutableCharValuesMapprotected int getTableSize()
getTableSize in class AbstractMutableCharValuesMapprotected char getValueAtIndex(int index)
getValueAtIndex in class AbstractMutableCharValuesMappublic boolean equals(java.lang.Object obj)
com.gs.collections.api.map.primitive.LongCharMapMap.equals(Object).equals in interface com.gs.collections.api.map.primitive.LongCharMapequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.map.primitive.LongCharMapMap.hashCode().hashCode in interface com.gs.collections.api.map.primitive.LongCharMaphashCode in class java.lang.Objectpublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.map.primitive.LongCharMaptoString in interface com.gs.collections.api.PrimitiveIterabletoString in class AbstractCharIterablepublic com.gs.collections.api.iterator.MutableCharIterator charIterator()
charIterator in interface com.gs.collections.api.CharIterablecharIterator in interface com.gs.collections.api.map.primitive.MutableCharValuesMappublic <V> V injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectCharToObjectFunction<? super V,? extends V> function)
injectInto in interface com.gs.collections.api.CharIterablepublic void clear()
clear in interface com.gs.collections.api.map.primitive.MutableCharValuesMapclear in interface MutableLongKeysMappublic void put(long key,
char value)
put in interface com.gs.collections.api.map.primitive.MutableLongCharMappublic void putAll(com.gs.collections.api.map.primitive.LongCharMap map)
putAll in interface com.gs.collections.api.map.primitive.MutableLongCharMappublic void removeKey(long key)
removeKey in interface com.gs.collections.api.map.primitive.MutableLongCharMapremoveKey in interface MutableLongKeysMappublic void remove(long key)
remove in interface com.gs.collections.api.map.primitive.MutableLongCharMappublic char removeKeyIfAbsent(long key,
char value)
removeKeyIfAbsent in interface com.gs.collections.api.map.primitive.MutableLongCharMappublic char getIfAbsentPut(long key,
char value)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableLongCharMappublic char getIfAbsentPut(long key,
com.gs.collections.api.block.function.primitive.CharFunction0 function)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableLongCharMappublic <P> char getIfAbsentPutWith(long key,
com.gs.collections.api.block.function.primitive.CharFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface com.gs.collections.api.map.primitive.MutableLongCharMappublic char getIfAbsentPutWithKey(long key,
com.gs.collections.api.block.function.primitive.LongToCharFunction function)
getIfAbsentPutWithKey in interface com.gs.collections.api.map.primitive.MutableLongCharMappublic char addToValue(long key,
char toBeAdded)
addToValue in interface com.gs.collections.api.map.primitive.MutableLongCharMappublic char updateValue(long key,
char initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.CharToCharFunction function)
updateValue in interface com.gs.collections.api.map.primitive.MutableLongCharMappublic LongCharHashMap withKeyValue(long key1, char value1)
withKeyValue in interface com.gs.collections.api.map.primitive.MutableLongCharMappublic LongCharHashMap withKeysValues(long key1, char value1, long key2, char value2)
public LongCharHashMap withKeysValues(long key1, char value1, long key2, char value2, long key3, char value3)
public LongCharHashMap withKeysValues(long key1, char value1, long key2, char value2, long key3, char value3, long key4, char value4)
public LongCharHashMap withoutKey(long key)
withoutKey in interface com.gs.collections.api.map.primitive.MutableLongCharMappublic LongCharHashMap withoutAllKeys(com.gs.collections.api.LongIterable keys)
withoutAllKeys in interface com.gs.collections.api.map.primitive.MutableLongCharMappublic com.gs.collections.api.map.primitive.MutableLongCharMap asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.map.primitive.MutableLongCharMappublic com.gs.collections.api.map.primitive.MutableLongCharMap asSynchronized()
asSynchronized in interface com.gs.collections.api.map.primitive.MutableLongCharMappublic com.gs.collections.api.map.primitive.ImmutableLongCharMap toImmutable()
toImmutable in interface com.gs.collections.api.map.primitive.LongCharMappublic char get(long key)
get in interface com.gs.collections.api.map.primitive.LongCharMappublic char getIfAbsent(long key,
char ifAbsent)
getIfAbsent in interface com.gs.collections.api.map.primitive.LongCharMappublic char getOrThrow(long key)
getOrThrow in interface com.gs.collections.api.map.primitive.LongCharMappublic boolean containsKey(long key)
containsKey in interface com.gs.collections.api.map.primitive.LongCharMapcontainsKey in interface LongKeysMappublic void forEachKey(com.gs.collections.api.block.procedure.primitive.LongProcedure procedure)
forEachKey in interface com.gs.collections.api.map.primitive.LongCharMapforEachKey in interface LongKeysMappublic void forEachKeyValue(com.gs.collections.api.block.procedure.primitive.LongCharProcedure procedure)
forEachKeyValue in interface com.gs.collections.api.map.primitive.LongCharMappublic com.gs.collections.api.LazyLongIterable keysView()
keysView in interface com.gs.collections.api.map.primitive.LongCharMappublic com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.LongCharPair> keyValuesView()
keyValuesView in interface com.gs.collections.api.map.primitive.LongCharMappublic LongCharHashMap select(com.gs.collections.api.block.predicate.primitive.LongCharPredicate predicate)
select in interface com.gs.collections.api.map.primitive.LongCharMapselect in interface com.gs.collections.api.map.primitive.MutableLongCharMappublic LongCharHashMap reject(com.gs.collections.api.block.predicate.primitive.LongCharPredicate predicate)
reject in interface com.gs.collections.api.map.primitive.LongCharMapreject in interface com.gs.collections.api.map.primitive.MutableLongCharMappublic 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 AbstractMutableCharValuesMappublic com.gs.collections.api.set.primitive.MutableLongSet keySet()
keySet in interface com.gs.collections.api.map.primitive.LongCharMappublic com.gs.collections.api.collection.primitive.MutableCharCollection values()
values in interface com.gs.collections.api.map.primitive.CharValuesMap