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

cn.featherfly.conversion.string.basic.StringBufferConvertor Maven / Gradle / Ivy


package cn.featherfly.conversion.string.basic;

import cn.featherfly.common.lang.GenericType;

/**
 * 

* StringBuffer类转换器 *

* * @author 钟冀 */ public class StringBufferConvertor extends AbstractBasicConvertor>{ /** */ public StringBufferConvertor() { } /** * {@inheritDoc} */ @Override protected String doToString(StringBuffer value, GenericType genericType) { if (value != null) { return value.toString(); } return ""; } /** * {@inheritDoc} */ @Override protected StringBuffer doToObject(String value, GenericType genericType) { if (value != null) { return new StringBuffer(value); } return null; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy