Class MonthsConverter

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

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

    • MonthsConverter

      public MonthsConverter()
  • Method Details

    • convertFrom

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

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