Class UnmodifiableIntCharMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.UnmodifiableIntCharMap
-
- All Implemented Interfaces:
Serializable
,CharIterable
,CharValuesMap
,IntCharMap
,MutableCharValuesMap
,MutableIntCharMap
,PrimitiveIterable
public class UnmodifiableIntCharMap extends Object implements MutableIntCharMap, Serializable
This file was automatically generated from template file unmodifiablePrimitivePrimitiveMap.stg.- Since:
- 3.1.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableIntCharMap(MutableIntCharMap 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.IntCharMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableIntCharMap
withAllKeyValues
-
-
-
-
Constructor Detail
-
UnmodifiableIntCharMap
public UnmodifiableIntCharMap(MutableIntCharMap map)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableCharValuesMap
-
put
public void put(int key, char value)
- Specified by:
put
in interfaceMutableIntCharMap
-
putPair
public void putPair(IntCharPair keyValuePair)
- Specified by:
putPair
in interfaceMutableIntCharMap
-
putAll
public void putAll(IntCharMap map)
- Specified by:
putAll
in interfaceMutableIntCharMap
-
updateValues
public void updateValues(IntCharToCharFunction function)
- Specified by:
updateValues
in interfaceMutableIntCharMap
-
removeKey
public void removeKey(int key)
- Specified by:
removeKey
in interfaceMutableIntCharMap
-
remove
public void remove(int key)
- Specified by:
remove
in interfaceMutableIntCharMap
-
removeKeyIfAbsent
public char removeKeyIfAbsent(int key, char value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableIntCharMap
-
getIfAbsentPut
public char getIfAbsentPut(int key, char value)
- Specified by:
getIfAbsentPut
in interfaceMutableIntCharMap
-
getAndPut
public char getAndPut(int key, char putValue, char defaultValue)
- Specified by:
getAndPut
in interfaceMutableIntCharMap
-
getIfAbsentPut
public char getIfAbsentPut(int key, CharFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableIntCharMap
-
getIfAbsentPutWithKey
public char getIfAbsentPutWithKey(int key, IntToCharFunction function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableIntCharMap
-
getIfAbsentPutWith
public <P> char getIfAbsentPutWith(int key, CharFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableIntCharMap
-
updateValue
public char updateValue(int key, char initialValueIfAbsent, CharToCharFunction function)
- Specified by:
updateValue
in interfaceMutableIntCharMap
-
get
public char get(int key)
- Specified by:
get
in interfaceIntCharMap
-
getIfAbsent
public char getIfAbsent(int key, char ifAbsent)
- Specified by:
getIfAbsent
in interfaceIntCharMap
-
getOrThrow
public char getOrThrow(int key)
- Specified by:
getOrThrow
in interfaceIntCharMap
-
containsKey
public boolean containsKey(int key)
- Specified by:
containsKey
in interfaceIntCharMap
-
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(IntProcedure procedure)
- Specified by:
forEachKey
in interfaceIntCharMap
-
forEachKeyValue
public void forEachKeyValue(IntCharProcedure procedure)
- Specified by:
forEachKeyValue
in interfaceIntCharMap
-
keysView
public LazyIntIterable keysView()
- Specified by:
keysView
in interfaceIntCharMap
-
keyValuesView
public RichIterable<IntCharPair> keyValuesView()
- Specified by:
keyValuesView
in interfaceIntCharMap
-
flipUniqueValues
public MutableCharIntMap flipUniqueValues()
- Specified by:
flipUniqueValues
in interfaceIntCharMap
- Specified by:
flipUniqueValues
in interfaceMutableIntCharMap
-
select
public MutableIntCharMap select(IntCharPredicate predicate)
- Specified by:
select
in interfaceIntCharMap
- Specified by:
select
in interfaceMutableIntCharMap
-
reject
public MutableIntCharMap reject(IntCharPredicate predicate)
- Specified by:
reject
in interfaceIntCharMap
- Specified by:
reject
in interfaceMutableIntCharMap
-
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(int key, char toBeAdded)
- Specified by:
addToValue
in interfaceMutableIntCharMap
-
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 MutableIntCharMap withKeyValue(int key, char value)
- Specified by:
withKeyValue
in interfaceMutableIntCharMap
-
withoutKey
public MutableIntCharMap withoutKey(int key)
- Specified by:
withoutKey
in interfaceMutableIntCharMap
-
withoutAllKeys
public MutableIntCharMap withoutAllKeys(IntIterable keys)
- Specified by:
withoutAllKeys
in interfaceMutableIntCharMap
-
asUnmodifiable
public MutableIntCharMap asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableIntCharMap
-
asSynchronized
public MutableIntCharMap asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableIntCharMap
-
toImmutable
public ImmutableIntCharMap toImmutable()
- Specified by:
toImmutable
in interfaceIntCharMap
-
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 MutableIntSet keySet()
- Specified by:
keySet
in interfaceIntCharMap
-
values
public MutableCharCollection values()
- Specified by:
values
in interfaceCharValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equals
in interfaceIntCharMap
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceIntCharMap
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfaceIntCharMap
- 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
-
-