Class UnmodifiableShortCharMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.UnmodifiableShortCharMap
-
- All Implemented Interfaces:
Serializable
,CharIterable
,CharValuesMap
,MutableCharValuesMap
,MutableShortCharMap
,ShortCharMap
,PrimitiveIterable
public class UnmodifiableShortCharMap extends Object implements MutableShortCharMap, Serializable
This file was automatically generated from template file unmodifiablePrimitivePrimitiveMap.stg.- Since:
- 3.1.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableShortCharMap(MutableShortCharMap 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.MutableShortCharMap
withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ShortCharMap
injectIntoKeyValue
-
-
-
-
Constructor Detail
-
UnmodifiableShortCharMap
public UnmodifiableShortCharMap(MutableShortCharMap map)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableCharValuesMap
-
put
public void put(short key, char value)
- Specified by:
put
in interfaceMutableShortCharMap
-
putPair
public void putPair(ShortCharPair keyValuePair)
- Specified by:
putPair
in interfaceMutableShortCharMap
-
putAll
public void putAll(ShortCharMap map)
- Specified by:
putAll
in interfaceMutableShortCharMap
-
updateValues
public void updateValues(ShortCharToCharFunction function)
- Specified by:
updateValues
in interfaceMutableShortCharMap
-
removeKey
public void removeKey(short key)
- Specified by:
removeKey
in interfaceMutableShortCharMap
-
remove
public void remove(short key)
- Specified by:
remove
in interfaceMutableShortCharMap
-
removeKeyIfAbsent
public char removeKeyIfAbsent(short key, char value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableShortCharMap
-
getIfAbsentPut
public char getIfAbsentPut(short key, char value)
- Specified by:
getIfAbsentPut
in interfaceMutableShortCharMap
-
getAndPut
public char getAndPut(short key, char putValue, char defaultValue)
- Specified by:
getAndPut
in interfaceMutableShortCharMap
-
getIfAbsentPut
public char getIfAbsentPut(short key, CharFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableShortCharMap
-
getIfAbsentPutWithKey
public char getIfAbsentPutWithKey(short key, ShortToCharFunction function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableShortCharMap
-
getIfAbsentPutWith
public <P> char getIfAbsentPutWith(short key, CharFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableShortCharMap
-
updateValue
public char updateValue(short key, char initialValueIfAbsent, CharToCharFunction function)
- Specified by:
updateValue
in interfaceMutableShortCharMap
-
get
public char get(short key)
- Specified by:
get
in interfaceShortCharMap
-
getIfAbsent
public char getIfAbsent(short key, char ifAbsent)
- Specified by:
getIfAbsent
in interfaceShortCharMap
-
getOrThrow
public char getOrThrow(short key)
- Specified by:
getOrThrow
in interfaceShortCharMap
-
containsKey
public boolean containsKey(short key)
- Specified by:
containsKey
in interfaceShortCharMap
-
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(ShortProcedure procedure)
- Specified by:
forEachKey
in interfaceShortCharMap
-
forEachKeyValue
public void forEachKeyValue(ShortCharProcedure procedure)
- Specified by:
forEachKeyValue
in interfaceShortCharMap
-
keysView
public LazyShortIterable keysView()
- Specified by:
keysView
in interfaceShortCharMap
-
keyValuesView
public RichIterable<ShortCharPair> keyValuesView()
- Specified by:
keyValuesView
in interfaceShortCharMap
-
flipUniqueValues
public MutableCharShortMap flipUniqueValues()
- Specified by:
flipUniqueValues
in interfaceMutableShortCharMap
- Specified by:
flipUniqueValues
in interfaceShortCharMap
-
select
public MutableShortCharMap select(ShortCharPredicate predicate)
- Specified by:
select
in interfaceMutableShortCharMap
- Specified by:
select
in interfaceShortCharMap
-
reject
public MutableShortCharMap reject(ShortCharPredicate predicate)
- Specified by:
reject
in interfaceMutableShortCharMap
- Specified by:
reject
in interfaceShortCharMap
-
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(short key, char toBeAdded)
- Specified by:
addToValue
in interfaceMutableShortCharMap
-
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 MutableShortCharMap withKeyValue(short key, char value)
- Specified by:
withKeyValue
in interfaceMutableShortCharMap
-
withoutKey
public MutableShortCharMap withoutKey(short key)
- Specified by:
withoutKey
in interfaceMutableShortCharMap
-
withoutAllKeys
public MutableShortCharMap withoutAllKeys(ShortIterable keys)
- Specified by:
withoutAllKeys
in interfaceMutableShortCharMap
-
asUnmodifiable
public MutableShortCharMap asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableShortCharMap
-
asSynchronized
public MutableShortCharMap asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableShortCharMap
-
toImmutable
public ImmutableShortCharMap toImmutable()
- Specified by:
toImmutable
in interfaceShortCharMap
-
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 MutableShortSet keySet()
- Specified by:
keySet
in interfaceShortCharMap
-
values
public MutableCharCollection values()
- Specified by:
values
in interfaceCharValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equals
in interfaceShortCharMap
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceShortCharMap
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfacePrimitiveIterable
- Specified by:
toString
in interfaceShortCharMap
- 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
-
-