public abstract class Strategies extends Object
| Constructor and Description |
|---|
Strategies() |
| Modifier and Type | Method and Description |
|---|---|
static <T,U,R> BiFunction<T,U,List<R>> |
allMatches(BinaryClause<T,U,R>... clauses)
Given some
Clauses returns a binary function that forwards the results of
all clauses which condition is true, of an empty List if no clause
matches the condition. |
static <T,R> Function<T,List<R>> |
allMatches(Clause<T,R>... clauses)
Given some
Clauses returns a function that forwards the results of all
clauses which condition is true, of an empty List if no clause
matches the condition. |
static <T,U,R> BiFunction<T,U,R> |
firstMatch(BinaryClause<T,U,R>... clauses)
Given some
Clauses returns a binary function that forwards the result of
the first clause which condition is true. |
static <T,R> Function<T,R> |
firstMatch(Clause<T,R>... clauses)
Given some
Clauses returns a function that forwards the result of the
first clause which condition is true. |
static <T,U,R> BiFunction<T,U,Optional<R>> |
maybeFirstMatch(BinaryClause<T,U,R>... clauses)
Given some
Clauses returns a binary function that forwards the result of
the first clause which condition is true, of an empty Optional if
no clause matches the condition. |
static <T,R> Function<T,Optional<R>> |
maybeFirstMatch(Clause<T,R>... clauses)
Given some
Clauses returns a function that forwards the result of the
first clause which condition is true, of an empty Optional if no
clause matches the condition. |
@SafeVarargs public static <T,R> Function<T,R> firstMatch(Clause<T,R>... clauses)
Clauses returns a function that forwards the result of the
first clause which condition is true.IllegalStateException - if no clause matches the condition@SafeVarargs public static <T,U,R> BiFunction<T,U,R> firstMatch(BinaryClause<T,U,R>... clauses)
Clauses returns a binary function that forwards the result of
the first clause which condition is true.IllegalStateException - if no clause matches the condition@SafeVarargs public static <T,R> Function<T,Optional<R>> maybeFirstMatch(Clause<T,R>... clauses)
Clauses returns a function that forwards the result of the
first clause which condition is true, of an empty Optional if no
clause matches the condition.@SafeVarargs public static <T,U,R> BiFunction<T,U,Optional<R>> maybeFirstMatch(BinaryClause<T,U,R>... clauses)
Clauses returns a binary function that forwards the result of
the first clause which condition is true, of an empty Optional if
no clause matches the condition.@SafeVarargs public static <T,R> Function<T,List<R>> allMatches(Clause<T,R>... clauses)
Clauses returns a function that forwards the results of all
clauses which condition is true, of an empty List if no clause
matches the condition.@SafeVarargs public static <T,U,R> BiFunction<T,U,List<R>> allMatches(BinaryClause<T,U,R>... clauses)
Clauses returns a binary function that forwards the results of
all clauses which condition is true, of an empty List if no clause
matches the condition.Copyright © 2017. All rights reserved.