Class UnmodifiableDoubleCharMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.UnmodifiableDoubleCharMap
-
- All Implemented Interfaces:
Serializable,CharIterable,CharValuesMap,DoubleCharMap,MutableCharValuesMap,MutableDoubleCharMap,PrimitiveIterable
public class UnmodifiableDoubleCharMap extends Object implements MutableDoubleCharMap, Serializable
This file was automatically generated from template file unmodifiablePrimitivePrimitiveMap.stg.- Since:
- 3.1.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableDoubleCharMap(MutableDoubleCharMap map)
-
Method Summary
-
Methods inherited from interface org.eclipse.collections.api.CharIterable
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.CharValuesMap
tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.DoubleCharMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableDoubleCharMap
withAllKeyValues
-
-
-
-
Constructor Detail
-
UnmodifiableDoubleCharMap
public UnmodifiableDoubleCharMap(MutableDoubleCharMap map)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clearin interfaceMutableCharValuesMap
-
put
public void put(double key, char value)- Specified by:
putin interfaceMutableDoubleCharMap
-
putPair
public void putPair(DoubleCharPair keyValuePair)
- Specified by:
putPairin interfaceMutableDoubleCharMap
-
putAll
public void putAll(DoubleCharMap map)
- Specified by:
putAllin interfaceMutableDoubleCharMap
-
updateValues
public void updateValues(DoubleCharToCharFunction function)
- Specified by:
updateValuesin interfaceMutableDoubleCharMap
-
removeKey
public void removeKey(double key)
- Specified by:
removeKeyin interfaceMutableDoubleCharMap
-
remove
public void remove(double key)
- Specified by:
removein interfaceMutableDoubleCharMap
-
removeKeyIfAbsent
public char removeKeyIfAbsent(double key, char value)- Specified by:
removeKeyIfAbsentin interfaceMutableDoubleCharMap
-
getIfAbsentPut
public char getIfAbsentPut(double key, char value)- Specified by:
getIfAbsentPutin interfaceMutableDoubleCharMap
-
getAndPut
public char getAndPut(double key, char putValue, char defaultValue)- Specified by:
getAndPutin interfaceMutableDoubleCharMap
-
getIfAbsentPut
public char getIfAbsentPut(double key, CharFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableDoubleCharMap
-
getIfAbsentPutWithKey
public char getIfAbsentPutWithKey(double key, DoubleToCharFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableDoubleCharMap
-
getIfAbsentPutWith
public <P> char getIfAbsentPutWith(double key, CharFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableDoubleCharMap
-
updateValue
public char updateValue(double key, char initialValueIfAbsent, CharToCharFunction function)- Specified by:
updateValuein interfaceMutableDoubleCharMap
-
get
public char get(double key)
- Specified by:
getin interfaceDoubleCharMap
-
getIfAbsent
public char getIfAbsent(double key, char ifAbsent)- Specified by:
getIfAbsentin interfaceDoubleCharMap
-
getOrThrow
public char getOrThrow(double key)
- Specified by:
getOrThrowin interfaceDoubleCharMap
-
containsKey
public boolean containsKey(double key)
- Specified by:
containsKeyin interfaceDoubleCharMap
-
containsValue
public boolean containsValue(char value)
- Specified by:
containsValuein interfaceCharValuesMap
-
forEachValue
public void forEachValue(CharProcedure procedure)
- Specified by:
forEachValuein interfaceCharValuesMap
-
forEachKey
public void forEachKey(DoubleProcedure procedure)
- Specified by:
forEachKeyin interfaceDoubleCharMap
-
forEachKeyValue
public void forEachKeyValue(DoubleCharProcedure procedure)
- Specified by:
forEachKeyValuein interfaceDoubleCharMap
-
keysView
public LazyDoubleIterable keysView()
- Specified by:
keysViewin interfaceDoubleCharMap
-
keyValuesView
public RichIterable<DoubleCharPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceDoubleCharMap
-
flipUniqueValues
public MutableCharDoubleMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceDoubleCharMap- Specified by:
flipUniqueValuesin interfaceMutableDoubleCharMap
-
select
public MutableDoubleCharMap select(DoubleCharPredicate predicate)
- Specified by:
selectin interfaceDoubleCharMap- Specified by:
selectin interfaceMutableDoubleCharMap
-
reject
public MutableDoubleCharMap reject(DoubleCharPredicate predicate)
- Specified by:
rejectin interfaceDoubleCharMap- Specified by:
rejectin interfaceMutableDoubleCharMap
-
charIterator
public MutableCharIterator charIterator()
- Specified by:
charIteratorin interfaceCharIterable- Specified by:
charIteratorin interfaceMutableCharValuesMap
-
each
public void each(CharProcedure procedure)
- Specified by:
eachin interfaceCharIterable- Since:
- 7.0.
-
count
public int count(CharPredicate predicate)
- Specified by:
countin interfaceCharIterable
-
anySatisfy
public boolean anySatisfy(CharPredicate predicate)
- Specified by:
anySatisfyin interfaceCharIterable
-
allSatisfy
public boolean allSatisfy(CharPredicate predicate)
- Specified by:
allSatisfyin interfaceCharIterable
-
noneSatisfy
public boolean noneSatisfy(CharPredicate predicate)
- Specified by:
noneSatisfyin interfaceCharIterable
-
select
public MutableCharBag select(CharPredicate predicate)
- Specified by:
selectin interfaceCharIterable- Specified by:
selectin interfaceCharValuesMap- Specified by:
selectin interfaceMutableCharValuesMap
-
reject
public MutableCharBag reject(CharPredicate predicate)
- Specified by:
rejectin interfaceCharIterable- Specified by:
rejectin interfaceCharValuesMap- Specified by:
rejectin interfaceMutableCharValuesMap
-
collect
public <V> MutableBag<V> collect(CharToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceCharIterable- Specified by:
collectin interfaceCharValuesMap- Specified by:
collectin interfaceMutableCharValuesMap
-
detectIfNone
public char detectIfNone(CharPredicate predicate, char ifNone)
- Specified by:
detectIfNonein interfaceCharIterable
-
sum
public long sum()
- Specified by:
sumin interfaceCharIterable
-
max
public char max()
- Specified by:
maxin interfaceCharIterable
-
maxIfEmpty
public char maxIfEmpty(char defaultValue)
- Specified by:
maxIfEmptyin interfaceCharIterable
-
min
public char min()
- Specified by:
minin interfaceCharIterable
-
minIfEmpty
public char minIfEmpty(char defaultValue)
- Specified by:
minIfEmptyin interfaceCharIterable
-
average
public double average()
- Specified by:
averagein interfaceCharIterable
-
median
public double median()
- Specified by:
medianin interfaceCharIterable
-
addToValue
public char addToValue(double key, char toBeAdded)- Specified by:
addToValuein interfaceMutableDoubleCharMap
-
toSortedArray
public char[] toSortedArray()
- Specified by:
toSortedArrayin interfaceCharIterable
-
toSortedList
public MutableCharList toSortedList()
- Specified by:
toSortedListin interfaceCharIterable
-
toArray
public char[] toArray()
- Specified by:
toArrayin interfaceCharIterable
-
toArray
public char[] toArray(char[] target)
- Specified by:
toArrayin interfaceCharIterable
-
contains
public boolean contains(char value)
- Specified by:
containsin interfaceCharIterable
-
containsAll
public boolean containsAll(char... source)
- Specified by:
containsAllin interfaceCharIterable
-
containsAll
public boolean containsAll(CharIterable source)
- Specified by:
containsAllin interfaceCharIterable
-
toList
public MutableCharList toList()
- Specified by:
toListin interfaceCharIterable
-
toSet
public MutableCharSet toSet()
- Specified by:
toSetin interfaceCharIterable
-
toBag
public MutableCharBag toBag()
- Specified by:
toBagin interfaceCharIterable
-
asLazy
public LazyCharIterable asLazy()
- Specified by:
asLazyin interfaceCharIterable
-
withKeyValue
public MutableDoubleCharMap withKeyValue(double key, char value)
- Specified by:
withKeyValuein interfaceMutableDoubleCharMap
-
withoutKey
public MutableDoubleCharMap withoutKey(double key)
- Specified by:
withoutKeyin interfaceMutableDoubleCharMap
-
withoutAllKeys
public MutableDoubleCharMap withoutAllKeys(DoubleIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableDoubleCharMap
-
asUnmodifiable
public MutableDoubleCharMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableDoubleCharMap
-
asSynchronized
public MutableDoubleCharMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableDoubleCharMap
-
toImmutable
public ImmutableDoubleCharMap toImmutable()
- Specified by:
toImmutablein interfaceDoubleCharMap
-
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 MutableDoubleSet keySet()
- Specified by:
keySetin interfaceDoubleCharMap
-
values
public MutableCharCollection values()
- Specified by:
valuesin interfaceCharValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equalsin interfaceDoubleCharMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceDoubleCharMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceDoubleCharMap- 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, ObjectCharToObjectFunction<? super T,? extends T> function)- Specified by:
injectIntoin interfaceCharIterable
-
chunk
public RichIterable<CharIterable> chunk(int size)
- Specified by:
chunkin interfaceCharIterable
-
-