org.oddjob.util
Class DefaultClock

java.lang.Object
  extended by org.oddjob.util.DefaultClock
All Implemented Interfaces:
Clock

public class DefaultClock
extends Object
implements Clock

A default Clock that provides the current time.

Author:
Rob Gordon

Constructor Summary
DefaultClock()
           
 
Method Summary
 Date getDate()
          Return the java date for the current time by the clock.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultClock

public DefaultClock()
Method Detail

getDate

public Date getDate()
Description copied from interface: Clock
Return the java date for the current time by the clock.

Specified by:
getDate in interface Clock
Returns:
The date.

toString

public String toString()
Overrides:
toString in class Object