org.onetwo.common.convert.ToStringConvertor Maven / Gradle / Ivy
package org.onetwo.common.convert;
import org.onetwo.common.utils.LangUtils;
public class ToStringConvertor extends AbstractTypeConvert{
public ToStringConvertor() {
super(LangUtils.EMPTY_STRING);
}
@Override
public String doConvert(Object value, Class> componentType) {
// if (value == null)
// return defValue;
// return LangUtils.EMPTY_STRING;
return value.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy