Class DateFormatContainer


  • public class DateFormatContainer
    extends Object
    Internal class used as a container to determine the date format to use for a particular field mapping. Only intended for internal use.
    • Constructor Detail

      • DateFormatContainer

        public DateFormatContainer​(String dfStr)
    • Method Detail

      • isPresent

        public boolean isPresent()
        Whether a date format is present.
        Returns:
        If present, return true
        Since:
        6.5.0
      • getDateFormat

        public DateFormat getDateFormat()
      • getDateTimeFormatter

        public DateTimeFormatter getDateTimeFormatter()
        Date and time formatter for Java 8 Date & Time objects.
        Returns:
        formatter
      • setDateFormat

        @Deprecated
        public void setDateFormat​(DateFormat dateFormat)
        Deprecated.
        This method will break internal state of the instance by setting formatter which is not using format provided using constructor. It will be removed in future releases.
        TODO replace method call with reflection in tests.
        Parameters:
        dateFormat - dateFormat