Class LongCharHashMap
- java.lang.Object
-
- org.eclipse.collections.impl.primitive.AbstractCharIterable
-
- org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableCharValuesMap
-
- org.eclipse.collections.impl.map.mutable.primitive.LongCharHashMap
-
- All Implemented Interfaces:
Externalizable
,Serializable
,CharIterable
,CharValuesMap
,LongCharMap
,MutableCharValuesMap
,MutableLongCharMap
,PrimitiveIterable
,MutableLongKeysMap
,LongKeysMap
public class LongCharHashMap extends AbstractMutableCharValuesMap implements MutableLongCharMap, Externalizable, MutableLongKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.- Since:
- 3.0.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LongCharHashMap()
LongCharHashMap(int initialCapacity)
LongCharHashMap(LongCharMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description char
addToValue(long key, char toBeAdded)
MutableLongCharMap
asSynchronized()
MutableLongCharMap
asUnmodifiable()
MutableCharIterator
charIterator()
void
clear()
void
compact()
Deprecated.since 12.0 - UsetrimToSize()
insteadboolean
containsKey(long key)
boolean
equals(Object obj)
MutableCharLongMap
flipUniqueValues()
void
forEachKey(LongProcedure procedure)
void
forEachKeyValue(LongCharProcedure procedure)
char
get(long key)
char
getAndPut(long key, char putValue, char defaultValue)
char
getIfAbsent(long key, char ifAbsent)
char
getIfAbsentPut(long key, char value)
char
getIfAbsentPut(long key, CharFunction0 function)
<P> char
getIfAbsentPutWith(long key, CharFunction<? super P> function, P parameter)
char
getIfAbsentPutWithKey(long key, LongToCharFunction function)
char
getOrThrow(long key)
int
hashCode()
<V> V
injectInto(V injectedValue, ObjectCharToObjectFunction<? super V,? extends V> function)
MutableLongSet
keySet()
LazyLongIterable
keysView()
RichIterable<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(LongCharMap map)
void
readExternal(ObjectInput in)
LongCharHashMap
reject(LongCharPredicate predicate)
void
remove(long key)
void
removeKey(long key)
char
removeKeyIfAbsent(long key, char value)
LongCharHashMap
select(LongCharPredicate predicate)
ImmutableLongCharMap
toImmutable()
String
toString()
boolean
trimToSize()
char
updateValue(long key, char initialValueIfAbsent, CharToCharFunction function)
void
updateValues(LongCharToCharFunction function)
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(LongIterable keys)
LongCharHashMap
withoutKey(long key)
void
writeExternal(ObjectOutput out)
-
Methods inherited from class org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableCharValuesMap
allSatisfy, anySatisfy, appendString, chunk, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEachValue, isEmpty, max, min, notEmpty, reject, select, size, sum, toArray, toArray
-
Methods inherited from class org.eclipse.collections.impl.primitive.AbstractCharIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
-
Methods inherited from interface org.eclipse.collections.api.CharIterable
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.CharValuesMap
containsValue, forEachValue, tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.LongCharMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.impl.map.primitive.LongKeysMap
isEmpty, notEmpty, size
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableCharValuesMap
collect, reject, select
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableLongCharMap
putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
-
-
-
Constructor Detail
-
LongCharHashMap
public LongCharHashMap()
-
LongCharHashMap
public LongCharHashMap(int initialCapacity)
-
LongCharHashMap
public LongCharHashMap(LongCharMap map)
-
-
Method Detail
-
newWithKeysValues
public static LongCharHashMap newWithKeysValues(long key1, char value1)
-
newWithKeysValues
public static LongCharHashMap newWithKeysValues(long key1, char value1, long key2, char value2)
-
newWithKeysValues
public static LongCharHashMap newWithKeysValues(long key1, char value1, long key2, char value2, long key3, char value3)
-
newWithKeysValues
public static LongCharHashMap newWithKeysValues(long key1, char value1, long key2, char value2, long key3, char value3, long key4, char value4)
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfaceLongCharMap
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceLongCharMap
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfaceLongCharMap
- Specified by:
toString
in interfacePrimitiveIterable
- Overrides:
toString
in classAbstractCharIterable
-
charIterator
public MutableCharIterator charIterator()
- Specified by:
charIterator
in interfaceCharIterable
- Specified by:
charIterator
in interfaceMutableCharValuesMap
-
injectInto
public <V> V injectInto(V injectedValue, ObjectCharToObjectFunction<? super V,? extends V> function)
- Specified by:
injectInto
in interfaceCharIterable
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableCharValuesMap
- Specified by:
clear
in interfaceMutableLongKeysMap
-
put
public void put(long key, char value)
- Specified by:
put
in interfaceMutableLongCharMap
-
putAll
public void putAll(LongCharMap map)
- Specified by:
putAll
in interfaceMutableLongCharMap
-
updateValues
public void updateValues(LongCharToCharFunction function)
- Specified by:
updateValues
in interfaceMutableLongCharMap
-
removeKey
public void removeKey(long key)
- Specified by:
removeKey
in interfaceMutableLongCharMap
- Specified by:
removeKey
in interfaceMutableLongKeysMap
-
remove
public void remove(long key)
- Specified by:
remove
in interfaceMutableLongCharMap
-
removeKeyIfAbsent
public char removeKeyIfAbsent(long key, char value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableLongCharMap
-
getIfAbsentPut
public char getIfAbsentPut(long key, char value)
- Specified by:
getIfAbsentPut
in interfaceMutableLongCharMap
-
getAndPut
public char getAndPut(long key, char putValue, char defaultValue)
- Specified by:
getAndPut
in interfaceMutableLongCharMap
-
getIfAbsentPut
public char getIfAbsentPut(long key, CharFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableLongCharMap
-
getIfAbsentPutWith
public <P> char getIfAbsentPutWith(long key, CharFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableLongCharMap
-
getIfAbsentPutWithKey
public char getIfAbsentPutWithKey(long key, LongToCharFunction function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableLongCharMap
-
addToValue
public char addToValue(long key, char toBeAdded)
- Specified by:
addToValue
in interfaceMutableLongCharMap
-
updateValue
public char updateValue(long key, char initialValueIfAbsent, CharToCharFunction function)
- Specified by:
updateValue
in interfaceMutableLongCharMap
-
withKeyValue
public LongCharHashMap withKeyValue(long key1, char value1)
- Specified by:
withKeyValue
in interfaceMutableLongCharMap
-
withKeysValues
public LongCharHashMap withKeysValues(long key1, char value1, long key2, char value2)
-
withKeysValues
public LongCharHashMap withKeysValues(long key1, char value1, long key2, char value2, long key3, char value3)
-
withKeysValues
public LongCharHashMap withKeysValues(long key1, char value1, long key2, char value2, long key3, char value3, long key4, char value4)
-
withoutKey
public LongCharHashMap withoutKey(long key)
- Specified by:
withoutKey
in interfaceMutableLongCharMap
-
withoutAllKeys
public LongCharHashMap withoutAllKeys(LongIterable keys)
- Specified by:
withoutAllKeys
in interfaceMutableLongCharMap
-
asUnmodifiable
public MutableLongCharMap asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableLongCharMap
-
asSynchronized
public MutableLongCharMap asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableLongCharMap
-
toImmutable
public ImmutableLongCharMap toImmutable()
- Specified by:
toImmutable
in interfaceLongCharMap
-
get
public char get(long key)
- Specified by:
get
in interfaceLongCharMap
-
getIfAbsent
public char getIfAbsent(long key, char ifAbsent)
- Specified by:
getIfAbsent
in interfaceLongCharMap
-
getOrThrow
public char getOrThrow(long key)
- Specified by:
getOrThrow
in interfaceLongCharMap
-
containsKey
public boolean containsKey(long key)
- Specified by:
containsKey
in interfaceLongCharMap
- Specified by:
containsKey
in interfaceLongKeysMap
-
forEachKey
public void forEachKey(LongProcedure procedure)
- Specified by:
forEachKey
in interfaceLongCharMap
- Specified by:
forEachKey
in interfaceLongKeysMap
-
forEachKeyValue
public void forEachKeyValue(LongCharProcedure procedure)
- Specified by:
forEachKeyValue
in interfaceLongCharMap
-
keysView
public LazyLongIterable keysView()
- Specified by:
keysView
in interfaceLongCharMap
-
keyValuesView
public RichIterable<LongCharPair> keyValuesView()
- Specified by:
keyValuesView
in interfaceLongCharMap
-
flipUniqueValues
public MutableCharLongMap flipUniqueValues()
- Specified by:
flipUniqueValues
in interfaceLongCharMap
- Specified by:
flipUniqueValues
in interfaceMutableLongCharMap
-
select
public LongCharHashMap select(LongCharPredicate predicate)
- Specified by:
select
in interfaceLongCharMap
- Specified by:
select
in interfaceMutableLongCharMap
-
reject
public LongCharHashMap reject(LongCharPredicate predicate)
- Specified by:
reject
in interfaceLongCharMap
- Specified by:
reject
in interfaceMutableLongCharMap
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
trimToSize
public boolean trimToSize()
- Since:
- 12.0
-
compact
@Deprecated public void compact()
Deprecated.since 12.0 - UsetrimToSize()
insteadRehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels.
-
keySet
public MutableLongSet keySet()
- Specified by:
keySet
in interfaceLongCharMap
-
values
public MutableCharCollection values()
- Specified by:
values
in interfaceCharValuesMap
-
-