Package org.derive4j.processor.api
Class InstanceLocations.CaseOfMatchers.PartialMatcher<X>
- java.lang.Object
-
- org.derive4j.processor.api.InstanceLocations.CaseOfMatchers.PartialMatcher<X>
-
- Direct Known Subclasses:
InstanceLocations.CaseOfMatchers.PartialMatcher_Method,InstanceLocations.CaseOfMatchers.TotalMatcher_Method
- Enclosing class:
- InstanceLocations.CaseOfMatchers
public static class InstanceLocations.CaseOfMatchers.PartialMatcher<X> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private InstanceLocation_instanceLocationprivate java.util.function.Function<com.squareup.javapoet.ClassName,X>generatedInprivate InstanceLocations.MethodMapper<X>methodprivate InstanceLocations.ValueMapper<X>value
-
Constructor Summary
Constructors Constructor Description PartialMatcher(InstanceLocation _instanceLocation, InstanceLocations.ValueMapper<X> value, java.util.function.Function<com.squareup.javapoet.ClassName,X> generatedIn, InstanceLocations.MethodMapper<X> method)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Xotherwise(java.util.function.Supplier<X> otherwise)Xotherwise_(X x)java.util.Optional<X>otherwiseEmpty()
-
-
-
Field Detail
-
_instanceLocation
private final InstanceLocation _instanceLocation
-
value
private final InstanceLocations.ValueMapper<X> value
-
generatedIn
private final java.util.function.Function<com.squareup.javapoet.ClassName,X> generatedIn
-
method
private final InstanceLocations.MethodMapper<X> method
-
-
Constructor Detail
-
PartialMatcher
PartialMatcher(InstanceLocation _instanceLocation, InstanceLocations.ValueMapper<X> value, java.util.function.Function<com.squareup.javapoet.ClassName,X> generatedIn, InstanceLocations.MethodMapper<X> method)
-
-