Class AbstractParallelListIterable<T,B extends ListBatch<T>>
- java.lang.Object
-
- org.eclipse.collections.impl.lazy.parallel.AbstractParallelIterable<T,B>
-
- org.eclipse.collections.impl.lazy.parallel.list.AbstractParallelListIterable<T,B>
-
- All Implemented Interfaces:
ParallelListIterable<T>,ParallelIterable<T>
- Direct Known Subclasses:
ListIterableParallelIterable,ParallelCollectListIterable,ParallelFlatCollectListIterable,ParallelSelectListIterable
public abstract class AbstractParallelListIterable<T,B extends ListBatch<T>> extends AbstractParallelIterable<T,B> implements ParallelListIterable<T>
-
-
Constructor Summary
Constructors Constructor Description AbstractParallelListIterable()
-
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)<V> MapIterable<V,T>groupByUniqueKey(Function<? super T,? extends V> function)protected booleanisOrdered()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)java.lang.Object[]toArray()<E> E[]toArray(E[] array)-
Methods inherited from class org.eclipse.collections.impl.lazy.parallel.AbstractParallelIterable
aggregateBy, aggregateInPlaceBy, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, collectCombine, count, countWith, detect, detectIfNone, detectWith, detectWithIfNone, forEach, forEachWith, getBatchSize, getExecutorService, max, max, maxBy, min, min, minBy, noneSatisfy, noneSatisfyWith, split, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toBag, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy, toString
-
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, makeString, makeString, makeString, makeString, max, max, maxBy, min, min, minBy, noneSatisfy, noneSatisfyWith, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toBag, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy
-
-
-
-
Method Detail
-
isOrdered
protected boolean isOrdered()
-
asUnique
public ParallelUnsortedSetIterable<T> asUnique()
- Specified by:
asUniquein interfaceParallelIterable<T>- Specified by:
asUniquein interfaceParallelListIterable<T>
-
select
public ParallelListIterable<T> select(Predicate<? super T> predicate)
Description copied from interface:ParallelListIterableCreates a parallel iterable for selecting elements from the current iterable.- Specified by:
selectin interfaceParallelIterable<T>- Specified by:
selectin interfaceParallelListIterable<T>
-
selectWith
public <P> ParallelListIterable<T> selectWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
selectWithin interfaceParallelIterable<T>- Specified by:
selectWithin interfaceParallelListIterable<T>
-
selectInstancesOf
public <S> ParallelListIterable<S> selectInstancesOf(java.lang.Class<S> clazz)
- Specified by:
selectInstancesOfin interfaceParallelIterable<T>- Specified by:
selectInstancesOfin interfaceParallelListIterable<T>
-
reject
public ParallelListIterable<T> reject(Predicate<? super T> predicate)
Description copied from interface:ParallelListIterableCreates a parallel iterable for rejecting elements from the current iterable.- Specified by:
rejectin interfaceParallelIterable<T>- Specified by:
rejectin interfaceParallelListIterable<T>
-
rejectWith
public <P> ParallelListIterable<T> rejectWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
rejectWithin interfaceParallelIterable<T>- Specified by:
rejectWithin interfaceParallelListIterable<T>
-
collect
public <V> ParallelListIterable<V> collect(Function<? super T,? extends V> function)
Description copied from interface:ParallelListIterableCreates a parallel iterable for collecting elements from the current iterable.- Specified by:
collectin interfaceParallelIterable<T>- Specified by:
collectin interfaceParallelListIterable<T>
-
collectWith
public <P,V> ParallelListIterable<V> collectWith(Function2<? super T,? super P,? extends V> function, P parameter)
- Specified by:
collectWithin interfaceParallelIterable<T>- Specified by:
collectWithin interfaceParallelListIterable<T>
-
collectIf
public <V> ParallelListIterable<V> collectIf(Predicate<? super T> predicate, Function<? super T,? extends V> function)
Description copied from interface:ParallelListIterableCreates a parallel iterable for selecting and collecting elements from the current iterable.- Specified by:
collectIfin interfaceParallelIterable<T>- Specified by:
collectIfin interfaceParallelListIterable<T>
-
flatCollect
public <V> ParallelListIterable<V> flatCollect(Function<? super T,? extends java.lang.Iterable<V>> function)
Description copied from interface:ParallelListIterableCreates a parallel flattening iterable for the current iterable.- Specified by:
flatCollectin interfaceParallelIterable<T>- Specified by:
flatCollectin interfaceParallelListIterable<T>
-
groupBy
public <V> ListMultimap<V,T> groupBy(Function<? super T,? extends V> function)
- Specified by:
groupByin interfaceParallelIterable<T>- Specified by:
groupByin interfaceParallelListIterable<T>
-
groupByEach
public <V> ListMultimap<V,T> groupByEach(Function<? super T,? extends java.lang.Iterable<V>> function)
- Specified by:
groupByEachin interfaceParallelIterable<T>- Specified by:
groupByEachin interfaceParallelListIterable<T>
-
groupByUniqueKey
public <V> MapIterable<V,T> groupByUniqueKey(Function<? super T,? extends V> function)
- Specified by:
groupByUniqueKeyin interfaceParallelIterable<T>- Overrides:
groupByUniqueKeyin classAbstractParallelIterable<T,B extends ListBatch<T>>
-
toArray
public java.lang.Object[] toArray()
- Specified by:
toArrayin interfaceParallelIterable<T>
-
toArray
public <E> E[] toArray(E[] array)
- Specified by:
toArrayin interfaceParallelIterable<T>- Overrides:
toArrayin classAbstractParallelIterable<T,B extends ListBatch<T>>
-
-