Class UnmodifiableByteCharMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.UnmodifiableByteCharMap
-
- All Implemented Interfaces:
Serializable,CharIterable,ByteCharMap,CharValuesMap,MutableByteCharMap,MutableCharValuesMap,PrimitiveIterable
public class UnmodifiableByteCharMap extends Object implements MutableByteCharMap, Serializable
This file was automatically generated from template file unmodifiablePrimitivePrimitiveMap.stg.- Since:
- 3.1.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableByteCharMap(MutableByteCharMap map)
-
Method Summary
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ByteCharMap
injectIntoKeyValue
-
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.MutableByteCharMap
withAllKeyValues
-
-
-
-
Constructor Detail
-
UnmodifiableByteCharMap
public UnmodifiableByteCharMap(MutableByteCharMap map)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clearin interfaceMutableCharValuesMap
-
put
public void put(byte key, char value)- Specified by:
putin interfaceMutableByteCharMap
-
putPair
public void putPair(ByteCharPair keyValuePair)
- Specified by:
putPairin interfaceMutableByteCharMap
-
putAll
public void putAll(ByteCharMap map)
- Specified by:
putAllin interfaceMutableByteCharMap
-
updateValues
public void updateValues(ByteCharToCharFunction function)
- Specified by:
updateValuesin interfaceMutableByteCharMap
-
removeKey
public void removeKey(byte key)
- Specified by:
removeKeyin interfaceMutableByteCharMap
-
remove
public void remove(byte key)
- Specified by:
removein interfaceMutableByteCharMap
-
removeKeyIfAbsent
public char removeKeyIfAbsent(byte key, char value)- Specified by:
removeKeyIfAbsentin interfaceMutableByteCharMap
-
getIfAbsentPut
public char getIfAbsentPut(byte key, char value)- Specified by:
getIfAbsentPutin interfaceMutableByteCharMap
-
getAndPut
public char getAndPut(byte key, char putValue, char defaultValue)- Specified by:
getAndPutin interfaceMutableByteCharMap
-
getIfAbsentPut
public char getIfAbsentPut(byte key, CharFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableByteCharMap
-
getIfAbsentPutWithKey
public char getIfAbsentPutWithKey(byte key, ByteToCharFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableByteCharMap
-
getIfAbsentPutWith
public <P> char getIfAbsentPutWith(byte key, CharFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableByteCharMap
-
updateValue
public char updateValue(byte key, char initialValueIfAbsent, CharToCharFunction function)- Specified by:
updateValuein interfaceMutableByteCharMap
-
get
public char get(byte key)
- Specified by:
getin interfaceByteCharMap
-
getIfAbsent
public char getIfAbsent(byte key, char ifAbsent)- Specified by:
getIfAbsentin interfaceByteCharMap
-
getOrThrow
public char getOrThrow(byte key)
- Specified by:
getOrThrowin interfaceByteCharMap
-
containsKey
public boolean containsKey(byte key)
- Specified by:
containsKeyin interfaceByteCharMap
-
containsValue
public boolean containsValue(char value)
- Specified by:
containsValuein interfaceCharValuesMap
-
forEachValue
public void forEachValue(CharProcedure procedure)
- Specified by:
forEachValuein interfaceCharValuesMap
-
forEachKey
public void forEachKey(ByteProcedure procedure)
- Specified by:
forEachKeyin interfaceByteCharMap
-
forEachKeyValue
public void forEachKeyValue(ByteCharProcedure procedure)
- Specified by:
forEachKeyValuein interfaceByteCharMap
-
keysView
public LazyByteIterable keysView()
- Specified by:
keysViewin interfaceByteCharMap
-
keyValuesView
public RichIterable<ByteCharPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceByteCharMap
-
flipUniqueValues
public MutableCharByteMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceByteCharMap- Specified by:
flipUniqueValuesin interfaceMutableByteCharMap
-
select
public MutableByteCharMap select(ByteCharPredicate predicate)
- Specified by:
selectin interfaceByteCharMap- Specified by:
selectin interfaceMutableByteCharMap
-
reject
public MutableByteCharMap reject(ByteCharPredicate predicate)
- Specified by:
rejectin interfaceByteCharMap- Specified by:
rejectin interfaceMutableByteCharMap
-
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(byte key, char toBeAdded)- Specified by:
addToValuein interfaceMutableByteCharMap
-
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 MutableByteCharMap withKeyValue(byte key, char value)
- Specified by:
withKeyValuein interfaceMutableByteCharMap
-
withoutKey
public MutableByteCharMap withoutKey(byte key)
- Specified by:
withoutKeyin interfaceMutableByteCharMap
-
withoutAllKeys
public MutableByteCharMap withoutAllKeys(ByteIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableByteCharMap
-
asUnmodifiable
public MutableByteCharMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableByteCharMap
-
asSynchronized
public MutableByteCharMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableByteCharMap
-
toImmutable
public ImmutableByteCharMap toImmutable()
- Specified by:
toImmutablein interfaceByteCharMap
-
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 MutableByteSet keySet()
- Specified by:
keySetin interfaceByteCharMap
-
values
public MutableCharCollection values()
- Specified by:
valuesin interfaceCharValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equalsin interfaceByteCharMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceByteCharMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceByteCharMap- 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
-
-