|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.scaleoutsoftware.soss.client.TimeSpan
public final class TimeSpan
An object of this class represents a time interval.
| Field Summary | |
|---|---|
static TimeSpan |
INFINITE_TIMEOUT
|
| Method Summary | |
|---|---|
boolean |
between(TimeSpan first,
TimeSpan second)
|
boolean |
equals(Object o)
|
static TimeSpan |
fromMilliseconds(long millis)
Create TimeSpan from number of milliseconds |
static TimeSpan |
fromMinutes(long minutes)
Create TimeSpan from number of minutes |
static TimeSpan |
fromSeconds(long seconds)
Create TimeSpan from number of seconds |
int |
getSeconds()
Gets the time span in seconds |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final TimeSpan INFINITE_TIMEOUT
| Method Detail |
|---|
public int getSeconds()
public boolean between(TimeSpan first,
TimeSpan second)
first - first time spansecond - second time span
true if length of this timespan is between first and second timespanpublic static TimeSpan fromSeconds(long seconds)
seconds - time span in seconds
public static TimeSpan fromMinutes(long minutes)
minutes - time span in minutes
public static TimeSpan fromMilliseconds(long millis)
millis - time span in milliseconds
public boolean equals(Object o)
equals in class Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||