public final class Duration extends Object implements Comparable<Duration>, Serializable
Modifier and Type | Field and Description |
---|---|
static long |
DAY_IN_MILLIS |
static Pattern |
DURATION_EXPRESSION_REGEXP |
static long |
HOUR_IN_MILLIS |
static long |
MINUTE_IN_MILLIS |
static long |
SECOND_IN_MILLIS |
static long |
WEEK_IN_MILLIS |
static long |
YEAR_IN_MILLIS |
static Duration |
ZERO |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Duration other) |
static Duration |
days(long days) |
boolean |
equals(Object obj) |
long |
getMilliseconds() |
int |
hashCode() |
static Duration |
hours(long hours) |
static Duration |
milliseconds(long milliseconds) |
static Duration |
minutes(long minutes) |
static Duration |
parse(String text) |
static Duration |
seconds(long seconds) |
static Duration |
sum(Duration a,
Duration b) |
String |
toString() |
static Duration |
year(long year) |
public static final long SECOND_IN_MILLIS
public static final long MINUTE_IN_MILLIS
public static final long HOUR_IN_MILLIS
public static final long DAY_IN_MILLIS
public static final long WEEK_IN_MILLIS
public static final long YEAR_IN_MILLIS
public static final Pattern DURATION_EXPRESSION_REGEXP
public static Duration milliseconds(long milliseconds)
public long getMilliseconds()
public int compareTo(Duration other)
compareTo
in interface Comparable<Duration>
Copyright © 2019 Nu Echo Inc..