KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > prevayler > Clock


1 //Prevayler(TM) - The Free-Software Prevalence Layer.
2
//Copyright (C) 2001-2003 Klaus Wuestefeld
3
//This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
4

5 package org.prevayler;
6
7 /** Tells the time.
8  * @see Prevayler
9  */

10 public interface Clock {
11
12     /** Tells the time.
13      * @return A Date greater or equal to the one returned by the last call to this method. If the time is the same as the last call, the SAME Date object is returned rather than a new, equal one.
14      */

15     public java.util.Date JavaDoc time();
16
17 }
18
Popular Tags