cn.featherfly.conversion.string.basic.StringConvertor Maven / Gradle / Ivy
package cn.featherfly.conversion.string.basic;
import cn.featherfly.common.lang.GenericType;
/**
*
* String类转换器
*
*
* @author 钟冀
*/
public class StringConvertor extends AbstractBasicConvertor>{
/**
*/
public StringConvertor() {
}
/**
* {@inheritDoc}
*/
@Override
protected String doToString(String value, GenericType genericType) {
if (value != null) {
return value;
}
return "";
}
/**
* {@inheritDoc}
*/
@Override
protected String doToObject(String value, GenericType genericType) {
return value;
}
}