public final class

ConstantClock

extends Object
implements Clock
java.lang.Object
   ↳ com.atlassian.jira.util.ConstantClock

Class Overview

Simple clock that returns a constant value given during construction. Useful for testing date related functions.

Summary

Public Constructors
ConstantClock(Date currentDate)
ConstantClock(long currentDate)
Public Methods
Date getCurrentDate()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.core.util.Clock

Public Constructors

public ConstantClock (Date currentDate)

public ConstantClock (long currentDate)

Public Methods

public Date getCurrentDate ()

public String toString ()