public abstract class ParSeq<T> extends Object implements CollectionLike<T>
| Constructor and Description |
|---|
ParSeq() |
| Modifier and Type | Method and Description |
|---|---|
static <T> ParSeq<T> |
apply(Collection<T> collection) |
static <T> ParSeq<T> |
apply(T... values) |
abstract int |
count(Function1<T,Boolean> predicate)
Counts the number of elements in the sequence which satisfy a predicate.
|
abstract boolean |
exists(Function1<T,Boolean> p)
Tests whether a predicate holds for some of the elements of this
sequence.
|
abstract ParSeq<T> |
filter(Function1<T,Boolean> f)
Selects all elements of this sequence which satisfy a predicate.
|
abstract ParSeq<T> |
filterNot(Function1<T,Boolean> f)
Selects all elements of this immutable sequence which do not satisfy a
predicate.
|
abstract <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.
|
abstract boolean |
forall(Function1<T,Boolean> p)
Tests whether a predicate holds for all elements of this sequence.
|
abstract void |
foreach(VoidFunction1<T> f)
Applies a function f to all elements of this sequence.
|
abstract <U> SMap<U,Seq<T>> |
groupBy(Function1<T,U> f)
Partitions this sequence into a map of sequences according to some
discriminator function.
|
abstract <U> ParSeq<U> |
map(Function1<T,U> f)
Builds a new collection by applying a function to all elements of this
sequence.
|
abstract Seq<T> |
toSeq()
Converts to
Seq |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisEmpty, toListpublic static <T> ParSeq<T> apply(T... values)
public static <T> ParSeq<T> apply(Collection<T> collection)
public abstract int count(Function1<T,Boolean> predicate)
public abstract boolean exists(Function1<T,Boolean> p)
public abstract ParSeq<T> filter(Function1<T,Boolean> f)
public abstract ParSeq<T> filterNot(Function1<T,Boolean> f)
public abstract <U> ParSeq<U> flatMap(Function1<T,CollectionLike<U>> f)
public abstract boolean forall(Function1<T,Boolean> p)
public abstract void foreach(VoidFunction1<T> f)
foreach in interface CollectionLike<T>public abstract <U> SMap<U,Seq<T>> groupBy(Function1<T,U> f)
public abstract <U> ParSeq<U> map(Function1<T,U> f)
Copyright © 2015. All rights reserved.