Class SynchronizedIntByteMap
java.lang.Object
org.eclipse.collections.impl.map.mutable.primitive.SynchronizedIntByteMap
- All Implemented Interfaces:
Serializable,ByteIterable,ByteValuesMap,IntByteMap,MutableByteValuesMap,MutableIntByteMap,PrimitiveIterable
A synchronized view of a
MutableIntByteMap. It is imperative that the user manually synchronize on the collection when iterating over it using the
MutableByteIterator as per Collections.synchronizedCollection(Collection).
This file was automatically generated from template file synchronizedPrimitivePrimitiveMap.stg.
- Since:
- 3.1.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyteaddToValue(int key, byte toBeAdded) booleanallSatisfy(BytePredicate predicate) booleanallSatisfyKeyValue(IntBytePredicate predicate) booleananySatisfy(BytePredicate predicate) voidappendString(Appendable appendable) voidappendString(Appendable appendable, String separator) voidappendString(Appendable appendable, String start, String separator, String end) asLazy()doubleaverage()This must be manually synchronized by the developer.chunk(int size) voidclear()<V> MutableBag<V>collect(ByteToObjectFunction<? extends V> function) booleancontains(byte value) booleancontainsAll(byte... source) booleancontainsAll(ByteIterable source) booleancontainsKey(int key) booleancontainsValue(byte value) intcount(BytePredicate predicate) bytedetectIfNone(BytePredicate predicate, byte ifNone) voideach(ByteProcedure procedure) booleanvoidforEachKey(IntProcedure procedure) voidforEachKeyValue(IntByteProcedure procedure) voidforEachValue(ByteProcedure procedure) byteget(int key) bytegetAndPut(int key, byte putValue, byte defaultValue) bytegetIfAbsent(int key, byte ifAbsent) bytegetIfAbsentPut(int key, byte value) bytegetIfAbsentPut(int key, ByteFunction0 function) <P> bytegetIfAbsentPutWith(int key, ByteFunction<? super P> function, P parameter) bytegetIfAbsentPutWithKey(int key, IntToByteFunction function) bytegetOrThrow(int 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(int key, byte value) voidputAll(IntByteMap map) voidputPair(IntBytePair keyValuePair) reject(BytePredicate predicate) reject(IntBytePredicate predicate) voidremove(int key) voidremoveKey(int key) byteremoveKeyIfAbsent(int key, byte value) select(BytePredicate predicate) select(IntBytePredicate predicate) intsize()longsum()byte[]toArray()byte[]toArray(byte[] target) toBag()toList()toSet()byte[]toString()byteupdateValue(int key, byte initialValueIfAbsent, ByteToByteFunction function) voidupdateValues(IntByteToByteFunction function) values()withKeyValue(int key, byte value) withoutAllKeys(IntIterable keys) withoutKey(int 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.IntByteMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableIntByteMap
withAllKeyValues
-
Constructor Details
-
SynchronizedIntByteMap
-
SynchronizedIntByteMap
-
-
Method Details
-
clear
public void clear()- Specified by:
clearin interfaceMutableByteValuesMap
-
put
public void put(int key, byte value) - Specified by:
putin interfaceMutableIntByteMap
-
putPair
- Specified by:
putPairin interfaceMutableIntByteMap
-
putAll
- Specified by:
putAllin interfaceMutableIntByteMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableIntByteMap
-
removeKey
public void removeKey(int key) - Specified by:
removeKeyin interfaceMutableIntByteMap
-
remove
public void remove(int key) - Specified by:
removein interfaceMutableIntByteMap
-
removeKeyIfAbsent
public byte removeKeyIfAbsent(int key, byte value) - Specified by:
removeKeyIfAbsentin interfaceMutableIntByteMap
-
getIfAbsentPut
public byte getIfAbsentPut(int key, byte value) - Specified by:
getIfAbsentPutin interfaceMutableIntByteMap
-
getAndPut
public byte getAndPut(int key, byte putValue, byte defaultValue) - Specified by:
getAndPutin interfaceMutableIntByteMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableIntByteMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableIntByteMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableIntByteMap
-
updateValue
- Specified by:
updateValuein interfaceMutableIntByteMap
-
get
public byte get(int key) - Specified by:
getin interfaceIntByteMap
-
getIfAbsent
public byte getIfAbsent(int key, byte ifAbsent) - Specified by:
getIfAbsentin interfaceIntByteMap
-
getOrThrow
public byte getOrThrow(int key) - Specified by:
getOrThrowin interfaceIntByteMap
-
containsKey
public boolean containsKey(int key) - Specified by:
containsKeyin interfaceIntByteMap
-
containsValue
public boolean containsValue(byte value) - Specified by:
containsValuein interfaceByteValuesMap
-
forEachValue
- Specified by:
forEachValuein interfaceByteValuesMap
-
forEachKey
- Specified by:
forEachKeyin interfaceIntByteMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceIntByteMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceIntByteMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceIntByteMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceIntByteMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceIntByteMap- Specified by:
flipUniqueValuesin interfaceMutableIntByteMap
-
select
- Specified by:
selectin interfaceIntByteMap- Specified by:
selectin interfaceMutableIntByteMap
-
reject
- Specified by:
rejectin interfaceIntByteMap- Specified by:
rejectin interfaceMutableIntByteMap
-
byteIterator
This must be manually synchronized by the developer.- 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(int key, byte toBeAdded) - Specified by:
addToValuein interfaceMutableIntByteMap
-
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 interfaceMutableIntByteMap
-
withoutKey
- Specified by:
withoutKeyin interfaceMutableIntByteMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableIntByteMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableIntByteMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableIntByteMap
-
toImmutable
- Specified by:
toImmutablein interfaceIntByteMap
-
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 interfaceIntByteMap
-
values
- Specified by:
valuesin interfaceByteValuesMap
-
equals
- Specified by:
equalsin interfaceIntByteMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceIntByteMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceIntByteMap- Specified by:
toStringin interfacePrimitiveIterable- 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
-