|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.common.config.Interval
public class Interval
Implements a time interval, which is expressed in milliseconds. Intervals can be manipulated as long values but also translate to strings of the form
NNN{d|h|m|s}
where NNN is a number and the letter following denotes a time unit of
days, hours, minutes, or seconds, respectively. If the time unit is left off
the value is assumed to be milliseconds.
| Constructor Summary | |
|---|---|
Interval(long duration)
|
|
Interval(java.lang.String duration)
Creates an interval from a string. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
long |
longValue()
Return interval as millisecond value. |
boolean |
overInterval(long startMillis,
long endMillis)
Returns true if the start and end times are greater than the duration of this interval. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Interval(long duration)
public Interval(java.lang.String duration)
throws java.lang.NumberFormatException
java.lang.NumberFormatException| Method Detail |
|---|
public long longValue()
public boolean overInterval(long startMillis,
long endMillis)
startMillis - Start time in millisecondsendMillis - End time in milliseconds
public boolean equals(java.lang.Object o)
equals in class java.lang.ObjectObject.equals(java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||