Class UnmodifiableShortByteMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.UnmodifiableShortByteMap
-
- All Implemented Interfaces:
Serializable,ByteIterable,ByteValuesMap,MutableByteValuesMap,MutableShortByteMap,ShortByteMap,PrimitiveIterable
public class UnmodifiableShortByteMap extends Object implements MutableShortByteMap, Serializable
This file was automatically generated from template file unmodifiablePrimitivePrimitiveMap.stg.- Since:
- 3.1.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableShortByteMap(MutableShortByteMap 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.MutableShortByteMap
withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ShortByteMap
injectIntoKeyValue
-
-
-
-
Constructor Detail
-
UnmodifiableShortByteMap
public UnmodifiableShortByteMap(MutableShortByteMap map)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clearin interfaceMutableByteValuesMap
-
put
public void put(short key, byte value)- Specified by:
putin interfaceMutableShortByteMap
-
putPair
public void putPair(ShortBytePair keyValuePair)
- Specified by:
putPairin interfaceMutableShortByteMap
-
putAll
public void putAll(ShortByteMap map)
- Specified by:
putAllin interfaceMutableShortByteMap
-
updateValues
public void updateValues(ShortByteToByteFunction function)
- Specified by:
updateValuesin interfaceMutableShortByteMap
-
removeKey
public void removeKey(short key)
- Specified by:
removeKeyin interfaceMutableShortByteMap
-
remove
public void remove(short key)
- Specified by:
removein interfaceMutableShortByteMap
-
removeKeyIfAbsent
public byte removeKeyIfAbsent(short key, byte value)- Specified by:
removeKeyIfAbsentin interfaceMutableShortByteMap
-
getIfAbsentPut
public byte getIfAbsentPut(short key, byte value)- Specified by:
getIfAbsentPutin interfaceMutableShortByteMap
-
getAndPut
public byte getAndPut(short key, byte putValue, byte defaultValue)- Specified by:
getAndPutin interfaceMutableShortByteMap
-
getIfAbsentPut
public byte getIfAbsentPut(short key, ByteFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableShortByteMap
-
getIfAbsentPutWithKey
public byte getIfAbsentPutWithKey(short key, ShortToByteFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableShortByteMap
-
getIfAbsentPutWith
public <P> byte getIfAbsentPutWith(short key, ByteFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableShortByteMap
-
updateValue
public byte updateValue(short key, byte initialValueIfAbsent, ByteToByteFunction function)- Specified by:
updateValuein interfaceMutableShortByteMap
-
get
public byte get(short key)
- Specified by:
getin interfaceShortByteMap
-
getIfAbsent
public byte getIfAbsent(short key, byte ifAbsent)- Specified by:
getIfAbsentin interfaceShortByteMap
-
getOrThrow
public byte getOrThrow(short key)
- Specified by:
getOrThrowin interfaceShortByteMap
-
containsKey
public boolean containsKey(short key)
- Specified by:
containsKeyin interfaceShortByteMap
-
containsValue
public boolean containsValue(byte value)
- Specified by:
containsValuein interfaceByteValuesMap
-
forEachValue
public void forEachValue(ByteProcedure procedure)
- Specified by:
forEachValuein interfaceByteValuesMap
-
forEachKey
public void forEachKey(ShortProcedure procedure)
- Specified by:
forEachKeyin interfaceShortByteMap
-
forEachKeyValue
public void forEachKeyValue(ShortByteProcedure procedure)
- Specified by:
forEachKeyValuein interfaceShortByteMap
-
keysView
public LazyShortIterable keysView()
- Specified by:
keysViewin interfaceShortByteMap
-
keyValuesView
public RichIterable<ShortBytePair> keyValuesView()
- Specified by:
keyValuesViewin interfaceShortByteMap
-
flipUniqueValues
public MutableByteShortMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceMutableShortByteMap- Specified by:
flipUniqueValuesin interfaceShortByteMap
-
select
public MutableShortByteMap select(ShortBytePredicate predicate)
- Specified by:
selectin interfaceMutableShortByteMap- Specified by:
selectin interfaceShortByteMap
-
reject
public MutableShortByteMap reject(ShortBytePredicate predicate)
- Specified by:
rejectin interfaceMutableShortByteMap- Specified by:
rejectin interfaceShortByteMap
-
byteIterator
public MutableByteIterator byteIterator()
- Specified by:
byteIteratorin interfaceByteIterable- Specified by:
byteIteratorin interfaceMutableByteValuesMap
-
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 MutableByteBag select(BytePredicate predicate)
- Specified by:
selectin interfaceByteIterable- Specified by:
selectin interfaceByteValuesMap- Specified by:
selectin interfaceMutableByteValuesMap
-
reject
public MutableByteBag reject(BytePredicate predicate)
- Specified by:
rejectin interfaceByteIterable- Specified by:
rejectin interfaceByteValuesMap- Specified by:
rejectin interfaceMutableByteValuesMap
-
collect
public <V> MutableBag<V> collect(ByteToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceByteIterable- Specified by:
collectin interfaceByteValuesMap- Specified by:
collectin interfaceMutableByteValuesMap
-
detectIfNone
public byte detectIfNone(BytePredicate predicate, byte ifNone)
- Specified by:
detectIfNonein interfaceByteIterable
-
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
-
addToValue
public byte addToValue(short key, byte toBeAdded)- Specified by:
addToValuein interfaceMutableShortByteMap
-
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 MutableShortByteMap withKeyValue(short key, byte value)
- Specified by:
withKeyValuein interfaceMutableShortByteMap
-
withoutKey
public MutableShortByteMap withoutKey(short key)
- Specified by:
withoutKeyin interfaceMutableShortByteMap
-
withoutAllKeys
public MutableShortByteMap withoutAllKeys(ShortIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableShortByteMap
-
asUnmodifiable
public MutableShortByteMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableShortByteMap
-
asSynchronized
public MutableShortByteMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableShortByteMap
-
toImmutable
public ImmutableShortByteMap toImmutable()
- Specified by:
toImmutablein interfaceShortByteMap
-
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 MutableShortSet keySet()
- Specified by:
keySetin interfaceShortByteMap
-
values
public MutableByteCollection values()
- Specified by:
valuesin interfaceByteValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equalsin interfaceShortByteMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceShortByteMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfacePrimitiveIterable- Specified by:
toStringin interfaceShortByteMap- 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
-
-