-
- 类型参数:
FromType- from typeToType- to type
- 所有已知实现类:
NullBigDecimalAsZeroConverter,NullBigIntegerAsZeroConverter,NullByteAsZeroConverter,NullDoubleAsZeroConverter,NullFloatAsZeroConverter,NullIntegerAsZeroConverter,NullLongAsZeroConverter,NullShortAsZeroConverter,NullStringAsEmptyConverter
public interface PropertyConverter<FromType,ToType>All type converter should implement this interface. And the implementation should instantiate the generic parameters.
Such as:
public class MyConverter implements PropertyConverter<Integer, String> { String convert(Integer from) { ... } }In other words, the implementation shouldn't has generic parameters. Or the library can't detect whatFromTypeandToTypereally are.