Class DefaultTimeKeeper
- java.lang.Object
-
- org.opennms.netmgt.collection.support.DefaultTimeKeeper
-
- All Implemented Interfaces:
TimeKeeper
public class DefaultTimeKeeper extends java.lang.Object implements TimeKeeper
DefaultTimeKeeper class.
-
-
Constructor Summary
Constructors Constructor Description DefaultTimeKeeper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Date
getCurrentDate()
getCurrentDatelong
getCurrentTime()
getCurrentTimejava.util.TimeZone
getTimeZone()
-
-
-
Method Detail
-
getCurrentDate
public java.util.Date getCurrentDate()
getCurrentDate
- Specified by:
getCurrentDate
in interfaceTimeKeeper
- Returns:
- a
Date
object.
-
getCurrentTime
public long getCurrentTime()
getCurrentTime
- Specified by:
getCurrentTime
in interfaceTimeKeeper
- Returns:
- a long.
-
getTimeZone
public java.util.TimeZone getTimeZone()
- Specified by:
getTimeZone
in interfaceTimeKeeper
-
-