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

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


package cn.featherfly.conversion.string.basic;



/**
 * 

* 单精度浮点数转换器 *

* * @author 钟冀 */ public class FloatConvertor extends NumberBasicTypeConvertor{ /** */ public FloatConvertor() { } /** * {@inheritDoc} */ @Override public Class getSourceType() { return float.class; } // /** // * {@inheritDoc} // */ // @Override // protected Float doToObject(String value, GenericType genericType) { // if (StringUtils.isNotBlank(value)) { // return Float.parseFloat(value); // } // return -1f; // } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy