Class CharLongHashMap
- java.lang.Object
-
- org.eclipse.collections.impl.primitive.AbstractLongIterable
-
- org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableLongValuesMap
-
- org.eclipse.collections.impl.map.mutable.primitive.CharLongHashMap
-
- All Implemented Interfaces:
Externalizable,Serializable,LongIterable,CharLongMap,LongValuesMap,MutableCharLongMap,MutableLongValuesMap,PrimitiveIterable,MutableCharKeysMap,CharKeysMap
public class CharLongHashMap extends AbstractMutableLongValuesMap implements MutableCharLongMap, Externalizable, MutableCharKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.- Since:
- 3.0.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CharLongHashMap()CharLongHashMap(int initialCapacity)CharLongHashMap(CharLongMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description longaddToValue(char key, long toBeAdded)booleanallSatisfyKeyValue(CharLongPredicate predicate)MutableCharLongMapasSynchronized()MutableCharLongMapasUnmodifiable()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(char key)booleanequals(Object obj)MutableLongCharMapflipUniqueValues()voidforEachKey(CharProcedure procedure)voidforEachKeyValue(CharLongProcedure procedure)longget(char key)longgetAndPut(char key, long putValue, long defaultValue)longgetIfAbsent(char key, long ifAbsent)longgetIfAbsentPut(char key, long value)longgetIfAbsentPut(char key, LongFunction0 function)<P> longgetIfAbsentPutWith(char key, LongFunction<? super P> function, P parameter)longgetIfAbsentPutWithKey(char key, CharToLongFunction function)longgetOrThrow(char key)inthashCode()<V> VinjectInto(V injectedValue, ObjectLongToObjectFunction<? super V,? extends V> function)MutableCharSetkeySet()LazyCharIterablekeysView()RichIterable<CharLongPair>keyValuesView()MutableLongIteratorlongIterator()static CharLongHashMapnewWithKeysValues(char key1, long value1)static CharLongHashMapnewWithKeysValues(char key1, long value1, char key2, long value2)static CharLongHashMapnewWithKeysValues(char key1, long value1, char key2, long value2, char key3, long value3)static CharLongHashMapnewWithKeysValues(char key1, long value1, char key2, long value2, char key3, long value3, char key4, long value4)voidput(char key, long value)voidputAll(CharLongMap map)voidreadExternal(ObjectInput in)CharLongHashMapreject(CharLongPredicate predicate)voidremove(char key)voidremoveKey(char key)longremoveKeyIfAbsent(char key, long value)CharLongHashMapselect(CharLongPredicate predicate)ImmutableCharLongMaptoImmutable()StringtoString()booleantrimToSize()longupdateValue(char key, long initialValueIfAbsent, LongToLongFunction function)voidupdateValues(CharLongToLongFunction function)MutableLongCollectionvalues()CharLongHashMapwithKeysValues(char key1, long value1, char key2, long value2)CharLongHashMapwithKeysValues(char key1, long value1, char key2, long value2, char key3, long value3)CharLongHashMapwithKeysValues(char key1, long value1, char key2, long value2, char key3, long value3, char key4, long value4)CharLongHashMapwithKeyValue(char key1, long value1)CharLongHashMapwithoutAllKeys(CharIterable keys)CharLongHashMapwithoutKey(char key)voidwriteExternal(ObjectOutput out)-
Methods inherited from class org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableLongValuesMap
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.AbstractLongIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
-
Methods inherited from interface org.eclipse.collections.impl.map.primitive.CharKeysMap
isEmpty, notEmpty, size
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.CharLongMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.LongIterable
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.LongValuesMap
containsValue, forEachValue, tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableCharLongMap
putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableLongValuesMap
collect, reject, select
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
-
-
-
Constructor Detail
-
CharLongHashMap
public CharLongHashMap()
-
CharLongHashMap
public CharLongHashMap(int initialCapacity)
-
CharLongHashMap
public CharLongHashMap(CharLongMap map)
-
-
Method Detail
-
newWithKeysValues
public static CharLongHashMap newWithKeysValues(char key1, long value1)
-
newWithKeysValues
public static CharLongHashMap newWithKeysValues(char key1, long value1, char key2, long value2)
-
newWithKeysValues
public static CharLongHashMap newWithKeysValues(char key1, long value1, char key2, long value2, char key3, long value3)
-
newWithKeysValues
public static CharLongHashMap newWithKeysValues(char key1, long value1, char key2, long value2, char key3, long value3, char key4, long value4)
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceCharLongMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceCharLongMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceCharLongMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractLongIterable
-
longIterator
public MutableLongIterator longIterator()
- Specified by:
longIteratorin interfaceLongIterable- Specified by:
longIteratorin interfaceMutableLongValuesMap
-
injectInto
public <V> V injectInto(V injectedValue, ObjectLongToObjectFunction<? super V,? extends V> function)- Specified by:
injectIntoin interfaceLongIterable
-
clear
public void clear()
- Specified by:
clearin interfaceMutableCharKeysMap- Specified by:
clearin interfaceMutableLongValuesMap
-
put
public void put(char key, long value)- Specified by:
putin interfaceMutableCharLongMap
-
putAll
public void putAll(CharLongMap map)
- Specified by:
putAllin interfaceMutableCharLongMap
-
updateValues
public void updateValues(CharLongToLongFunction function)
- Specified by:
updateValuesin interfaceMutableCharLongMap
-
removeKey
public void removeKey(char key)
- Specified by:
removeKeyin interfaceMutableCharKeysMap- Specified by:
removeKeyin interfaceMutableCharLongMap
-
remove
public void remove(char key)
- Specified by:
removein interfaceMutableCharLongMap
-
removeKeyIfAbsent
public long removeKeyIfAbsent(char key, long value)- Specified by:
removeKeyIfAbsentin interfaceMutableCharLongMap
-
getIfAbsentPut
public long getIfAbsentPut(char key, long value)- Specified by:
getIfAbsentPutin interfaceMutableCharLongMap
-
getAndPut
public long getAndPut(char key, long putValue, long defaultValue)- Specified by:
getAndPutin interfaceMutableCharLongMap
-
getIfAbsentPut
public long getIfAbsentPut(char key, LongFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableCharLongMap
-
getIfAbsentPutWith
public <P> long getIfAbsentPutWith(char key, LongFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableCharLongMap
-
getIfAbsentPutWithKey
public long getIfAbsentPutWithKey(char key, CharToLongFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableCharLongMap
-
addToValue
public long addToValue(char key, long toBeAdded)- Specified by:
addToValuein interfaceMutableCharLongMap
-
updateValue
public long updateValue(char key, long initialValueIfAbsent, LongToLongFunction function)- Specified by:
updateValuein interfaceMutableCharLongMap
-
withKeyValue
public CharLongHashMap withKeyValue(char key1, long value1)
- Specified by:
withKeyValuein interfaceMutableCharLongMap
-
withKeysValues
public CharLongHashMap withKeysValues(char key1, long value1, char key2, long value2)
-
withKeysValues
public CharLongHashMap withKeysValues(char key1, long value1, char key2, long value2, char key3, long value3)
-
withKeysValues
public CharLongHashMap withKeysValues(char key1, long value1, char key2, long value2, char key3, long value3, char key4, long value4)
-
withoutKey
public CharLongHashMap withoutKey(char key)
- Specified by:
withoutKeyin interfaceMutableCharLongMap
-
withoutAllKeys
public CharLongHashMap withoutAllKeys(CharIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableCharLongMap
-
asUnmodifiable
public MutableCharLongMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableCharLongMap
-
asSynchronized
public MutableCharLongMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableCharLongMap
-
toImmutable
public ImmutableCharLongMap toImmutable()
- Specified by:
toImmutablein interfaceCharLongMap
-
get
public long get(char key)
- Specified by:
getin interfaceCharLongMap
-
getIfAbsent
public long getIfAbsent(char key, long ifAbsent)- Specified by:
getIfAbsentin interfaceCharLongMap
-
getOrThrow
public long getOrThrow(char key)
- Specified by:
getOrThrowin interfaceCharLongMap
-
containsKey
public boolean containsKey(char key)
- Specified by:
containsKeyin interfaceCharKeysMap- Specified by:
containsKeyin interfaceCharLongMap
-
forEachKey
public void forEachKey(CharProcedure procedure)
- Specified by:
forEachKeyin interfaceCharKeysMap- Specified by:
forEachKeyin interfaceCharLongMap
-
forEachKeyValue
public void forEachKeyValue(CharLongProcedure procedure)
- Specified by:
forEachKeyValuein interfaceCharLongMap
-
allSatisfyKeyValue
public boolean allSatisfyKeyValue(CharLongPredicate predicate)
- Specified by:
allSatisfyKeyValuein interfaceCharLongMap- Since:
- 12.0
-
keysView
public LazyCharIterable keysView()
- Specified by:
keysViewin interfaceCharLongMap
-
keyValuesView
public RichIterable<CharLongPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceCharLongMap
-
flipUniqueValues
public MutableLongCharMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceCharLongMap- Specified by:
flipUniqueValuesin interfaceMutableCharLongMap
-
select
public CharLongHashMap select(CharLongPredicate predicate)
- Specified by:
selectin interfaceCharLongMap- Specified by:
selectin interfaceMutableCharLongMap
-
reject
public CharLongHashMap reject(CharLongPredicate predicate)
- Specified by:
rejectin interfaceCharLongMap- Specified by:
rejectin interfaceMutableCharLongMap
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
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 MutableCharSet keySet()
- Specified by:
keySetin interfaceCharLongMap
-
values
public MutableLongCollection values()
- Specified by:
valuesin interfaceLongValuesMap
-
-