Package org.derive4j.processor.api.model
Class DataConstructions.CaseOfMatchers.PartialMatcher<R>
- java.lang.Object
-
- org.derive4j.processor.api.model.DataConstructions.CaseOfMatchers.PartialMatcher<R>
-
- Direct Known Subclasses:
DataConstructions.CaseOfMatchers.PartialMatcher_NoConstructor
,DataConstructions.CaseOfMatchers.TotalMatcher_NoConstructor
- Enclosing class:
- DataConstructions.CaseOfMatchers
public static class DataConstructions.CaseOfMatchers.PartialMatcher<R> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private DataConstruction
_dataConstruction
private java.util.function.Function<MultipleConstructors,R>
multipleConstructors
private java.util.function.Supplier<R>
noConstructor
private java.util.function.Function<DataConstructor,R>
oneConstructor
-
Constructor Summary
Constructors Constructor Description PartialMatcher(DataConstruction _dataConstruction, java.util.function.Function<MultipleConstructors,R> multipleConstructors, java.util.function.Function<DataConstructor,R> oneConstructor, java.util.function.Supplier<R> noConstructor)
-
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
-
_dataConstruction
private final DataConstruction _dataConstruction
-
multipleConstructors
private final java.util.function.Function<MultipleConstructors,R> multipleConstructors
-
oneConstructor
private final java.util.function.Function<DataConstructor,R> oneConstructor
-
noConstructor
private final java.util.function.Supplier<R> noConstructor
-
-
Constructor Detail
-
PartialMatcher
PartialMatcher(DataConstruction _dataConstruction, java.util.function.Function<MultipleConstructors,R> multipleConstructors, java.util.function.Function<DataConstructor,R> oneConstructor, java.util.function.Supplier<R> noConstructor)
-
-