Class MultiReaderParallelListIterable<T>
- java.lang.Object
-
- org.eclipse.collections.impl.lazy.parallel.AbstractMultiReaderParallelIterable<T,ParallelListIterable<T>>
-
- org.eclipse.collections.impl.lazy.parallel.list.MultiReaderParallelListIterable<T>
-
- All Implemented Interfaces:
ParallelListIterable<T>
,ParallelIterable<T>
public final class MultiReaderParallelListIterable<T> extends AbstractMultiReaderParallelIterable<T,ParallelListIterable<T>> implements ParallelListIterable<T>
-
-
Field Summary
-
Fields inherited from class org.eclipse.collections.impl.lazy.parallel.AbstractMultiReaderParallelIterable
delegate, lock
-
-
Constructor Summary
Constructors Constructor Description MultiReaderParallelListIterable(ParallelListIterable<T> delegate, java.util.concurrent.locks.ReadWriteLock lock)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParallelUnsortedSetIterable<T>
asUnique()
<V> ParallelListIterable<V>
collect(Function<? super T,? extends V> function)
Creates a parallel iterable for collecting elements from the current iterable.<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.<P,V>
ParallelListIterable<V>collectWith(Function2<? super T,? super P,? extends V> function, P parameter)
<V> ParallelListIterable<V>
flatCollect(Function<? super T,? extends java.lang.Iterable<V>> function)
Creates a parallel flattening iterable for the current iterable.<V> ListMultimap<V,T>
groupBy(Function<? super T,? extends V> function)
<V> ListMultimap<V,T>
groupByEach(Function<? super T,? extends java.lang.Iterable<V>> function)
ParallelListIterable<T>
reject(Predicate<? super T> predicate)
Creates a parallel iterable for rejecting elements from the current iterable.<P> ParallelListIterable<T>
rejectWith(Predicate2<? super T,? super P> predicate, P parameter)
ParallelListIterable<T>
select(Predicate<? super T> predicate)
Creates a parallel iterable for selecting elements from the current iterable.<S> ParallelListIterable<S>
selectInstancesOf(java.lang.Class<S> clazz)
<P> ParallelListIterable<T>
selectWith(Predicate2<? super T,? super P> predicate, P parameter)
-
Methods inherited from class org.eclipse.collections.impl.lazy.parallel.AbstractMultiReaderParallelIterable
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, toString, wrap, wrap, wrap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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
-
-
-
-
Constructor Detail
-
MultiReaderParallelListIterable
public MultiReaderParallelListIterable(ParallelListIterable<T> delegate, java.util.concurrent.locks.ReadWriteLock lock)
-
-
Method Detail
-
asUnique
public ParallelUnsortedSetIterable<T> asUnique()
- Specified by:
asUnique
in interfaceParallelIterable<T>
- Specified by:
asUnique
in interfaceParallelListIterable<T>
-
select
public ParallelListIterable<T> select(Predicate<? super T> predicate)
Description copied from interface:ParallelListIterable
Creates a parallel iterable for selecting elements from the current iterable.- Specified by:
select
in interfaceParallelIterable<T>
- Specified by:
select
in interfaceParallelListIterable<T>
-
selectWith
public <P> ParallelListIterable<T> selectWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
selectWith
in interfaceParallelIterable<T>
- Specified by:
selectWith
in interfaceParallelListIterable<T>
-
reject
public ParallelListIterable<T> reject(Predicate<? super T> predicate)
Description copied from interface:ParallelListIterable
Creates a parallel iterable for rejecting elements from the current iterable.- Specified by:
reject
in interfaceParallelIterable<T>
- Specified by:
reject
in interfaceParallelListIterable<T>
-
rejectWith
public <P> ParallelListIterable<T> rejectWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
rejectWith
in interfaceParallelIterable<T>
- Specified by:
rejectWith
in interfaceParallelListIterable<T>
-
selectInstancesOf
public <S> ParallelListIterable<S> selectInstancesOf(java.lang.Class<S> clazz)
- Specified by:
selectInstancesOf
in interfaceParallelIterable<T>
- Specified by:
selectInstancesOf
in interfaceParallelListIterable<T>
-
collect
public <V> ParallelListIterable<V> collect(Function<? super T,? extends V> function)
Description copied from interface:ParallelListIterable
Creates a parallel iterable for collecting elements from the current iterable.- Specified by:
collect
in interfaceParallelIterable<T>
- Specified by:
collect
in interfaceParallelListIterable<T>
-
collectWith
public <P,V> ParallelListIterable<V> collectWith(Function2<? super T,? super P,? extends V> function, P parameter)
- Specified by:
collectWith
in interfaceParallelIterable<T>
- Specified by:
collectWith
in interfaceParallelListIterable<T>
-
collectIf
public <V> ParallelListIterable<V> collectIf(Predicate<? super T> predicate, Function<? super T,? extends V> function)
Description copied from interface:ParallelListIterable
Creates a parallel iterable for selecting and collecting elements from the current iterable.- Specified by:
collectIf
in interfaceParallelIterable<T>
- Specified by:
collectIf
in interfaceParallelListIterable<T>
-
flatCollect
public <V> ParallelListIterable<V> flatCollect(Function<? super T,? extends java.lang.Iterable<V>> function)
Description copied from interface:ParallelListIterable
Creates a parallel flattening iterable for the current iterable.- Specified by:
flatCollect
in interfaceParallelIterable<T>
- Specified by:
flatCollect
in interfaceParallelListIterable<T>
-
groupBy
public <V> ListMultimap<V,T> groupBy(Function<? super T,? extends V> function)
- Specified by:
groupBy
in interfaceParallelIterable<T>
- Specified by:
groupBy
in interfaceParallelListIterable<T>
-
groupByEach
public <V> ListMultimap<V,T> groupByEach(Function<? super T,? extends java.lang.Iterable<V>> function)
- Specified by:
groupByEach
in interfaceParallelIterable<T>
- Specified by:
groupByEach
in interfaceParallelListIterable<T>
-
-