Class UnmodifiableCharLongMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.UnmodifiableCharLongMap
-
- All Implemented Interfaces:
Serializable,LongIterable,CharLongMap,LongValuesMap,MutableCharLongMap,MutableLongValuesMap,PrimitiveIterable
public class UnmodifiableCharLongMap extends Object implements MutableCharLongMap, Serializable
This file was automatically generated from template file unmodifiablePrimitivePrimitiveMap.stg.- Since:
- 3.1.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableCharLongMap(MutableCharLongMap map)
-
Method Summary
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.CharLongMap
allSatisfyKeyValue, injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.LongIterable
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAny, containsAny, containsNone, containsNone, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics, toSortedList, toSortedListBy, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.LongValuesMap
tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableCharLongMap
withAllKeyValues
-
-
-
-
Constructor Detail
-
UnmodifiableCharLongMap
public UnmodifiableCharLongMap(MutableCharLongMap map)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clearin interfaceMutableLongValuesMap
-
put
public void put(char key, long value)- Specified by:
putin interfaceMutableCharLongMap
-
putPair
public void putPair(CharLongPair keyValuePair)
- Specified by:
putPairin 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 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
-
getIfAbsentPutWithKey
public long getIfAbsentPutWithKey(char key, CharToLongFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableCharLongMap
-
getIfAbsentPutWith
public <P> long getIfAbsentPutWith(char key, LongFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableCharLongMap
-
updateValue
public long updateValue(char key, long initialValueIfAbsent, LongToLongFunction function)- Specified by:
updateValuein interfaceMutableCharLongMap
-
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 interfaceCharLongMap
-
containsValue
public boolean containsValue(long value)
- Specified by:
containsValuein interfaceLongValuesMap
-
forEachValue
public void forEachValue(LongProcedure procedure)
- Specified by:
forEachValuein interfaceLongValuesMap
-
forEachKey
public void forEachKey(CharProcedure procedure)
- Specified by:
forEachKeyin interfaceCharLongMap
-
forEachKeyValue
public void forEachKeyValue(CharLongProcedure procedure)
- Specified by:
forEachKeyValuein interfaceCharLongMap
-
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 MutableCharLongMap select(CharLongPredicate predicate)
- Specified by:
selectin interfaceCharLongMap- Specified by:
selectin interfaceMutableCharLongMap
-
reject
public MutableCharLongMap reject(CharLongPredicate predicate)
- Specified by:
rejectin interfaceCharLongMap- Specified by:
rejectin interfaceMutableCharLongMap
-
longIterator
public MutableLongIterator longIterator()
- Specified by:
longIteratorin interfaceLongIterable- Specified by:
longIteratorin interfaceMutableLongValuesMap
-
each
public void each(LongProcedure procedure)
- Specified by:
eachin interfaceLongIterable- Since:
- 7.0.
-
count
public int count(LongPredicate predicate)
- Specified by:
countin interfaceLongIterable
-
anySatisfy
public boolean anySatisfy(LongPredicate predicate)
- Specified by:
anySatisfyin interfaceLongIterable
-
allSatisfy
public boolean allSatisfy(LongPredicate predicate)
- Specified by:
allSatisfyin interfaceLongIterable
-
noneSatisfy
public boolean noneSatisfy(LongPredicate predicate)
- Specified by:
noneSatisfyin interfaceLongIterable
-
select
public MutableLongBag select(LongPredicate predicate)
- Specified by:
selectin interfaceLongIterable- Specified by:
selectin interfaceLongValuesMap- Specified by:
selectin interfaceMutableLongValuesMap
-
reject
public MutableLongBag reject(LongPredicate predicate)
- Specified by:
rejectin interfaceLongIterable- Specified by:
rejectin interfaceLongValuesMap- Specified by:
rejectin interfaceMutableLongValuesMap
-
collect
public <V> MutableBag<V> collect(LongToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceLongIterable- Specified by:
collectin interfaceLongValuesMap- Specified by:
collectin interfaceMutableLongValuesMap
-
detectIfNone
public long detectIfNone(LongPredicate predicate, long ifNone)
- Specified by:
detectIfNonein interfaceLongIterable
-
sum
public long sum()
- Specified by:
sumin interfaceLongIterable
-
max
public long max()
- Specified by:
maxin interfaceLongIterable
-
maxIfEmpty
public long maxIfEmpty(long defaultValue)
- Specified by:
maxIfEmptyin interfaceLongIterable
-
min
public long min()
- Specified by:
minin interfaceLongIterable
-
minIfEmpty
public long minIfEmpty(long defaultValue)
- Specified by:
minIfEmptyin interfaceLongIterable
-
average
public double average()
- Specified by:
averagein interfaceLongIterable
-
median
public double median()
- Specified by:
medianin interfaceLongIterable
-
addToValue
public long addToValue(char key, long toBeAdded)- Specified by:
addToValuein interfaceMutableCharLongMap
-
toSortedArray
public long[] toSortedArray()
- Specified by:
toSortedArrayin interfaceLongIterable
-
toSortedList
public MutableLongList toSortedList()
- Specified by:
toSortedListin interfaceLongIterable
-
toArray
public long[] toArray()
- Specified by:
toArrayin interfaceLongIterable
-
toArray
public long[] toArray(long[] target)
- Specified by:
toArrayin interfaceLongIterable
-
contains
public boolean contains(long value)
- Specified by:
containsin interfaceLongIterable
-
containsAll
public boolean containsAll(long... source)
- Specified by:
containsAllin interfaceLongIterable
-
containsAll
public boolean containsAll(LongIterable source)
- Specified by:
containsAllin interfaceLongIterable
-
toList
public MutableLongList toList()
- Specified by:
toListin interfaceLongIterable
-
toSet
public MutableLongSet toSet()
- Specified by:
toSetin interfaceLongIterable
-
toBag
public MutableLongBag toBag()
- Specified by:
toBagin interfaceLongIterable
-
asLazy
public LazyLongIterable asLazy()
- Specified by:
asLazyin interfaceLongIterable
-
withKeyValue
public MutableCharLongMap withKeyValue(char key, long value)
- Specified by:
withKeyValuein interfaceMutableCharLongMap
-
withoutKey
public MutableCharLongMap withoutKey(char key)
- Specified by:
withoutKeyin interfaceMutableCharLongMap
-
withoutAllKeys
public MutableCharLongMap 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
-
size
public int size()
- Specified by:
sizein interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()
- Specified by:
notEmptyin interfacePrimitiveIterable
-
keySet
public MutableCharSet keySet()
- Specified by:
keySetin interfaceCharLongMap
-
values
public MutableLongCollection values()
- Specified by:
valuesin interfaceLongValuesMap
-
equals
public boolean equals(Object otherMap)
- 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 classObject
-
makeString
public String makeString()
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String separator)
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendStringin interfacePrimitiveIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectLongToObjectFunction<? super T,? extends T> function)- Specified by:
injectIntoin interfaceLongIterable
-
chunk
public RichIterable<LongIterable> chunk(int size)
- Specified by:
chunkin interfaceLongIterable
-
-