Package org.derive4j.processor.api
Class EitherModels.Lazy
- java.lang.Object
-
- org.derive4j.processor.api.EitherModel
-
- org.derive4j.processor.api.EitherModels.Lazy
-
- Enclosing class:
- EitherModels
private static final class EitherModels.Lazy extends EitherModel
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.derive4j.processor.api.EitherModel
EitherModel.Case<R>
-
-
Field Summary
Fields Modifier and Type Field Description private EitherModel
evaluation
private java.util.function.Supplier<EitherModel>
expression
-
Constructor Summary
Constructors Constructor Description Lazy(java.util.function.Supplier<EitherModel> eitherModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private EitherModel
_evaluate()
<R> R
match(EitherModel.Case<R> Case)
-
Methods inherited from class org.derive4j.processor.api.EitherModel
leftConstructor, rightConstructor, typeElement
-
-
-
-
Field Detail
-
expression
private volatile java.util.function.Supplier<EitherModel> expression
-
evaluation
private EitherModel evaluation
-
-
Constructor Detail
-
Lazy
Lazy(java.util.function.Supplier<EitherModel> eitherModel)
-
-
Method Detail
-
_evaluate
private EitherModel _evaluate()
-
match
public <R> R match(EitherModel.Case<R> Case)
- Specified by:
match
in classEitherModel
-
-