Class UnmodifiableShortByteMap
java.lang.Object
org.eclipse.collections.impl.map.mutable.primitive.UnmodifiableShortByteMap
- All Implemented Interfaces:
Serializable,ByteIterable,ByteValuesMap,MutableByteValuesMap,MutableShortByteMap,ShortByteMap,PrimitiveIterable
This file was automatically generated from template file unmodifiablePrimitivePrimitiveMap.stg.
- Since:
- 3.1.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyteaddToValue(short key, byte toBeAdded) booleanallSatisfy(BytePredicate predicate) booleananySatisfy(BytePredicate predicate) voidappendString(Appendable appendable) voidappendString(Appendable appendable, String separator) voidappendString(Appendable appendable, String start, String separator, String end) asLazy()doubleaverage()chunk(int size) voidclear()<V> MutableBag<V>collect(ByteToObjectFunction<? extends V> function) booleancontains(byte value) booleancontainsAll(byte... source) booleancontainsAll(ByteIterable source) booleancontainsKey(short key) booleancontainsValue(byte value) intcount(BytePredicate predicate) bytedetectIfNone(BytePredicate predicate, byte ifNone) voideach(ByteProcedure procedure) booleanvoidforEachKey(ShortProcedure procedure) voidforEachKeyValue(ShortByteProcedure procedure) voidforEachValue(ByteProcedure procedure) byteget(short key) bytegetAndPut(short key, byte putValue, byte defaultValue) bytegetIfAbsent(short key, byte ifAbsent) bytegetIfAbsentPut(short key, byte value) bytegetIfAbsentPut(short key, ByteFunction0 function) <P> bytegetIfAbsentPutWith(short key, ByteFunction<? super P> function, P parameter) bytegetIfAbsentPutWithKey(short key, ShortToByteFunction function) bytegetOrThrow(short key) inthashCode()<T> TinjectInto(T injectedValue, ObjectByteToObjectFunction<? super T, ? extends T> function) booleanisEmpty()keySet()keysView()makeString(String separator) makeString(String start, String separator, String end) bytemax()bytemaxIfEmpty(byte defaultValue) doublemedian()bytemin()byteminIfEmpty(byte defaultValue) booleannoneSatisfy(BytePredicate predicate) booleannotEmpty()voidput(short key, byte value) voidputAll(ShortByteMap map) voidputPair(ShortBytePair keyValuePair) reject(BytePredicate predicate) reject(ShortBytePredicate predicate) voidremove(short key) voidremoveKey(short key) byteremoveKeyIfAbsent(short key, byte value) select(BytePredicate predicate) select(ShortBytePredicate predicate) intsize()longsum()byte[]toArray()byte[]toArray(byte[] target) toBag()toList()toSet()byte[]toString()byteupdateValue(short key, byte initialValueIfAbsent, ByteToByteFunction function) voidupdateValues(ShortByteToByteFunction function) values()withKeyValue(short key, byte value) withoutAllKeys(ShortIterable keys) withoutKey(short key) 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, toSortedListByMethods inherited from interface org.eclipse.collections.api.map.primitive.ByteValuesMap
tapMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableShortByteMap
withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.map.primitive.ShortByteMap
allSatisfyKeyValue, injectIntoKeyValue
-
Constructor Details
-
UnmodifiableShortByteMap
-
-
Method Details
-
clear
public void clear()- Specified by:
clearin interfaceMutableByteValuesMap
-
put
public void put(short key, byte value) - Specified by:
putin interfaceMutableShortByteMap
-
putPair
- Specified by:
putPairin interfaceMutableShortByteMap
-
putAll
- Specified by:
putAllin interfaceMutableShortByteMap
-
updateValues
- 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
- Specified by:
getIfAbsentPutin interfaceMutableShortByteMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableShortByteMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableShortByteMap
-
updateValue
- 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
- Specified by:
forEachValuein interfaceByteValuesMap
-
forEachKey
- Specified by:
forEachKeyin interfaceShortByteMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceShortByteMap
-
keysView
- Specified by:
keysViewin interfaceShortByteMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceShortByteMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceMutableShortByteMap- Specified by:
flipUniqueValuesin interfaceShortByteMap
-
select
- Specified by:
selectin interfaceMutableShortByteMap- Specified by:
selectin interfaceShortByteMap
-
reject
- Specified by:
rejectin interfaceMutableShortByteMap- Specified by:
rejectin interfaceShortByteMap
-
byteIterator
- Specified by:
byteIteratorin interfaceByteIterable- Specified by:
byteIteratorin interfaceMutableByteValuesMap
-
each
- Specified by:
eachin interfaceByteIterable- Since:
- 7.0.
-
count
- Specified by:
countin interfaceByteIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceByteIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceByteIterable
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceByteIterable
-
select
- Specified by:
selectin interfaceByteIterable- Specified by:
selectin interfaceByteValuesMap- Specified by:
selectin interfaceMutableByteValuesMap
-
reject
- Specified by:
rejectin interfaceByteIterable- Specified by:
rejectin interfaceByteValuesMap- Specified by:
rejectin interfaceMutableByteValuesMap
-
collect
- Specified by:
collectin interfaceByteIterable- Specified by:
collectin interfaceByteValuesMap- Specified by:
collectin interfaceMutableByteValuesMap
-
detectIfNone
- 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
- 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
- Specified by:
containsAllin interfaceByteIterable
-
toList
- Specified by:
toListin interfaceByteIterable
-
toSet
- Specified by:
toSetin interfaceByteIterable
-
toBag
- Specified by:
toBagin interfaceByteIterable
-
asLazy
- Specified by:
asLazyin interfaceByteIterable
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableShortByteMap
-
withoutKey
- Specified by:
withoutKeyin interfaceMutableShortByteMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableShortByteMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableShortByteMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableShortByteMap
-
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
- Specified by:
keySetin interfaceShortByteMap
-
values
- Specified by:
valuesin interfaceByteValuesMap
-
equals
- Specified by:
equalsin interfaceShortByteMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceShortByteMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfacePrimitiveIterable- Specified by:
toStringin interfaceShortByteMap- Overrides:
toStringin classObject
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectByteToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoin interfaceByteIterable
-
chunk
- Specified by:
chunkin interfaceByteIterable
-