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 charaddToValue(long key, char toBeAdded)MutableLongCharMapasSynchronized()MutableLongCharMapasUnmodifiable()MutableCharIteratorcharIterator()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(long key)booleanequals(Object obj)MutableCharLongMapflipUniqueValues()voidforEachKey(LongProcedure procedure)voidforEachKeyValue(LongCharProcedure procedure)charget(long key)chargetAndPut(long key, char putValue, char defaultValue)chargetIfAbsent(long key, char ifAbsent)chargetIfAbsentPut(long key, char value)chargetIfAbsentPut(long key, CharFunction0 function)<P> chargetIfAbsentPutWith(long key, CharFunction<? super P> function, P parameter)chargetIfAbsentPutWithKey(long key, LongToCharFunction function)chargetOrThrow(long key)inthashCode()<V> VinjectInto(V injectedValue, ObjectCharToObjectFunction<? super V,? extends V> function)MutableLongSetkeySet()LazyLongIterablekeysView()RichIterable<LongCharPair>keyValuesView()static LongCharHashMapnewWithKeysValues(long key1, char value1)static LongCharHashMapnewWithKeysValues(long key1, char value1, long key2, char value2)static LongCharHashMapnewWithKeysValues(long key1, char value1, long key2, char value2, long key3, char value3)static LongCharHashMapnewWithKeysValues(long key1, char value1, long key2, char value2, long key3, char value3, long key4, char value4)voidput(long key, char value)voidputAll(LongCharMap map)voidreadExternal(ObjectInput in)LongCharHashMapreject(LongCharPredicate predicate)voidremove(long key)voidremoveKey(long key)charremoveKeyIfAbsent(long key, char value)LongCharHashMapselect(LongCharPredicate predicate)ImmutableLongCharMaptoImmutable()StringtoString()booleantrimToSize()charupdateValue(long key, char initialValueIfAbsent, CharToCharFunction function)voidupdateValues(LongCharToCharFunction function)MutableCharCollectionvalues()LongCharHashMapwithKeysValues(long key1, char value1, long key2, char value2)LongCharHashMapwithKeysValues(long key1, char value1, long key2, char value2, long key3, char value3)LongCharHashMapwithKeysValues(long key1, char value1, long key2, char value2, long key3, char value3, long key4, char value4)LongCharHashMapwithKeyValue(long key1, char value1)LongCharHashMapwithoutAllKeys(LongIterable keys)LongCharHashMapwithoutKey(long key)voidwriteExternal(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:
equalsin interfaceLongCharMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceLongCharMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceLongCharMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractCharIterable
-
charIterator
public MutableCharIterator charIterator()
- Specified by:
charIteratorin interfaceCharIterable- Specified by:
charIteratorin interfaceMutableCharValuesMap
-
injectInto
public <V> V injectInto(V injectedValue, ObjectCharToObjectFunction<? super V,? extends V> function)- Specified by:
injectIntoin interfaceCharIterable
-
clear
public void clear()
- Specified by:
clearin interfaceMutableCharValuesMap- Specified by:
clearin interfaceMutableLongKeysMap
-
put
public void put(long key, char value)- Specified by:
putin interfaceMutableLongCharMap
-
putAll
public void putAll(LongCharMap map)
- Specified by:
putAllin interfaceMutableLongCharMap
-
updateValues
public void updateValues(LongCharToCharFunction function)
- Specified by:
updateValuesin interfaceMutableLongCharMap
-
removeKey
public void removeKey(long key)
- Specified by:
removeKeyin interfaceMutableLongCharMap- Specified by:
removeKeyin interfaceMutableLongKeysMap
-
remove
public void remove(long key)
- Specified by:
removein interfaceMutableLongCharMap
-
removeKeyIfAbsent
public char removeKeyIfAbsent(long key, char value)- Specified by:
removeKeyIfAbsentin interfaceMutableLongCharMap
-
getIfAbsentPut
public char getIfAbsentPut(long key, char value)- Specified by:
getIfAbsentPutin interfaceMutableLongCharMap
-
getAndPut
public char getAndPut(long key, char putValue, char defaultValue)- Specified by:
getAndPutin interfaceMutableLongCharMap
-
getIfAbsentPut
public char getIfAbsentPut(long key, CharFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableLongCharMap
-
getIfAbsentPutWith
public <P> char getIfAbsentPutWith(long key, CharFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableLongCharMap
-
getIfAbsentPutWithKey
public char getIfAbsentPutWithKey(long key, LongToCharFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableLongCharMap
-
addToValue
public char addToValue(long key, char toBeAdded)- Specified by:
addToValuein interfaceMutableLongCharMap
-
updateValue
public char updateValue(long key, char initialValueIfAbsent, CharToCharFunction function)- Specified by:
updateValuein interfaceMutableLongCharMap
-
withKeyValue
public LongCharHashMap withKeyValue(long key1, char value1)
- Specified by:
withKeyValuein 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:
withoutKeyin interfaceMutableLongCharMap
-
withoutAllKeys
public LongCharHashMap withoutAllKeys(LongIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableLongCharMap
-
asUnmodifiable
public MutableLongCharMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableLongCharMap
-
asSynchronized
public MutableLongCharMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableLongCharMap
-
toImmutable
public ImmutableLongCharMap toImmutable()
- Specified by:
toImmutablein interfaceLongCharMap
-
get
public char get(long key)
- Specified by:
getin interfaceLongCharMap
-
getIfAbsent
public char getIfAbsent(long key, char ifAbsent)- Specified by:
getIfAbsentin interfaceLongCharMap
-
getOrThrow
public char getOrThrow(long key)
- Specified by:
getOrThrowin interfaceLongCharMap
-
containsKey
public boolean containsKey(long key)
- Specified by:
containsKeyin interfaceLongCharMap- Specified by:
containsKeyin interfaceLongKeysMap
-
forEachKey
public void forEachKey(LongProcedure procedure)
- Specified by:
forEachKeyin interfaceLongCharMap- Specified by:
forEachKeyin interfaceLongKeysMap
-
forEachKeyValue
public void forEachKeyValue(LongCharProcedure procedure)
- Specified by:
forEachKeyValuein interfaceLongCharMap
-
keysView
public LazyLongIterable keysView()
- Specified by:
keysViewin interfaceLongCharMap
-
keyValuesView
public RichIterable<LongCharPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceLongCharMap
-
flipUniqueValues
public MutableCharLongMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceLongCharMap- Specified by:
flipUniqueValuesin interfaceMutableLongCharMap
-
select
public LongCharHashMap select(LongCharPredicate predicate)
- Specified by:
selectin interfaceLongCharMap- Specified by:
selectin interfaceMutableLongCharMap
-
reject
public LongCharHashMap reject(LongCharPredicate predicate)
- Specified by:
rejectin interfaceLongCharMap- Specified by:
rejectin interfaceMutableLongCharMap
-
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 MutableLongSet keySet()
- Specified by:
keySetin interfaceLongCharMap
-
values
public MutableCharCollection values()
- Specified by:
valuesin interfaceCharValuesMap
-
-