接口的使用
cc.shacocloud.mirage.utils.converter.Conversion
-
使用Conversion的程序包 程序包 说明 cc.shacocloud.mirage.utils.converter cc.shacocloud.mirage.utils.converter.support -
-
cc.shacocloud.mirage.utils.converter中Conversion的使用
cc.shacocloud.mirage.utils.converter中Conversion的子接口 修饰符和类型 接口 说明 interfaceConversionSupportConversion的拓展,在执行前判断是否支持该类型的转换类型参数类型为Conversion的cc.shacocloud.mirage.utils.converter中的字段 修饰符和类型 字段 说明 protected Map<ConverterCacheKey,Conversion>TypeConverterSupportImpl. explicitConverterCacheprotected Map<TypeDescriptor,Conversion>TypeConverterSupportImpl. targetConverterCache参数类型为Conversion的cc.shacocloud.mirage.utils.converter中的方法 修饰符和类型 方法 说明 voidConversionRegistry. registry(@NotNull TypeDescriptor targetType, @NotNull Conversion conversion)注册目标类型转换器voidConversionRegistry. registry(@NotNull TypeDescriptor sourceType, @NotNull TypeDescriptor targetType, @NotNull Conversion conversion)注册指定来源和目标类型转换器default voidConversionRegistry. registry(@NotNull Class<?> targetType, @NotNull Conversion conversion)注册目标类型转换器default voidConversionRegistry. registry(@NotNull Class<?> sourceType, @NotNull Class<?> targetType, @NotNull Conversion conversion)注册指定来源和目标类型转换器voidTypeConverterSupportImpl. registry(@NotNull TypeDescriptor targetType, @NotNull Conversion conversion)voidTypeConverterSupportImpl. registry(@NotNull TypeDescriptor sourceType, @NotNull TypeDescriptor targetType, @NotNull Conversion conversion) -
cc.shacocloud.mirage.utils.converter.support中Conversion的使用
实现Conversion的cc.shacocloud.mirage.utils.converter.support中的类 修饰符和类型 类 说明 classAbstractConversion抽象的转换器,定义一些公共的处理方法逻辑classToBooleanConversion转换为Boolean类型的转换器classToNumberConversion转换为Number类型的转换器classToStringConversion转换为String类型的转换器
-