net.sf.andromedaioc.bean.converter.fromstring.FromStringToDoubleConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of andromeda-ioc Show documentation
Show all versions of andromeda-ioc Show documentation
Inversion of Control Framework for Android
The newest version!
package net.sf.andromedaioc.bean.converter.fromstring;
import net.sf.andromedaioc.bean.converter.Converter;
/**
* From String to Double converter
*
* @author Alexey Mitrov
*/
public class FromStringToDoubleConverter implements Converter {
public Double convert(String input) {
return input == null ? null : Double.parseDouble(input);
}
}