Package org.derive4j.processor.api
Class DeriveResults.CaseOfMatchers.PartialMatcher<A,R>
- java.lang.Object
-
- org.derive4j.processor.api.DeriveResults.CaseOfMatchers.PartialMatcher<A,R>
-
- Direct Known Subclasses:
DeriveResults.CaseOfMatchers.TotalMatcher_Result
- Enclosing class:
- DeriveResults.CaseOfMatchers
public static class DeriveResults.CaseOfMatchers.PartialMatcher<A,R> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private DeriveResult<A>
_deriveResult
private java.util.function.Function<DeriveMessage,R>
error
private java.util.function.Function<A,R>
result
-
Constructor Summary
Constructors Constructor Description PartialMatcher(DeriveResult<A> _deriveResult, java.util.function.Function<DeriveMessage,R> error, java.util.function.Function<A,R> result)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description R
otherwise(java.util.function.Supplier<R> otherwise)
R
otherwise_(R r)
java.util.Optional<R>
otherwiseEmpty()
-
-
-
Field Detail
-
_deriveResult
private final DeriveResult<A> _deriveResult
-
error
private final java.util.function.Function<DeriveMessage,R> error
-
-
Constructor Detail
-
PartialMatcher
PartialMatcher(DeriveResult<A> _deriveResult, java.util.function.Function<DeriveMessage,R> error, java.util.function.Function<A,R> result)
-
-