com.google.code.tempusfugit.temporal
Class MovableClock

java.lang.Object
  extended by com.google.code.tempusfugit.temporal.MovableClock
All Implemented Interfaces:
Factory<Date>, Clock

public final class MovableClock
extends Object
implements Clock


Constructor Summary
MovableClock()
           
MovableClock(Date date)
           
 
Method Summary
 Date create()
           
 void incrementBy(Duration time)
           
 void setTime(Duration time)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MovableClock

public MovableClock()

MovableClock

public MovableClock(Date date)
Method Detail

create

public Date create()
Specified by:
create in interface Factory<Date>

setTime

public void setTime(Duration time)

incrementBy

public void incrementBy(Duration time)


Copyright © 2009-2012 tempus-fugit committers. All Rights Reserved.