|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectUtils.TimePassed
public class TimePassed
A class to check wether a set amount of time has passed.
Constructor Summary | |
---|---|
TimePassed(int num,
java.util.concurrent.TimeUnit unit)
Defcault constructor. |
Method Summary | |
---|---|
boolean |
hasPassed()
Check to see if the required amount of time has passed. |
void |
reset()
Reset the timer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimePassed(int num, java.util.concurrent.TimeUnit unit)
num
- The number of time units that should pass between checkpoint
writes.unit
- The time unitMethod Detail |
---|
public boolean hasPassed()
public void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |