net.sf.andromedaioc.bean.converter.fromstring.FromStringToByteConverter 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 Byte converter
*
* @author Alexey Mitrov
*/
public class FromStringToByteConverter implements Converter {
public Byte convert(String input) {
return input == null ? null : Byte.parseByte(input);
}
}