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

cn.featherfly.conversion.core.Conversion 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 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