接口 Converter<S,T>
- 类型参数:
S- the source typeT- the target type
- 所有已知实现类:
DeserializingConverter,SerializingConverter
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
A converter converts a source object of type
S to a target of type T.
Implementations of this interface are thread-safe and can be shared.
- 作者:
- TODAY 2018-07-07 21:33:52
-
方法概要
-
方法详细资料
-
convert
Convert the source object of typeSto target typeT.- 参数:
source- the source object to convert, which must be an instance ofS(nevernull)- 返回:
- the converted object, which must be an instance of
T(potentiallynull) - 抛出:
IllegalArgumentException- if the source cannot be converted to the desired target type
-
andThen
-