Package org.eclipse.collections.api.bag
Interface ParallelBag<T>
- All Superinterfaces:
ParallelIterable<T>
- All Known Subinterfaces:
ParallelSortedBag<T>
,ParallelUnsortedBag<T>
- All Known Implementing Classes:
AbstractParallelUnsortedBag
,NonParallelUnsortedBag
,ParallelCollectUnsortedBag
public interface ParallelBag<T> extends ParallelIterable<T>
- Since:
- 5.0
-
Method Summary
Modifier and Type Method Description void
forEachWithOccurrences(ObjectIntProcedure<? super T> procedure)
<V> BagMultimap<V,T>
groupBy(Function<? super T,? extends V> function)
<V> BagMultimap<V,T>
groupByEach(Function<? super T,? extends Iterable<V>> function)
ParallelBag<T>
reject(Predicate<? super T> predicate)
Creates a parallel iterable for rejecting elements from the current iterable.<P> ParallelBag<T>
rejectWith(Predicate2<? super T,? super P> predicate, P parameter)
ParallelBag<T>
select(Predicate<? super T> predicate)
Creates a parallel iterable for selecting elements from the current iterable.<S> ParallelBag<S>
selectInstancesOf(Class<S> clazz)
<P> ParallelBag<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, asUnique, collect, collectIf, collectWith, count, countWith, detect, detectIfNone, detectWith, detectWithIfNone, flatCollect, forEach, forEachWith, groupByUniqueKey, 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
-
forEachWithOccurrences
-
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>
-
groupBy
- Specified by:
groupBy
in interfaceParallelIterable<T>
-
groupByEach
- Specified by:
groupByEach
in interfaceParallelIterable<T>
-