Class Date

  • All Implemented Interfaces:
    java.lang.Comparable<Date>

    public class Date
    extends java.lang.Object
    implements java.lang.Comparable<Date>
    Can be used as a parameter in RestEASY, as it has a String argument constructor.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String FORMAT  
      protected static java.lang.String[] rfc822DateFormats
      List of possible RFC822 date formats.
    • Constructor Summary

      Constructors 
      Constructor Description
      Date​(java.lang.String dateString)  
      Date​(java.util.Calendar date)  
      Date​(java.util.Calendar date, java.lang.String format)  
    • Field Detail

      • rfc822DateFormats

        protected static final java.lang.String[] rfc822DateFormats
        List of possible RFC822 date formats. From .
    • Constructor Detail

      • Date

        public Date​(java.util.Calendar date)
      • Date

        public Date​(java.util.Calendar date,
                    java.lang.String format)
      • Date

        public Date​(java.lang.String dateString)
    • Method Detail

      • valueOf

        public static Date valueOf​(java.lang.String dateString)
      • getCalendar

        public java.util.Calendar getCalendar()
      • asDateTime

        public org.joda.time.DateTime asDateTime()
      • compareTo

        public int compareTo​(Date arg0)
        Specified by:
        compareTo in interface java.lang.Comparable<Date>
      • toString

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