Class SynchronizedShortIterable
java.lang.Object
org.eclipse.collections.impl.primitive.SynchronizedShortIterable
- All Implemented Interfaces:
Serializable,PrimitiveIterable,ShortIterable
A synchronized view of a ShortIterable.
This file was automatically generated from template file synchronizedPrimitiveIterable.stg.
- Since:
- 5.0.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanallSatisfy(ShortPredicate predicate) booleananySatisfy(ShortPredicate predicate) voidappendString(Appendable appendable) voidappendString(Appendable appendable, String separator) voidappendString(Appendable appendable, String start, String separator, String end) asLazy()doubleaverage()chunk(int size) <V> RichIterable<V>collect(ShortToObjectFunction<? extends V> function) booleancontains(short value) booleancontainsAll(short... source) booleancontainsAll(ShortIterable source) booleancontainsAny(short... source) booleancontainsAny(ShortIterable source) booleancontainsNone(short... source) booleancontainsNone(ShortIterable source) intcount(ShortPredicate predicate) shortdetectIfNone(ShortPredicate predicate, short ifNone) voideach(ShortProcedure procedure) <T> TinjectInto(T injectedValue, ObjectShortToObjectFunction<? super T, ? extends T> function) booleanisEmpty()makeString(String separator) makeString(String start, String separator, String end) shortmax()shortmaxIfEmpty(short defaultValue) doublemedian()shortmin()shortminIfEmpty(short defaultValue) booleannoneSatisfy(ShortPredicate predicate) booleannotEmpty()static SynchronizedShortIterableof(ShortIterable iterable) This method will take a ShortIterable and wrap it directly in a SynchronizedShortIterable.static SynchronizedShortIterableof(ShortIterable iterable, Object lock) This method will take a ShortIterable and wrap it directly in a SynchronizedShortIterable.longreduce(LongShortToLongFunction accumulator) longreduceIfEmpty(LongShortToLongFunction accumulator, long defaultValue) reject(ShortPredicate predicate) select(ShortPredicate predicate) Must be called in a synchronized block.intsize()longsum()short[]toArray()short[]toArray(short[] target) toBag()toList()toSet()short[]toString()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.collections.api.ShortIterable
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, medianIfEmpty, reject, select, summaryStatistics, tap, toSortedList, toSortedListBy, toSortedListBy
-
Method Details
-
of
This method will take a ShortIterable and wrap it directly in a SynchronizedShortIterable. -
of
This method will take a ShortIterable and wrap it directly in a SynchronizedShortIterable. Additionally, a developer specifies which lock to use with the collection. -
toArray
public short[] toArray()- Specified by:
toArrayin interfaceShortIterable
-
toArray
public short[] toArray(short[] target) - Specified by:
toArrayin interfaceShortIterable
-
contains
public boolean contains(short value) - Specified by:
containsin interfaceShortIterable
-
containsAll
public boolean containsAll(short... source) - Specified by:
containsAllin interfaceShortIterable
-
containsAll
- Specified by:
containsAllin interfaceShortIterable
-
containsAny
public boolean containsAny(short... source) - Specified by:
containsAnyin interfaceShortIterable
-
containsAny
- Specified by:
containsAnyin interfaceShortIterable
-
containsNone
public boolean containsNone(short... source) - Specified by:
containsNonein interfaceShortIterable
-
containsNone
- Specified by:
containsNonein interfaceShortIterable
-
each
- Specified by:
eachin interfaceShortIterable- Since:
- 7.0.
-
select
- Specified by:
selectin interfaceShortIterable
-
reject
- Specified by:
rejectin interfaceShortIterable
-
collect
- Specified by:
collectin interfaceShortIterable
-
detectIfNone
- Specified by:
detectIfNonein interfaceShortIterable
-
count
- Specified by:
countin interfaceShortIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceShortIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceShortIterable
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceShortIterable
-
toList
- Specified by:
toListin interfaceShortIterable
-
toSet
- Specified by:
toSetin interfaceShortIterable
-
toBag
- Specified by:
toBagin interfaceShortIterable
-
asLazy
- Specified by:
asLazyin interfaceShortIterable
-
sum
public long sum()- Specified by:
sumin interfaceShortIterable
-
max
public short max()- Specified by:
maxin interfaceShortIterable
-
maxIfEmpty
public short maxIfEmpty(short defaultValue) - Specified by:
maxIfEmptyin interfaceShortIterable
-
min
public short min()- Specified by:
minin interfaceShortIterable
-
minIfEmpty
public short minIfEmpty(short defaultValue) - Specified by:
minIfEmptyin interfaceShortIterable
-
average
public double average()- Specified by:
averagein interfaceShortIterable
-
median
public double median()- Specified by:
medianin interfaceShortIterable
-
toSortedArray
public short[] toSortedArray()- Specified by:
toSortedArrayin interfaceShortIterable
-
toSortedList
- Specified by:
toSortedListin interfaceShortIterable
-
size
public int size()- Specified by:
sizein interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()- Specified by:
notEmptyin interfacePrimitiveIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectShortToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoin interfaceShortIterable
-
reduce
- Specified by:
reducein interfaceShortIterable
-
reduceIfEmpty
- Specified by:
reduceIfEmptyin interfaceShortIterable
-
chunk
- Specified by:
chunkin interfaceShortIterable
-
toString
- 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
-
shortIterator
Must be called in a synchronized block.- Specified by:
shortIteratorin interfaceShortIterable
-