Class DateTimeZoneConverter

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

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

    • DateTimeZoneConverter

      public DateTimeZoneConverter()
  • Method Details

    • convertFrom

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

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