Class ByteTypeConverter

  • All Implemented Interfaces:
    TypeConverter<java.lang.String,​java.lang.Byte>

    public class ByteTypeConverter
    extends java.lang.Object
    implements TypeConverter<java.lang.String,​java.lang.Byte>
    Byte type converter. Does not accept null or empty strings.
    Author:
    Mahmoud Ben Hassine ([email protected])
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Byte convert​(java.lang.String value)
      Convert a source type into a target type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ByteTypeConverter

        public ByteTypeConverter()
    • Method Detail

      • convert

        public java.lang.Byte convert​(java.lang.String value)
        Convert a source type into a target type.
        Specified by:
        convert in interface TypeConverter<java.lang.String,​java.lang.Byte>
        Parameters:
        value - the input value to convert
        Returns:
        The converted value