com.atlassian.jira.util
Class CompositeClock

java.lang.Object
  extended by com.atlassian.jira.util.CompositeClock
All Implemented Interfaces:
com.atlassian.core.util.Clock

public class CompositeClock
extends Object
implements com.atlassian.core.util.Clock

Composite clock that returns answer from one of the clocks it builds upon, depending on the number of times it was called already.

Since:
v4.3

Constructor Summary
CompositeClock(com.atlassian.core.util.Clock initialClock)
           
 
Method Summary
 CompositeClock addClock(int startFromCall, com.atlassian.core.util.Clock clock)
           
 Date getCurrentDate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeClock

public CompositeClock(com.atlassian.core.util.Clock initialClock)
Method Detail

addClock

public CompositeClock addClock(int startFromCall,
                               com.atlassian.core.util.Clock clock)

getCurrentDate

public Date getCurrentDate()
Specified by:
getCurrentDate in interface com.atlassian.core.util.Clock


Copyright © 2002-2013 Atlassian. All Rights Reserved.