Class UnmodifiableCharByteMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.UnmodifiableCharByteMap
-
- All Implemented Interfaces:
Serializable
,ByteIterable
,ByteValuesMap
,CharByteMap
,MutableByteValuesMap
,MutableCharByteMap
,PrimitiveIterable
public class UnmodifiableCharByteMap extends Object implements MutableCharByteMap, Serializable
This file was automatically generated from template file unmodifiablePrimitivePrimitiveMap.stg.- Since:
- 3.1.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableCharByteMap(MutableCharByteMap map)
-
Method Summary
-
Methods inherited from interface org.eclipse.collections.api.ByteIterable
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.ByteValuesMap
tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.CharByteMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableCharByteMap
withAllKeyValues
-
-
-
-
Constructor Detail
-
UnmodifiableCharByteMap
public UnmodifiableCharByteMap(MutableCharByteMap map)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableByteValuesMap
-
put
public void put(char key, byte value)
- Specified by:
put
in interfaceMutableCharByteMap
-
putPair
public void putPair(CharBytePair keyValuePair)
- Specified by:
putPair
in interfaceMutableCharByteMap
-
putAll
public void putAll(CharByteMap map)
- Specified by:
putAll
in interfaceMutableCharByteMap
-
updateValues
public void updateValues(CharByteToByteFunction function)
- Specified by:
updateValues
in interfaceMutableCharByteMap
-
removeKey
public void removeKey(char key)
- Specified by:
removeKey
in interfaceMutableCharByteMap
-
remove
public void remove(char key)
- Specified by:
remove
in interfaceMutableCharByteMap
-
removeKeyIfAbsent
public byte removeKeyIfAbsent(char key, byte value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableCharByteMap
-
getIfAbsentPut
public byte getIfAbsentPut(char key, byte value)
- Specified by:
getIfAbsentPut
in interfaceMutableCharByteMap
-
getAndPut
public byte getAndPut(char key, byte putValue, byte defaultValue)
- Specified by:
getAndPut
in interfaceMutableCharByteMap
-
getIfAbsentPut
public byte getIfAbsentPut(char key, ByteFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableCharByteMap
-
getIfAbsentPutWithKey
public byte getIfAbsentPutWithKey(char key, CharToByteFunction function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableCharByteMap
-
getIfAbsentPutWith
public <P> byte getIfAbsentPutWith(char key, ByteFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableCharByteMap
-
updateValue
public byte updateValue(char key, byte initialValueIfAbsent, ByteToByteFunction function)
- Specified by:
updateValue
in interfaceMutableCharByteMap
-
get
public byte get(char key)
- Specified by:
get
in interfaceCharByteMap
-
getIfAbsent
public byte getIfAbsent(char key, byte ifAbsent)
- Specified by:
getIfAbsent
in interfaceCharByteMap
-
getOrThrow
public byte getOrThrow(char key)
- Specified by:
getOrThrow
in interfaceCharByteMap
-
containsKey
public boolean containsKey(char key)
- Specified by:
containsKey
in interfaceCharByteMap
-
containsValue
public boolean containsValue(byte value)
- Specified by:
containsValue
in interfaceByteValuesMap
-
forEachValue
public void forEachValue(ByteProcedure procedure)
- Specified by:
forEachValue
in interfaceByteValuesMap
-
forEachKey
public void forEachKey(CharProcedure procedure)
- Specified by:
forEachKey
in interfaceCharByteMap
-
forEachKeyValue
public void forEachKeyValue(CharByteProcedure procedure)
- Specified by:
forEachKeyValue
in interfaceCharByteMap
-
keysView
public LazyCharIterable keysView()
- Specified by:
keysView
in interfaceCharByteMap
-
keyValuesView
public RichIterable<CharBytePair> keyValuesView()
- Specified by:
keyValuesView
in interfaceCharByteMap
-
flipUniqueValues
public MutableByteCharMap flipUniqueValues()
- Specified by:
flipUniqueValues
in interfaceCharByteMap
- Specified by:
flipUniqueValues
in interfaceMutableCharByteMap
-
select
public MutableCharByteMap select(CharBytePredicate predicate)
- Specified by:
select
in interfaceCharByteMap
- Specified by:
select
in interfaceMutableCharByteMap
-
reject
public MutableCharByteMap reject(CharBytePredicate predicate)
- Specified by:
reject
in interfaceCharByteMap
- Specified by:
reject
in interfaceMutableCharByteMap
-
byteIterator
public MutableByteIterator byteIterator()
- Specified by:
byteIterator
in interfaceByteIterable
- Specified by:
byteIterator
in interfaceMutableByteValuesMap
-
each
public void each(ByteProcedure procedure)
- Specified by:
each
in interfaceByteIterable
- Since:
- 7.0.
-
count
public int count(BytePredicate predicate)
- Specified by:
count
in interfaceByteIterable
-
anySatisfy
public boolean anySatisfy(BytePredicate predicate)
- Specified by:
anySatisfy
in interfaceByteIterable
-
allSatisfy
public boolean allSatisfy(BytePredicate predicate)
- Specified by:
allSatisfy
in interfaceByteIterable
-
noneSatisfy
public boolean noneSatisfy(BytePredicate predicate)
- Specified by:
noneSatisfy
in interfaceByteIterable
-
select
public MutableByteBag select(BytePredicate predicate)
- Specified by:
select
in interfaceByteIterable
- Specified by:
select
in interfaceByteValuesMap
- Specified by:
select
in interfaceMutableByteValuesMap
-
reject
public MutableByteBag reject(BytePredicate predicate)
- Specified by:
reject
in interfaceByteIterable
- Specified by:
reject
in interfaceByteValuesMap
- Specified by:
reject
in interfaceMutableByteValuesMap
-
collect
public <V> MutableBag<V> collect(ByteToObjectFunction<? extends V> function)
- Specified by:
collect
in interfaceByteIterable
- Specified by:
collect
in interfaceByteValuesMap
- Specified by:
collect
in interfaceMutableByteValuesMap
-
detectIfNone
public byte detectIfNone(BytePredicate predicate, byte ifNone)
- Specified by:
detectIfNone
in interfaceByteIterable
-
sum
public long sum()
- Specified by:
sum
in interfaceByteIterable
-
max
public byte max()
- Specified by:
max
in interfaceByteIterable
-
maxIfEmpty
public byte maxIfEmpty(byte defaultValue)
- Specified by:
maxIfEmpty
in interfaceByteIterable
-
min
public byte min()
- Specified by:
min
in interfaceByteIterable
-
minIfEmpty
public byte minIfEmpty(byte defaultValue)
- Specified by:
minIfEmpty
in interfaceByteIterable
-
average
public double average()
- Specified by:
average
in interfaceByteIterable
-
median
public double median()
- Specified by:
median
in interfaceByteIterable
-
addToValue
public byte addToValue(char key, byte toBeAdded)
- Specified by:
addToValue
in interfaceMutableCharByteMap
-
toSortedArray
public byte[] toSortedArray()
- Specified by:
toSortedArray
in interfaceByteIterable
-
toSortedList
public MutableByteList toSortedList()
- Specified by:
toSortedList
in interfaceByteIterable
-
toArray
public byte[] toArray()
- Specified by:
toArray
in interfaceByteIterable
-
toArray
public byte[] toArray(byte[] target)
- Specified by:
toArray
in interfaceByteIterable
-
contains
public boolean contains(byte value)
- Specified by:
contains
in interfaceByteIterable
-
containsAll
public boolean containsAll(byte... source)
- Specified by:
containsAll
in interfaceByteIterable
-
containsAll
public boolean containsAll(ByteIterable source)
- Specified by:
containsAll
in interfaceByteIterable
-
toList
public MutableByteList toList()
- Specified by:
toList
in interfaceByteIterable
-
toSet
public MutableByteSet toSet()
- Specified by:
toSet
in interfaceByteIterable
-
toBag
public MutableByteBag toBag()
- Specified by:
toBag
in interfaceByteIterable
-
asLazy
public LazyByteIterable asLazy()
- Specified by:
asLazy
in interfaceByteIterable
-
withKeyValue
public MutableCharByteMap withKeyValue(char key, byte value)
- Specified by:
withKeyValue
in interfaceMutableCharByteMap
-
withoutKey
public MutableCharByteMap withoutKey(char key)
- Specified by:
withoutKey
in interfaceMutableCharByteMap
-
withoutAllKeys
public MutableCharByteMap withoutAllKeys(CharIterable keys)
- Specified by:
withoutAllKeys
in interfaceMutableCharByteMap
-
asUnmodifiable
public MutableCharByteMap asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableCharByteMap
-
asSynchronized
public MutableCharByteMap asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableCharByteMap
-
toImmutable
public ImmutableCharByteMap toImmutable()
- Specified by:
toImmutable
in interfaceCharByteMap
-
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 MutableCharSet keySet()
- Specified by:
keySet
in interfaceCharByteMap
-
values
public MutableByteCollection values()
- Specified by:
values
in interfaceByteValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equals
in interfaceCharByteMap
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceCharByteMap
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfaceCharByteMap
- 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, ObjectByteToObjectFunction<? super T,? extends T> function)
- Specified by:
injectInto
in interfaceByteIterable
-
chunk
public RichIterable<ByteIterable> chunk(int size)
- Specified by:
chunk
in interfaceByteIterable
-
-