Class AbstractParallelUnsortedBag<T,B extends UnsortedBagBatch<T>>
- java.lang.Object
-
- org.eclipse.collections.impl.lazy.parallel.AbstractParallelIterable<T,B>
-
- org.eclipse.collections.impl.lazy.parallel.bag.AbstractParallelUnsortedBag<T,B>
-
- All Implemented Interfaces:
ParallelBag<T>
,ParallelUnsortedBag<T>
,ParallelIterable<T>
- Direct Known Subclasses:
ParallelCollectUnsortedBag
,ParallelSelectUnsortedBag
public abstract class AbstractParallelUnsortedBag<T,B extends UnsortedBagBatch<T>> extends AbstractParallelIterable<T,B> implements ParallelUnsortedBag<T>
-
-
Constructor Summary
Constructors Constructor Description AbstractParallelUnsortedBag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParallelUnsortedSetIterable<T>
asUnique()
<V> ParallelUnsortedBag<V>
collect(Function<? super T,? extends V> function)
Creates a parallel iterable for collecting elements from the current iterable.<V> ParallelUnsortedBag<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>
ParallelUnsortedBag<V>collectWith(Function2<? super T,? super P,? extends V> function, P parameter)
<V> ParallelUnsortedBag<V>
flatCollect(Function<? super T,? extends java.lang.Iterable<V>> function)
Creates a parallel flattening iterable for the current iterable.<V> UnsortedBagMultimap<V,T>
groupBy(Function<? super T,? extends V> function)
<V> UnsortedBagMultimap<V,T>
groupByEach(Function<? super T,? extends java.lang.Iterable<V>> function)
protected boolean
isOrdered()
ParallelUnsortedBag<T>
reject(Predicate<? super T> predicate)
Creates a parallel iterable for rejecting elements from the current iterable.<P> ParallelUnsortedBag<T>
rejectWith(Predicate2<? super T,? super P> predicate, P parameter)
ParallelUnsortedBag<T>
select(Predicate<? super T> predicate)
Creates a parallel iterable for selecting elements from the current iterable.<S> ParallelUnsortedBag<S>
selectInstancesOf(java.lang.Class<S> clazz)
<P> ParallelUnsortedBag<T>
selectWith(Predicate2<? super T,? super P> predicate, P parameter)
MutableBag<T>
toBag()
-
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, groupByUniqueKey, max, max, maxBy, min, min, minBy, noneSatisfy, noneSatisfyWith, split, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, 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.bag.ParallelBag
forEachWithOccurrences
-
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, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy
-
-
-
-
Method Detail
-
isOrdered
protected boolean isOrdered()
- Specified by:
isOrdered
in classAbstractParallelIterable<T,B extends UnsortedBagBatch<T>>
-
asUnique
public ParallelUnsortedSetIterable<T> asUnique()
- Specified by:
asUnique
in interfaceParallelIterable<T>
- Specified by:
asUnique
in interfaceParallelUnsortedBag<T>
-
select
public ParallelUnsortedBag<T> select(Predicate<? super T> predicate)
Description copied from interface:ParallelUnsortedBag
Creates a parallel iterable for selecting elements from the current iterable.- Specified by:
select
in interfaceParallelBag<T>
- Specified by:
select
in interfaceParallelIterable<T>
- Specified by:
select
in interfaceParallelUnsortedBag<T>
-
selectWith
public <P> ParallelUnsortedBag<T> selectWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
selectWith
in interfaceParallelBag<T>
- Specified by:
selectWith
in interfaceParallelIterable<T>
- Specified by:
selectWith
in interfaceParallelUnsortedBag<T>
-
selectInstancesOf
public <S> ParallelUnsortedBag<S> selectInstancesOf(java.lang.Class<S> clazz)
- Specified by:
selectInstancesOf
in interfaceParallelBag<T>
- Specified by:
selectInstancesOf
in interfaceParallelIterable<T>
- Specified by:
selectInstancesOf
in interfaceParallelUnsortedBag<T>
-
reject
public ParallelUnsortedBag<T> reject(Predicate<? super T> predicate)
Description copied from interface:ParallelUnsortedBag
Creates a parallel iterable for rejecting elements from the current iterable.- Specified by:
reject
in interfaceParallelBag<T>
- Specified by:
reject
in interfaceParallelIterable<T>
- Specified by:
reject
in interfaceParallelUnsortedBag<T>
-
rejectWith
public <P> ParallelUnsortedBag<T> rejectWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
rejectWith
in interfaceParallelBag<T>
- Specified by:
rejectWith
in interfaceParallelIterable<T>
- Specified by:
rejectWith
in interfaceParallelUnsortedBag<T>
-
collect
public <V> ParallelUnsortedBag<V> collect(Function<? super T,? extends V> function)
Description copied from interface:ParallelUnsortedBag
Creates a parallel iterable for collecting elements from the current iterable.- Specified by:
collect
in interfaceParallelIterable<T>
- Specified by:
collect
in interfaceParallelUnsortedBag<T>
-
collectWith
public <P,V> ParallelUnsortedBag<V> collectWith(Function2<? super T,? super P,? extends V> function, P parameter)
- Specified by:
collectWith
in interfaceParallelIterable<T>
- Specified by:
collectWith
in interfaceParallelUnsortedBag<T>
-
collectIf
public <V> ParallelUnsortedBag<V> collectIf(Predicate<? super T> predicate, Function<? super T,? extends V> function)
Description copied from interface:ParallelUnsortedBag
Creates a parallel iterable for selecting and collecting elements from the current iterable.- Specified by:
collectIf
in interfaceParallelIterable<T>
- Specified by:
collectIf
in interfaceParallelUnsortedBag<T>
-
flatCollect
public <V> ParallelUnsortedBag<V> flatCollect(Function<? super T,? extends java.lang.Iterable<V>> function)
Description copied from interface:ParallelUnsortedBag
Creates a parallel flattening iterable for the current iterable.- Specified by:
flatCollect
in interfaceParallelIterable<T>
- Specified by:
flatCollect
in interfaceParallelUnsortedBag<T>
-
toBag
public MutableBag<T> toBag()
- Specified by:
toBag
in interfaceParallelIterable<T>
- Overrides:
toBag
in classAbstractParallelIterable<T,B extends UnsortedBagBatch<T>>
-
groupBy
public <V> UnsortedBagMultimap<V,T> groupBy(Function<? super T,? extends V> function)
- Specified by:
groupBy
in interfaceParallelBag<T>
- Specified by:
groupBy
in interfaceParallelIterable<T>
- Specified by:
groupBy
in interfaceParallelUnsortedBag<T>
-
groupByEach
public <V> UnsortedBagMultimap<V,T> groupByEach(Function<? super T,? extends java.lang.Iterable<V>> function)
- Specified by:
groupByEach
in interfaceParallelBag<T>
- Specified by:
groupByEach
in interfaceParallelIterable<T>
- Specified by:
groupByEach
in interfaceParallelUnsortedBag<T>
-
-