Package org.derive4j.processor.api.model
Class DataConstructions.CasesMatchers.PartialMatcher<R>
java.lang.Object
org.derive4j.processor.api.model.DataConstructions.CasesMatchers.PartialMatcher<R>
- Direct Known Subclasses:
DataConstructions.CasesMatchers.PartialMatcher_NoConstructor
,DataConstructions.CasesMatchers.TotalMatcher_NoConstructor
- Enclosing class:
DataConstructions.CasesMatchers
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Function
<MultipleConstructors, R> private final Function
<DataConstructor, R> -
Constructor Summary
ConstructorsConstructorDescriptionPartialMatcher
(Function<MultipleConstructors, R> multipleConstructors, Function<DataConstructor, R> oneConstructor, Supplier<R> noConstructor) -
Method Summary
Modifier and TypeMethodDescriptionfinal Function
<DataConstruction, R> final Function
<DataConstruction, R> otherwise_
(R r) final Function
<DataConstruction, Optional<R>>
-
Field Details
-
multipleConstructors
-
oneConstructor
-
noConstructor
-
-
Constructor Details
-
PartialMatcher
PartialMatcher(Function<MultipleConstructors, R> multipleConstructors, Function<DataConstructor, R> oneConstructor, Supplier<R> noConstructor)
-
-
Method Details
-
otherwise
-
otherwise_
-
otherwiseEmpty
-