Class PeriodConverter

java.lang.Object
com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
com.atlassian.bamboo.utils.xstream.converters.PeriodConverter
All Implemented Interfaces:
com.thoughtworks.xstream.converters.ConverterMatcher, com.thoughtworks.xstream.converters.SingleValueConverter

public class PeriodConverter extends com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
Converter for joda-time Period class
  • Constructor Details

    • PeriodConverter

      public PeriodConverter()
  • Method Details

    • canConvert

      public boolean canConvert(Class type)
      Specified by:
      canConvert in interface com.thoughtworks.xstream.converters.ConverterMatcher
      Specified by:
      canConvert in class com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
    • toString

      public String toString(Object obj)
      Specified by:
      toString in interface com.thoughtworks.xstream.converters.SingleValueConverter
      Overrides:
      toString in class com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
    • fromString

      public Object fromString(String str)
      Specified by:
      fromString in interface com.thoughtworks.xstream.converters.SingleValueConverter
      Specified by:
      fromString in class com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter