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

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


package cn.featherfly.conversion.string.basic;

import cn.featherfly.common.lang.GenericType;

/**
 * 

* StringBuilder类转换器 *

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy