接口 ConversionSupport
-
- 所有超级接口:
Conversion,Ordered
public interface ConversionSupport extends Conversion, Ordered
Conversion的拓展,在执行前判断是否支持该类型的转换基于
getOrder()进行排序判断- 作者:
- 思追(shaco)
-
-
字段概要
-
从接口继承的字段 cc.shacocloud.mirage.utils.comparator.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 default intgetOrder()获取此对象的顺序值booleansupport(@NotNull TypeDescriptor sourceType, @NotNull TypeDescriptor targetType)判断是否可以将源对象类型转换为TypeDescriptor描述的目标类型-
从接口继承的方法 cc.shacocloud.mirage.utils.converter.Conversion
convert
-
-
-
-
方法详细资料
-
support
boolean support(@NotNull @NotNull TypeDescriptor sourceType, @NotNull @NotNull TypeDescriptor targetType)判断是否可以将源对象类型转换为TypeDescriptor描述的目标类型- 参数:
sourceType- 要从中转换的字段的类型描述符targetType- 要转换为的字段的类型描述符- 返回:
- the converted object
-
getOrder
default int getOrder()
从接口复制的说明:Ordered获取此对象的顺序值- 指定者:
getOrder在接口中Ordered- 另请参阅:
Ordered.HIGHEST_PRECEDENCE,Ordered.LOWEST_PRECEDENCE
-
-