se.datadosen.util
Class FormattedDate

java.lang.Object
  extended by java.util.Date
      extended by se.datadosen.util.FormattedDate
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<java.util.Date>

public class FormattedDate
extends java.util.Date

Subclass of Date that prints itself according to the passed DateFormat class

See Also:
Serialized Form

Constructor Summary
FormattedDate(java.util.Date d, java.text.DateFormat df)
           
FormattedDate(long l, java.text.DateFormat df)
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.util.Date
after, before, clone, compareTo, equals, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toLocaleString, UTC
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FormattedDate

public FormattedDate(java.util.Date d,
                     java.text.DateFormat df)

FormattedDate

public FormattedDate(long l,
                     java.text.DateFormat df)
Method Detail

toString

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