Class DateAttributeToDataContentConverter

  • All Implemented Interfaces:
    Converter<java.util.Date,​java.lang.String>

    public class DateAttributeToDataContentConverter
    extends java.lang.Object
    implements Converter<java.util.Date,​java.lang.String>
    Attribute Converter for Date. Converts the Date to its proper Instant object and formats the date from ZoneOffset.UTC zone.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String convert​(java.util.Date source)
      Uses the source S object and produces an new instance of T.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DateAttributeToDataContentConverter

        public DateAttributeToDataContentConverter()
    • Method Detail

      • convert

        public java.lang.String convert​(java.util.Date source)
        Description copied from interface: Converter
        Uses the source S object and produces an new instance of T.
        Specified by:
        convert in interface Converter<java.util.Date,​java.lang.String>
        Parameters:
        source - the input to be converted.
        Returns:
        an instance of T, converted from the input source.