java.lang.Object
com.github.joschi.jadconfig.jodatime.converters.DaysConverter
All Implemented Interfaces:
Converter<org.joda.time.Days>

public class DaysConverter extends Object implements Converter<org.joda.time.Days>
Converter for type Days
Author:
jschalanda
  • Constructor Details

    • DaysConverter

      public DaysConverter()
  • Method Details

    • convertFrom

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

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