Package org.eclipse.collections.api.bag
Interface ParallelBag<T>
-
- All Superinterfaces:
ParallelIterable<T>
- All Known Subinterfaces:
ParallelSortedBag<T>,ParallelUnsortedBag<T>
public interface ParallelBag<T> extends ParallelIterable<T>
- Since:
- 5.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidforEachWithOccurrences(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, 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 Detail
-
forEachWithOccurrences
void forEachWithOccurrences(ObjectIntProcedure<? super T> procedure)
-
select
ParallelBag<T> select(Predicate<? super T> predicate)
Creates a parallel iterable for selecting elements from the current iterable.- Specified by:
selectin interfaceParallelIterable<T>
-
selectWith
<P> ParallelBag<T> selectWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
selectWithin interfaceParallelIterable<T>
-
reject
ParallelBag<T> reject(Predicate<? super T> predicate)
Creates a parallel iterable for rejecting elements from the current iterable.- Specified by:
rejectin interfaceParallelIterable<T>
-
rejectWith
<P> ParallelBag<T> rejectWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
rejectWithin interfaceParallelIterable<T>
-
selectInstancesOf
<S> ParallelBag<S> selectInstancesOf(Class<S> clazz)
- Specified by:
selectInstancesOfin interfaceParallelIterable<T>
-
groupBy
<V> BagMultimap<V,T> groupBy(Function<? super T,? extends V> function)
- Specified by:
groupByin interfaceParallelIterable<T>
-
groupByEach
<V> BagMultimap<V,T> groupByEach(Function<? super T,? extends Iterable<V>> function)
- Specified by:
groupByEachin interfaceParallelIterable<T>
-
-