Class ByteConverter

java.lang.Object
com.github.joschi.jadconfig.converters.ByteConverter
All Implemented Interfaces:
Converter<Byte>

public class ByteConverter extends Object implements Converter<Byte>
Converter for type Byte
Author:
jschalanda
  • Constructor Details

    • ByteConverter

      public ByteConverter()
  • Method Details

    • convertFrom

      public Byte convertFrom(String value)
      Returns a Byte instance representing the specified String value.
      Specified by:
      convertFrom in interface Converter<Byte>
      Parameters:
      value - The configuration parameter's String value
      Returns:
      A Byte instance representing the configuration parameter's value
    • convertTo

      public String convertTo(Byte value)
      Returns a String instance representing the configuration parameter's value.
      Specified by:
      convertTo in interface Converter<Byte>
      Parameters:
      value - The configuration parameter's Byte value
      Returns:
      A String instance representing the configuration parameter's typed value