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

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

There is a newer version: 1.5.0
Show newest version

package cn.featherfly.conversion.string.basic;



/**
 * 

* 整数转换器 *

* * @author 钟冀 */ public class IntConvertor extends NumberBasicTypeConvertor{ /** */ public IntConvertor() { } // /** // * {@inheritDoc} // */ // @Override // protected Integer doToObject(String value, GenericType genericType) { // if (StringUtils.isNotBlank(value)) { // return Integer.parseInt(value); // } // return -1; // } /** * {@inheritDoc} */ @Override public Class getSourceType() { return int.class; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy