Package org.derive4j.processor.api
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
public static class InstanceLocations.CasesMatchers.PartialMatcher<X> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.Function<com.squareup.javapoet.ClassName,X>
generatedIn
private InstanceLocations.MethodMapper<X>
method
private InstanceLocations.ValueMapper<X>
value
-
Constructor Summary
Constructors Constructor Description PartialMatcher(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 java.util.function.Function<InstanceLocation,X>
otherwise(java.util.function.Supplier<X> otherwise)
java.util.function.Function<InstanceLocation,X>
otherwise_(X x)
java.util.function.Function<InstanceLocation,java.util.Optional<X>>
otherwiseEmpty()
-
-
-
Field Detail
-
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(InstanceLocations.ValueMapper<X> value, java.util.function.Function<com.squareup.javapoet.ClassName,X> generatedIn, InstanceLocations.MethodMapper<X> method)
-
-
Method Detail
-
otherwise
public final java.util.function.Function<InstanceLocation,X> otherwise(java.util.function.Supplier<X> otherwise)
-
otherwise_
public final java.util.function.Function<InstanceLocation,X> otherwise_(X x)
-
otherwiseEmpty
public final java.util.function.Function<InstanceLocation,java.util.Optional<X>> otherwiseEmpty()
-
-