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:
clear
in interfaceMutableCharValuesMap
-
put
public void put(double key, char value)
- Specified by:
put
in interfaceMutableDoubleCharMap
-
putPair
public void putPair(DoubleCharPair keyValuePair)
- Specified by:
putPair
in interfaceMutableDoubleCharMap
-
putAll
public void putAll(DoubleCharMap map)
- Specified by:
putAll
in interfaceMutableDoubleCharMap
-
updateValues
public void updateValues(DoubleCharToCharFunction function)
- Specified by:
updateValues
in interfaceMutableDoubleCharMap
-
removeKey
public void removeKey(double key)
- Specified by:
removeKey
in interfaceMutableDoubleCharMap
-
remove
public void remove(double key)
- Specified by:
remove
in interfaceMutableDoubleCharMap
-
removeKeyIfAbsent
public char removeKeyIfAbsent(double key, char value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableDoubleCharMap
-
getIfAbsentPut
public char getIfAbsentPut(double key, char value)
- Specified by:
getIfAbsentPut
in interfaceMutableDoubleCharMap
-
getAndPut
public char getAndPut(double key, char putValue, char defaultValue)
- Specified by:
getAndPut
in interfaceMutableDoubleCharMap
-
getIfAbsentPut
public char getIfAbsentPut(double key, CharFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableDoubleCharMap
-
getIfAbsentPutWithKey
public char getIfAbsentPutWithKey(double key, DoubleToCharFunction function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableDoubleCharMap
-
getIfAbsentPutWith
public <P> char getIfAbsentPutWith(double key, CharFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableDoubleCharMap
-
updateValue
public char updateValue(double key, char initialValueIfAbsent, CharToCharFunction function)
- Specified by:
updateValue
in interfaceMutableDoubleCharMap
-
get
public char get(double key)
- Specified by:
get
in interfaceDoubleCharMap
-
getIfAbsent
public char getIfAbsent(double key, char ifAbsent)
- Specified by:
getIfAbsent
in interfaceDoubleCharMap
-
getOrThrow
public char getOrThrow(double key)
- Specified by:
getOrThrow
in interfaceDoubleCharMap
-
containsKey
public boolean containsKey(double key)
- Specified by:
containsKey
in interfaceDoubleCharMap
-
containsValue
public boolean containsValue(char value)
- Specified by:
containsValue
in interfaceCharValuesMap
-
forEachValue
public void forEachValue(CharProcedure procedure)
- Specified by:
forEachValue
in interfaceCharValuesMap
-
forEachKey
public void forEachKey(DoubleProcedure procedure)
- Specified by:
forEachKey
in interfaceDoubleCharMap
-
forEachKeyValue
public void forEachKeyValue(DoubleCharProcedure procedure)
- Specified by:
forEachKeyValue
in interfaceDoubleCharMap
-
keysView
public LazyDoubleIterable keysView()
- Specified by:
keysView
in interfaceDoubleCharMap
-
keyValuesView
public RichIterable<DoubleCharPair> keyValuesView()
- Specified by:
keyValuesView
in interfaceDoubleCharMap
-
flipUniqueValues
public MutableCharDoubleMap flipUniqueValues()
- Specified by:
flipUniqueValues
in interfaceDoubleCharMap
- Specified by:
flipUniqueValues
in interfaceMutableDoubleCharMap
-
select
public MutableDoubleCharMap select(DoubleCharPredicate predicate)
- Specified by:
select
in interfaceDoubleCharMap
- Specified by:
select
in interfaceMutableDoubleCharMap
-
reject
public MutableDoubleCharMap reject(DoubleCharPredicate predicate)
- Specified by:
reject
in interfaceDoubleCharMap
- Specified by:
reject
in interfaceMutableDoubleCharMap
-
charIterator
public MutableCharIterator charIterator()
- Specified by:
charIterator
in interfaceCharIterable
- Specified by:
charIterator
in interfaceMutableCharValuesMap
-
each
public void each(CharProcedure procedure)
- Specified by:
each
in interfaceCharIterable
- Since:
- 7.0.
-
count
public int count(CharPredicate predicate)
- Specified by:
count
in interfaceCharIterable
-
anySatisfy
public boolean anySatisfy(CharPredicate predicate)
- Specified by:
anySatisfy
in interfaceCharIterable
-
allSatisfy
public boolean allSatisfy(CharPredicate predicate)
- Specified by:
allSatisfy
in interfaceCharIterable
-
noneSatisfy
public boolean noneSatisfy(CharPredicate predicate)
- Specified by:
noneSatisfy
in interfaceCharIterable
-
select
public MutableCharBag select(CharPredicate predicate)
- Specified by:
select
in interfaceCharIterable
- Specified by:
select
in interfaceCharValuesMap
- Specified by:
select
in interfaceMutableCharValuesMap
-
reject
public MutableCharBag reject(CharPredicate predicate)
- Specified by:
reject
in interfaceCharIterable
- Specified by:
reject
in interfaceCharValuesMap
- Specified by:
reject
in interfaceMutableCharValuesMap
-
collect
public <V> MutableBag<V> collect(CharToObjectFunction<? extends V> function)
- Specified by:
collect
in interfaceCharIterable
- Specified by:
collect
in interfaceCharValuesMap
- Specified by:
collect
in interfaceMutableCharValuesMap
-
detectIfNone
public char detectIfNone(CharPredicate predicate, char ifNone)
- Specified by:
detectIfNone
in interfaceCharIterable
-
sum
public long sum()
- Specified by:
sum
in interfaceCharIterable
-
max
public char max()
- Specified by:
max
in interfaceCharIterable
-
maxIfEmpty
public char maxIfEmpty(char defaultValue)
- Specified by:
maxIfEmpty
in interfaceCharIterable
-
min
public char min()
- Specified by:
min
in interfaceCharIterable
-
minIfEmpty
public char minIfEmpty(char defaultValue)
- Specified by:
minIfEmpty
in interfaceCharIterable
-
average
public double average()
- Specified by:
average
in interfaceCharIterable
-
median
public double median()
- Specified by:
median
in interfaceCharIterable
-
addToValue
public char addToValue(double key, char toBeAdded)
- Specified by:
addToValue
in interfaceMutableDoubleCharMap
-
toSortedArray
public char[] toSortedArray()
- Specified by:
toSortedArray
in interfaceCharIterable
-
toSortedList
public MutableCharList toSortedList()
- Specified by:
toSortedList
in interfaceCharIterable
-
toArray
public char[] toArray()
- Specified by:
toArray
in interfaceCharIterable
-
toArray
public char[] toArray(char[] target)
- Specified by:
toArray
in interfaceCharIterable
-
contains
public boolean contains(char value)
- Specified by:
contains
in interfaceCharIterable
-
containsAll
public boolean containsAll(char... source)
- Specified by:
containsAll
in interfaceCharIterable
-
containsAll
public boolean containsAll(CharIterable source)
- Specified by:
containsAll
in interfaceCharIterable
-
toList
public MutableCharList toList()
- Specified by:
toList
in interfaceCharIterable
-
toSet
public MutableCharSet toSet()
- Specified by:
toSet
in interfaceCharIterable
-
toBag
public MutableCharBag toBag()
- Specified by:
toBag
in interfaceCharIterable
-
asLazy
public LazyCharIterable asLazy()
- Specified by:
asLazy
in interfaceCharIterable
-
withKeyValue
public MutableDoubleCharMap withKeyValue(double key, char value)
- Specified by:
withKeyValue
in interfaceMutableDoubleCharMap
-
withoutKey
public MutableDoubleCharMap withoutKey(double key)
- Specified by:
withoutKey
in interfaceMutableDoubleCharMap
-
withoutAllKeys
public MutableDoubleCharMap withoutAllKeys(DoubleIterable keys)
- Specified by:
withoutAllKeys
in interfaceMutableDoubleCharMap
-
asUnmodifiable
public MutableDoubleCharMap asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableDoubleCharMap
-
asSynchronized
public MutableDoubleCharMap asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableDoubleCharMap
-
toImmutable
public ImmutableDoubleCharMap toImmutable()
- Specified by:
toImmutable
in interfaceDoubleCharMap
-
size
public int size()
- Specified by:
size
in interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()
- Specified by:
notEmpty
in interfacePrimitiveIterable
-
keySet
public MutableDoubleSet keySet()
- Specified by:
keySet
in interfaceDoubleCharMap
-
values
public MutableCharCollection values()
- Specified by:
values
in interfaceCharValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equals
in interfaceDoubleCharMap
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceDoubleCharMap
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfaceDoubleCharMap
- Specified by:
toString
in interfacePrimitiveIterable
- Overrides:
toString
in classObject
-
makeString
public String makeString()
- Specified by:
makeString
in interfacePrimitiveIterable
-
makeString
public String makeString(String separator)
- Specified by:
makeString
in interfacePrimitiveIterable
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeString
in interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendString
in interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendString
in interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendString
in interfacePrimitiveIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectCharToObjectFunction<? super T,? extends T> function)
- Specified by:
injectInto
in interfaceCharIterable
-
chunk
public RichIterable<CharIterable> chunk(int size)
- Specified by:
chunk
in interfaceCharIterable
-
-