public class ForkJoinParSeq<T> extends ParSeq<T>
ParSeq implementation| Modifier and Type | Field and Description |
|---|---|
protected Collection<T> |
collection |
| Modifier and Type | Method and Description |
|---|---|
static <T> ForkJoinParSeq<T> |
apply(Collection<T> collection) |
static <T> ForkJoinParSeq<T> |
apply(T... values) |
int |
count(Function1<T,Boolean> predicate)
Counts the number of elements in the sequence which satisfy a predicate.
|
boolean |
exists(Function1<T,Boolean> predicate)
Tests whether a predicate holds for some of the elements of this
sequence.
|
ParSeq<T> |
filter(Function1<T,Boolean> predicate)
Selects all elements of this sequence which satisfy a predicate.
|
ParSeq<T> |
filterNot(Function1<T,Boolean> predicate)
Selects all elements of this immutable sequence which do not satisfy a
predicate.
|
<U> ParSeq<U> |
flatMap(Function1<T,CollectionLike<U>> f)
Builds a new collection by applying a function to all elements of this
sequence and concatenating the results.
|
boolean |
forall(Function1<T,Boolean> predicate)
Tests whether a predicate holds for all elements of this sequence.
|
void |
foreach(VoidFunction1<T> f)
Applies a function f to all elements of this sequence.
|
<U> SMap<U,Seq<T>> |
groupBy(Function1<T,U> getGroupName)
Partitions this sequence into a map of sequences according to some
discriminator function.
|
boolean |
isEmpty()
Tests whether the sequence is empty.
|
<U> ParSeq<U> |
map(Function1<T,U> f)
Builds a new collection by applying a function to all elements of this
sequence.
|
List<T> |
toList()
[Original] Produces as java.util.List object
|
Seq<T> |
toSeq()
Converts to
Seq |
protected final Collection<T> collection
public static <T> ForkJoinParSeq<T> apply(T... values)
public static <T> ForkJoinParSeq<T> apply(Collection<T> collection)
public int count(Function1<T,Boolean> predicate)
ParSeqpublic boolean exists(Function1<T,Boolean> predicate)
ParSeqpublic ParSeq<T> filter(Function1<T,Boolean> predicate)
ParSeqpublic ParSeq<T> filterNot(Function1<T,Boolean> predicate)
ParSeqpublic <U> ParSeq<U> flatMap(Function1<T,CollectionLike<U>> f)
ParSeqpublic boolean forall(Function1<T,Boolean> predicate)
ParSeqpublic void foreach(VoidFunction1<T> f)
ParSeqpublic <U> SMap<U,Seq<T>> groupBy(Function1<T,U> getGroupName)
ParSeqpublic boolean isEmpty()
CollectionLikepublic <U> ParSeq<U> map(Function1<T,U> f)
ParSeqpublic List<T> toList()
CollectionLikeCopyright © 2015. All rights reserved.