
cn.featherfly.conversion.core.Conversion Maven / Gradle / Ivy
package cn.featherfly.conversion.core;
import cn.featherfly.common.lang.GenericType;
/**
*
* 转换器
*
* @param 类型描述
* @author 钟冀
*/
public interface Conversion> {
/**
*
* 对象转换为字符串
*
* @param value 对象
* @param genericType 指定对象的上下文属性
* @param 泛型
* @return 字符串
*/
String toString(T value, G genericType);
/**
*
* 字符串转换为对象
*
* @param value 字符串
* @param genericType 指定对象的上下文属性
* @param 泛型
* @return 对象
*/
T toObject(String value, G genericType);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy