Class IntegerConverter

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

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

    • IntegerConverter

      public IntegerConverter()
  • Method Details

    • convertFrom

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

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