Package oracle.pgx.algorithm
Interface PgxCollection<T>
-
- Type Parameters:
T-
public interface PgxCollection<T>A collection of elements.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PgxCollection<T>filter(java.util.function.Predicate<T> predicate)Filter the elements in the collection by the given predicate.voidforEach(java.util.function.Consumer<T> callable)Run the callable for each element in the collection in parallel.voidforSequential(java.util.function.Consumer<T> callable)Run the callable for each element in the collection in sequence.
-
-
-
Method Detail
-
forEach
void forEach(java.util.function.Consumer<T> callable)
Run the callable for each element in the collection in parallel.- Parameters:
callable-
-
forSequential
void forSequential(java.util.function.Consumer<T> callable)
Run the callable for each element in the collection in sequence.- Parameters:
callable-
-
filter
PgxCollection<T> filter(java.util.function.Predicate<T> predicate)
Filter the elements in the collection by the given predicate.- Parameters:
predicate-- Returns:
-
-