public final class TimeSpan
extends java.lang.Object
implements java.io.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(java.lang.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 millisecondspublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object