Class BooleanConverter

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

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

    • BooleanConverter

      public BooleanConverter()
  • Method Details

    • convertFrom

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

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