Class StringConverter

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

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

    • StringConverter

      public StringConverter()
  • Method Details

    • convertFrom

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

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