F - The type to convert from.T - The type to convert to.public abstract class Rule<F,T> extends java.lang.Object implements TargetRule
Rule implementation.
Filtering on the to is done by the converter customization
mechanism.| Modifier and Type | Field and Description |
|---|---|
private ConverterFunction |
function |
| Constructor and Description |
|---|
Rule(Function<F,T> func)
Create an instance with a conversion function.
|
| Modifier and Type | Method and Description |
|---|---|
ConverterFunction |
getFunction()
The function to perform the conversion.
|
private ConverterFunction |
getGenericFunction(Function<F,T> func) |
java.lang.reflect.Type |
getTargetType()
The target type of this rule.
|
private final ConverterFunction function
private ConverterFunction getGenericFunction(Function<F,T> func)
public ConverterFunction getFunction()
TargetRulegetFunction in interface TargetRulepublic java.lang.reflect.Type getTargetType()
TargetRulegetTargetType in interface TargetRule