br.org.agilcoop.cursos.testes.unidade.timer
Class Timer

java.lang.Object
  extended by br.org.agilcoop.cursos.testes.unidade.timer.Timer

public class Timer
extends java.lang.Object


Nested Class Summary
static class Timer.TimerState
           
 
Constructor Summary
Timer()
           
Timer(int hours, int minutes, int seconds)
           
 
Method Summary
 void addEvent(Event event)
           
 void adjust(int hours, int minutes, int seconds)
           
 long elapsed()
           
 java.lang.String elapsedFormatted()
           
 boolean finished()
           
 long metodoDaRefatoracao(int hours, int minutes, int seconds)
           
 void pause()
           
 void removeEvent(Event event)
           
 boolean running()
           
 void start()
           
 Timer.TimerState state()
           
 void stop()
           
 boolean stopped()
           
static java.lang.String timerDefaultFormat(int totalOfSeconds)
           
 long total()
           
 java.lang.String totalFormatted()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Timer

public Timer(int hours,
             int minutes,
             int seconds)

Timer

public Timer()
Method Detail

adjust

public void adjust(int hours,
                   int minutes,
                   int seconds)

metodoDaRefatoracao

public long metodoDaRefatoracao(int hours,
                                int minutes,
                                int seconds)

start

public void start()

pause

public void pause()

stop

public void stop()

total

public long total()

elapsed

public long elapsed()

elapsedFormatted

public java.lang.String elapsedFormatted()

totalFormatted

public java.lang.String totalFormatted()

timerDefaultFormat

public static java.lang.String timerDefaultFormat(int totalOfSeconds)

state

public Timer.TimerState state()

running

public boolean running()

stopped

public boolean stopped()

finished

public boolean finished()

addEvent

public void addEvent(Event event)

removeEvent

public void removeEvent(Event event)


Copyright © 2009. All Rights Reserved.