Class UnmodifiableObjectByteMap<K>
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.UnmodifiableObjectByteMap<K>
-
- All Implemented Interfaces:
Serializable,ByteIterable,MutableObjectByteMap<K>,ObjectByteMap<K>,PrimitiveIterable
public class UnmodifiableObjectByteMap<K> extends Object implements MutableObjectByteMap<K>, Serializable
This file was automatically generated from template file unmodifiableObjectPrimitiveMap.stg.- Since:
- 3.2
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableObjectByteMap(MutableObjectByteMap<K> 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.MutableObjectByteMap
tap, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ObjectByteMap
injectIntoKeyValue
-
-
-
-
Constructor Detail
-
UnmodifiableObjectByteMap
public UnmodifiableObjectByteMap(MutableObjectByteMap<K> map)
-
-
Method Detail
-
getAndPut
public byte getAndPut(K key, byte defaultValue, byte putValue)
- Specified by:
getAndPutin interfaceMutableObjectByteMap<K>
-
clear
public void clear()
- Specified by:
clearin interfaceMutableObjectByteMap<K>
-
put
public void put(K key, byte value)
- Specified by:
putin interfaceMutableObjectByteMap<K>
-
putPair
public void putPair(ObjectBytePair<K> keyValuePair)
- Specified by:
putPairin interfaceMutableObjectByteMap<K>
-
putAll
public void putAll(ObjectByteMap<? extends K> map)
- Specified by:
putAllin interfaceMutableObjectByteMap<K>
-
updateValues
public void updateValues(ObjectByteToByteFunction<? super K> function)
- Specified by:
updateValuesin interfaceMutableObjectByteMap<K>
-
removeKey
public void removeKey(K key)
- Specified by:
removeKeyin interfaceMutableObjectByteMap<K>
-
remove
public void remove(Object key)
- Specified by:
removein interfaceMutableObjectByteMap<K>
-
removeKeyIfAbsent
public byte removeKeyIfAbsent(K key, byte value)
- Specified by:
removeKeyIfAbsentin interfaceMutableObjectByteMap<K>
-
getIfAbsentPut
public byte getIfAbsentPut(K key, byte value)
- Specified by:
getIfAbsentPutin interfaceMutableObjectByteMap<K>
-
getIfAbsentPut
public byte getIfAbsentPut(K key, ByteFunction0 function)
- Specified by:
getIfAbsentPutin interfaceMutableObjectByteMap<K>
-
getIfAbsentPutWithKey
public byte getIfAbsentPutWithKey(K key, ByteFunction<? super K> function)
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableObjectByteMap<K>
-
getIfAbsentPutWith
public <P> byte getIfAbsentPutWith(K key, ByteFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWithin interfaceMutableObjectByteMap<K>
-
updateValue
public byte updateValue(K key, byte initialValueIfAbsent, ByteToByteFunction function)
- Specified by:
updateValuein interfaceMutableObjectByteMap<K>
-
addToValue
public byte addToValue(K key, byte toBeAdded)
- Specified by:
addToValuein interfaceMutableObjectByteMap<K>
-
get
public byte get(Object key)
- Specified by:
getin interfaceObjectByteMap<K>
-
getOrThrow
public byte getOrThrow(Object key)
- Specified by:
getOrThrowin interfaceObjectByteMap<K>
-
getIfAbsent
public byte getIfAbsent(Object key, byte ifAbsent)
- Specified by:
getIfAbsentin interfaceObjectByteMap<K>
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceObjectByteMap<K>
-
containsValue
public boolean containsValue(byte value)
- Specified by:
containsValuein interfaceObjectByteMap<K>
-
forEachValue
public void forEachValue(ByteProcedure procedure)
- Specified by:
forEachValuein interfaceObjectByteMap<K>
-
forEachKey
public void forEachKey(Procedure<? super K> procedure)
- Specified by:
forEachKeyin interfaceObjectByteMap<K>
-
forEachKeyValue
public void forEachKeyValue(ObjectByteProcedure<? super K> procedure)
- Specified by:
forEachKeyValuein interfaceObjectByteMap<K>
-
select
public MutableObjectByteMap<K> select(ObjectBytePredicate<? super K> predicate)
- Specified by:
selectin interfaceMutableObjectByteMap<K>- Specified by:
selectin interfaceObjectByteMap<K>
-
reject
public MutableObjectByteMap<K> reject(ObjectBytePredicate<? super K> predicate)
- Specified by:
rejectin interfaceMutableObjectByteMap<K>- Specified by:
rejectin interfaceObjectByteMap<K>
-
byteIterator
public MutableByteIterator byteIterator()
- Specified by:
byteIteratorin interfaceByteIterable- Specified by:
byteIteratorin interfaceMutableObjectByteMap<K>
-
each
public void each(ByteProcedure procedure)
- Specified by:
eachin interfaceByteIterable- Since:
- 7.0.
-
count
public int count(BytePredicate predicate)
- Specified by:
countin interfaceByteIterable
-
anySatisfy
public boolean anySatisfy(BytePredicate predicate)
- Specified by:
anySatisfyin interfaceByteIterable
-
allSatisfy
public boolean allSatisfy(BytePredicate predicate)
- Specified by:
allSatisfyin interfaceByteIterable
-
noneSatisfy
public boolean noneSatisfy(BytePredicate predicate)
- Specified by:
noneSatisfyin interfaceByteIterable
-
select
public MutableByteCollection select(BytePredicate predicate)
- Specified by:
selectin interfaceByteIterable- Specified by:
selectin interfaceMutableObjectByteMap<K>
-
reject
public MutableByteCollection reject(BytePredicate predicate)
- Specified by:
rejectin interfaceByteIterable- Specified by:
rejectin interfaceMutableObjectByteMap<K>
-
detectIfNone
public byte detectIfNone(BytePredicate predicate, byte ifNone)
- Specified by:
detectIfNonein interfaceByteIterable
-
collect
public <V1> MutableCollection<V1> collect(ByteToObjectFunction<? extends V1> function)
- Specified by:
collectin interfaceByteIterable- Specified by:
collectin interfaceMutableObjectByteMap<K>
-
sum
public long sum()
- Specified by:
sumin interfaceByteIterable
-
max
public byte max()
- Specified by:
maxin interfaceByteIterable
-
maxIfEmpty
public byte maxIfEmpty(byte defaultValue)
- Specified by:
maxIfEmptyin interfaceByteIterable
-
min
public byte min()
- Specified by:
minin interfaceByteIterable
-
minIfEmpty
public byte minIfEmpty(byte defaultValue)
- Specified by:
minIfEmptyin interfaceByteIterable
-
average
public double average()
- Specified by:
averagein interfaceByteIterable
-
median
public double median()
- Specified by:
medianin interfaceByteIterable
-
toSortedArray
public byte[] toSortedArray()
- Specified by:
toSortedArrayin interfaceByteIterable
-
toSortedList
public MutableByteList toSortedList()
- Specified by:
toSortedListin interfaceByteIterable
-
toArray
public byte[] toArray()
- Specified by:
toArrayin interfaceByteIterable
-
toArray
public byte[] toArray(byte[] target)
- Specified by:
toArrayin interfaceByteIterable
-
contains
public boolean contains(byte value)
- Specified by:
containsin interfaceByteIterable
-
containsAll
public boolean containsAll(byte... source)
- Specified by:
containsAllin interfaceByteIterable
-
containsAll
public boolean containsAll(ByteIterable source)
- Specified by:
containsAllin interfaceByteIterable
-
toList
public MutableByteList toList()
- Specified by:
toListin interfaceByteIterable
-
toSet
public MutableByteSet toSet()
- Specified by:
toSetin interfaceByteIterable
-
toBag
public MutableByteBag toBag()
- Specified by:
toBagin interfaceByteIterable
-
asLazy
public LazyByteIterable asLazy()
- Specified by:
asLazyin interfaceByteIterable
-
withKeyValue
public MutableObjectByteMap<K> withKeyValue(K key, byte value)
- Specified by:
withKeyValuein interfaceMutableObjectByteMap<K>
-
withoutKey
public MutableObjectByteMap<K> withoutKey(K key)
- Specified by:
withoutKeyin interfaceMutableObjectByteMap<K>
-
withoutAllKeys
public MutableObjectByteMap<K> withoutAllKeys(Iterable<? extends K> keys)
- Specified by:
withoutAllKeysin interfaceMutableObjectByteMap<K>
-
asUnmodifiable
public MutableObjectByteMap<K> asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableObjectByteMap<K>
-
asSynchronized
public MutableObjectByteMap<K> asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableObjectByteMap<K>
-
toImmutable
public ImmutableObjectByteMap<K> toImmutable()
- Specified by:
toImmutablein interfaceObjectByteMap<K>
-
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 Set<K> keySet()
- Specified by:
keySetin interfaceObjectByteMap<K>
-
values
public MutableByteCollection values()
- Specified by:
valuesin interfaceObjectByteMap<K>
-
keysView
public LazyIterable<K> keysView()
- Specified by:
keysViewin interfaceObjectByteMap<K>
-
keyValuesView
public RichIterable<ObjectBytePair<K>> keyValuesView()
- Specified by:
keyValuesViewin interfaceObjectByteMap<K>
-
flipUniqueValues
public MutableByteObjectMap<K> flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceMutableObjectByteMap<K>- Specified by:
flipUniqueValuesin interfaceObjectByteMap<K>
-
toString
public String toString()
- Specified by:
toStringin interfaceObjectByteMap<K>- 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, ObjectByteToObjectFunction<? super T,? extends T> function)- Specified by:
injectIntoin interfaceByteIterable
-
chunk
public RichIterable<ByteIterable> chunk(int size)
- Specified by:
chunkin interfaceByteIterable
-
-