Class InstanceLocations.CasesMatchers.PartialMatcher<X>
java.lang.Object
org.derive4j.processor.api.InstanceLocations.CasesMatchers.PartialMatcher<X>
- Direct Known Subclasses:
InstanceLocations.CasesMatchers.PartialMatcher_Method, InstanceLocations.CasesMatchers.TotalMatcher_Method
- Enclosing class:
InstanceLocations.CasesMatchers
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final InstanceLocations.MethodMapper<X> private final InstanceLocations.ValueMapper<X> -
Constructor Summary
ConstructorsConstructorDescriptionPartialMatcher(InstanceLocations.ValueMapper<X> value, Function<com.squareup.javapoet.ClassName, X> generatedIn, InstanceLocations.MethodMapper<X> method) -
Method Summary
Modifier and TypeMethodDescriptionfinal Function<InstanceLocation, X> final Function<InstanceLocation, X> otherwise_(X x) final Function<InstanceLocation, Optional<X>>
-
Field Details
-
value
-
generatedIn
-
method
-
-
Constructor Details
-
PartialMatcher
PartialMatcher(InstanceLocations.ValueMapper<X> value, Function<com.squareup.javapoet.ClassName, X> generatedIn, InstanceLocations.MethodMapper<X> method)
-
-
Method Details
-
otherwise
-
otherwise_
-
otherwiseEmpty
-