@Immutable public class TimeValue extends Object
TimeUnit and a value.| Modifier and Type | Field and Description |
|---|---|
static TimeValue |
SEC1
Special instance representing 1 second
|
| Constructor and Description |
|---|
TimeValue(TimeUnit eTimeUnit,
long nDuration) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
long |
getAsDays() |
long |
getAsHours() |
long |
getAsMicros() |
long |
getAsMillis() |
long |
getAsMinutes() |
long |
getAsNanos() |
long |
getAsSeconds() |
long |
getDuration() |
TimeUnit |
getTimeUnit() |
int |
hashCode() |
String |
toString() |
public static final TimeValue SEC1
public long getDuration()
public long getAsNanos()
public long getAsMicros()
public long getAsMillis()
public long getAsSeconds()
public long getAsMinutes()
public long getAsHours()
public long getAsDays()
Copyright © 2014–2019 Philip Helger. All rights reserved.