| Package | Description |
|---|---|
| net.emaze.dysfunctional | |
| net.emaze.dysfunctional.strategies |
| Modifier and Type | Method and Description |
|---|---|
static <T,U,R> BiFunction<T,U,List<R>> |
Strategies.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,U,R> BiFunction<T,U,R> |
Strategies.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,U,R> BiFunction<T,U,Optional<R>> |
Strategies.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. |
| Modifier and Type | Method and Description |
|---|---|
static <T,U,R> BinaryClause<T,U,R> |
BinaryClause.of(BiPredicate<T,U> condition,
BiFunction<T,U,R> body) |
Copyright © 2017. All rights reserved.