接口 Conversion
-
- 所有已知子接口:
ConversionSupport
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
@FunctionalInterface public interface Conversion
将给定值转换为特定类型- 作者:
- 思追(shaco)
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 Objectconvert(@NotNull Object source, @NotNull TypeDescriptor sourceType, @NotNull TypeDescriptor targetType)将源对象转换为TypeDescriptor描述的目标类型
-
-
-
方法详细资料
-
convert
Object convert(@NotNull @NotNull Object source, @NotNull @NotNull TypeDescriptor sourceType, @NotNull @NotNull TypeDescriptor targetType)
将源对象转换为TypeDescriptor描述的目标类型- 参数:
source- 要转换的源对象(可以是null)sourceType- 要从中转换的字段的类型描述符targetType- 要转换为的字段的类型描述符- 返回:
- the converted object
-
-