Class ConstantTimeKeeper
- java.lang.Object
-
- org.opennms.netmgt.collection.support.ConstantTimeKeeper
-
- All Implemented Interfaces:
TimeKeeper
public class ConstantTimeKeeper extends Object implements TimeKeeper
The Class ConstantTimeKeeper.- Author:
- Alejandro Galue
-
-
Constructor Summary
Constructors Constructor Description ConstantTimeKeeper(Date timestamp)
Instantiates a new constant time keeper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
getCurrentDate()
long
getCurrentTime()
TimeZone
getTimeZone()
-
-
-
Constructor Detail
-
ConstantTimeKeeper
public ConstantTimeKeeper(Date timestamp)
Instantiates a new constant time keeper.- Parameters:
timestamp
- the timestamp
-
-
Method Detail
-
getCurrentTime
public long getCurrentTime()
- Specified by:
getCurrentTime
in interfaceTimeKeeper
-
getCurrentDate
public Date getCurrentDate()
- Specified by:
getCurrentDate
in interfaceTimeKeeper
-
getTimeZone
public TimeZone getTimeZone()
- Specified by:
getTimeZone
in interfaceTimeKeeper
-
-