Package org.derive4j.processor.api
Class DeriveResults
java.lang.Object
org.derive4j.processor.api.DeriveResults
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
private static final class
private static final class
private static final class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <A> DeriveResults.CaseOfMatchers.TotalMatcher_Error
<A> caseOf
(DeriveResult<A> deriveResult) static <A> DeriveResults.CasesMatchers.TotalMatcher_Error
<A> cases()
static <A> DeriveResult
<A> error
(DeriveMessage error) static <A> Optional
<DeriveMessage> getError
(DeriveResult<A> deriveResult) static <A> Optional
<A> getResult
(DeriveResult<A> deriveResult) static <A> DeriveResult
<A> lazy
(Supplier<DeriveResult<A>> deriveResult) static <A> Function
<DeriveResult<A>, DeriveResult<A>> modError
(Function<DeriveMessage, DeriveMessage> errorMod) static <A,
RA> Function <DeriveResult<A>, DeriveResult<RA>> static <A> DeriveResult
<A> result
(A result) static <A> Function
<DeriveResult<A>, DeriveResult<A>> setError
(DeriveMessage newError) static <A,
RA> Function <DeriveResult<A>, DeriveResult<RA>> setResult
(RA newResult)
-
Constructor Details
-
DeriveResults
private DeriveResults()
-
-
Method Details
-
error
-
result
-
lazy
-
cases
-
caseOf
public static <A> DeriveResults.CaseOfMatchers.TotalMatcher_Error<A> caseOf(DeriveResult<A> deriveResult) -
getError
-
getResult
-
setError
-
modError
public static <A> Function<DeriveResult<A>,DeriveResult<A>> modError(Function<DeriveMessage, DeriveMessage> errorMod) -
setResult
-
modResult
public static <A,RA> Function<DeriveResult<A>,DeriveResult<RA>> modResult(Function<A, RA> resultMod)
-