| Package | Description |
|---|---|
| net.emaze.dysfunctional | |
| net.emaze.dysfunctional.strategies |
| Modifier and Type | Method and Description |
|---|---|
static <T,R> Function<T,List<R>> |
Strategies.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,R> Function<T,R> |
Strategies.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,R> Function<T,Optional<R>> |
Strategies.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. |
| Modifier and Type | Method and Description |
|---|---|
static <T,R> Clause<T,R> |
Clause.of(Predicate<T> condition,
Function<T,R> body) |
Clause<Pair<T,U>,R> |
BinaryClause.tupled() |
| Constructor and Description |
|---|
AllMatchesStrategy(List<Clause<T,R>> clauses) |
FirstMatchStrategy(List<Clause<T,R>> clauses) |
MaybeFirstMatchStrategy(List<Clause<T,R>> clauses) |
Copyright © 2017. All rights reserved.