All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.featherfly.conversion.core.Convertor Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version

package cn.featherfly.conversion.core;

import cn.featherfly.common.lang.GenericType;

/**
 * 

* 转换器 *

* @param 类型 * @author 钟冀 */ public interface Convertor { /** *

* 返回转换器对应的类型 *

* @return 转换器对应的类型 */ Class getType(); /** *

* 对象转换为字符串 *

* @param value 对象 * @param genericType 指定对象的上下文属性 * @param GenericType子类泛型 * @return 字符串 */ > String toString(T value, GT genericType); /** *

* 字符串转换为对象 *

* @param value 字符串 * @param genericType 指定对象的上下文属性 * @param GenericType子类泛型 * @return 对象 */ > T toObject(String value, GT genericType); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy