Class HoursConverter

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

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

    • HoursConverter

      public HoursConverter()
  • Method Details

    • convertFrom

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

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