public final class TimeSpan extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static TimeSpan |
INFINITE_TIMEOUT |
| Modifier and Type | Method and Description |
|---|---|
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
|
public static final TimeSpan INFINITE_TIMEOUT
public int getSeconds()
public boolean between(TimeSpan first, TimeSpan second)
first - first time spansecond - second time spantrue if length of this timespan is between first and second timespanpublic static TimeSpan fromSeconds(long seconds)
seconds - time span in secondspublic static TimeSpan fromMinutes(long minutes)
minutes - time span in minutespublic static TimeSpan fromMilliseconds(long millis)
millis - time span in millisecondsCopyright (C) 2007-2014 ScaleOut Software, Inc.