Class DateOnly

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Comparable

    public class DateOnly
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Comparable, java.lang.Cloneable
    Version:
    $Revision: 1.8 $ $Date: 2004/12/02 18:35:08 $
    Author:
    Jiri Walek, Polarion Software
    See Also:
    Serialized Form
    • Constructor Detail

      • DateOnly

        public DateOnly​(java.util.Date date)
    • Method Detail

      • parse

        public static DateOnly parse​(java.lang.String str)
                              throws java.text.ParseException
        Throws:
        java.text.ParseException
      • getDate

        public java.util.Date getDate()
      • toString

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

        public int compareTo​(java.lang.Object o)
        Specified by:
        compareTo in interface java.lang.Comparable
      • equals

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

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

        public java.lang.Object clone()
        Since:
        3.3.2