Rule implementation.
Filtering on the to is done by the converter customization
mechanism.
| Modifier and Type | Field and Description |
|---|---|
| private final ConverterFunction | |
| private final Type |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static <F, T> ConverterFunction | |
| public ConverterFunction | getFunction()
Implements org. The function to perform the conversion. |
| public Type | getTargetType()
Implements org. The target type of this rule. |
| function | back to summary |
|---|---|
| private final ConverterFunction function | |
| toType | back to summary |
|---|---|
| private final Type toType | |
| TypeRule | back to summary |
|---|---|
| public TypeRule(Type from, Type to, Function<F, T> func) Create an instance based on source, target types and a conversion function. | |
| getFunction | back to summary |
|---|---|
| private static <F, T> ConverterFunction getFunction(final Type from, final Function<F, T> func) | |
| getFunction | back to summary |
|---|---|
| public ConverterFunction getFunction() Implements org. Doc from org. The function to perform the conversion.
| |
| getTargetType | back to summary |
|---|---|
| public Type getTargetType() Implements org. Doc from org. The target type of this rule. The conversion function is invoked for each conversion to the target type. | |