Class DateTimeFormat

  • All Implemented Interfaces:
    java.io.Serializable

    public final class DateTimeFormat
    extends java.lang.Object
    implements java.io.Serializable
    Class for describing the format to use for formatting a date time value
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      DateTimeFormat()
      Default constructor for deserialisation
      DateTimeFormat​(java.lang.String pattern, TimeZone timeZone)  
    • Method Summary

      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.String getPattern()  
      TimeZone getTimeZone()  
      int hashCode()  
      void setPattern​(java.lang.String pattern)  
      void setTimeZone​(TimeZone timeZone)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DateTimeFormat

        public DateTimeFormat()
        Default constructor for deserialisation
      • DateTimeFormat

        public DateTimeFormat​(java.lang.String pattern,
                              TimeZone timeZone)
        Parameters:
        pattern - A date time formatting pattern string conforming to the specification of DateTimeFormatter
        timeZone - The time zone to use when formatting the date time value
    • Method Detail

      • getPattern

        public java.lang.String getPattern()
        Returns:
        The format pattern string, conforming to DateTimeFormatter
      • setPattern

        public void setPattern​(java.lang.String pattern)
      • getTimeZone

        public TimeZone getTimeZone()
        Returns:
        The the timeZone to use when formatting the date
      • setTimeZone

        public void setTimeZone​(TimeZone timeZone)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object