Class SecondsConverter

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

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

    • SecondsConverter

      public SecondsConverter()
  • Method Details

    • convertFrom

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

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