Package org.eclipse.collections.api.list
Interface ParallelListIterable<T>
- All Superinterfaces:
ParallelIterable<T>
- All Known Implementing Classes:
AbstractParallelListIterable
,ListIterableParallelIterable
,MultiReaderParallelListIterable
,NonParallelListIterable
,ParallelCollectListIterable
,ParallelFlatCollectListIterable
,SynchronizedParallelListIterable
A ParallelIterable is RichIterable which will defer evaluation for certain methods like select, reject, collect, etc.
Any methods that do not return a ParallelIterable when called will cause evaluation to be forced. Evaluation occurs
in parallel. All code blocks passed in must be stateless or thread-safe.
- Since:
- 5.0
-
Method Summary
Modifier and TypeMethodDescriptionasUnique()
<V> ParallelListIterable<V>
Creates a parallel iterable for collecting elements from the current iterable.<V> ParallelListIterable<V>
Creates a parallel iterable for selecting and collecting elements from the current iterable.<P,
V> ParallelListIterable<V> collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <V> ParallelListIterable<V>
flatCollect
(Function<? super T, ? extends Iterable<V>> function) Creates a parallel flattening iterable for the current iterable.<V> ListMultimap<V,
T> <V> ListMultimap<V,
T> groupByEach
(Function<? super T, ? extends Iterable<V>> function) Creates a parallel iterable for rejecting elements from the current iterable.<P> ParallelListIterable<T>
rejectWith
(Predicate2<? super T, ? super P> predicate, P parameter) Creates a parallel iterable for selecting elements from the current iterable.<S> ParallelListIterable<S>
selectInstancesOf
(Class<S> clazz) <P> ParallelListIterable<T>
selectWith
(Predicate2<? super T, ? super P> predicate, P parameter) Methods inherited from interface org.eclipse.collections.api.ParallelIterable
aggregateBy, aggregateInPlaceBy, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, count, countWith, detect, detectIfNone, detectWith, detectWithIfNone, forEach, forEachWith, groupByUniqueKey, makeString, makeString, makeString, makeString, max, max, maxBy, min, min, minBy, noneSatisfy, noneSatisfyWith, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy
-
Method Details
-
asUnique
ParallelUnsortedSetIterable<T> asUnique()- Specified by:
asUnique
in interfaceParallelIterable<T>
-
select
Creates a parallel iterable for selecting elements from the current iterable.- Specified by:
select
in interfaceParallelIterable<T>
-
selectWith
- Specified by:
selectWith
in interfaceParallelIterable<T>
-
reject
Creates a parallel iterable for rejecting elements from the current iterable.- Specified by:
reject
in interfaceParallelIterable<T>
-
rejectWith
- Specified by:
rejectWith
in interfaceParallelIterable<T>
-
selectInstancesOf
- Specified by:
selectInstancesOf
in interfaceParallelIterable<T>
-
collect
Creates a parallel iterable for collecting elements from the current iterable.- Specified by:
collect
in interfaceParallelIterable<T>
-
collectWith
<P,V> ParallelListIterable<V> collectWith(Function2<? super T, ? super P, ? extends V> function, P parameter) - Specified by:
collectWith
in interfaceParallelIterable<T>
-
collectIf
<V> ParallelListIterable<V> collectIf(Predicate<? super T> predicate, Function<? super T, ? extends V> function) Creates a parallel iterable for selecting and collecting elements from the current iterable.- Specified by:
collectIf
in interfaceParallelIterable<T>
-
flatCollect
Creates a parallel flattening iterable for the current iterable.- Specified by:
flatCollect
in interfaceParallelIterable<T>
-
groupBy
- Specified by:
groupBy
in interfaceParallelIterable<T>
-
groupByEach
- Specified by:
groupByEach
in interfaceParallelIterable<T>
-