Package org.derive4j.processor.api
Class DeriveResults.CasesMatchers.PartialMatcher<A,R>
- java.lang.Object
-
- org.derive4j.processor.api.DeriveResults.CasesMatchers.PartialMatcher<A,R>
-
- Direct Known Subclasses:
DeriveResults.CasesMatchers.TotalMatcher_Result
- Enclosing class:
- DeriveResults.CasesMatchers
public static class DeriveResults.CasesMatchers.PartialMatcher<A,R> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PartialMatcher(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 java.util.function.Function<DeriveResult<A>,R>
otherwise(java.util.function.Supplier<R> otherwise)
java.util.function.Function<DeriveResult<A>,R>
otherwise_(R r)
java.util.function.Function<DeriveResult<A>,java.util.Optional<R>>
otherwiseEmpty()
-
-
-
Field Detail
-
error
private final java.util.function.Function<DeriveMessage,R> error
-
-
Constructor Detail
-
PartialMatcher
PartialMatcher(java.util.function.Function<DeriveMessage,R> error, java.util.function.Function<A,R> result)
-
-
Method Detail
-
otherwise
public final java.util.function.Function<DeriveResult<A>,R> otherwise(java.util.function.Supplier<R> otherwise)
-
otherwise_
public final java.util.function.Function<DeriveResult<A>,R> otherwise_(R r)
-
otherwiseEmpty
public final java.util.function.Function<DeriveResult<A>,java.util.Optional<R>> otherwiseEmpty()
-
-