public class Duration extends Object implements Comparable<Duration>, Serializable
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Duration other) |
static Duration |
days(long count) |
boolean |
equals(Object obj) |
long |
getQuantity() |
TimeUnit |
getUnit() |
int |
hashCode() |
static Duration |
hours(long count) |
static Duration |
microseconds(long count) |
static Duration |
milliseconds(long count) |
static Duration |
minutes(long count) |
static Duration |
nanoseconds(long count) |
static Duration |
parse(String duration) |
static Duration |
seconds(long count) |
long |
toDays() |
long |
toHours() |
long |
toMicroseconds() |
long |
toMilliseconds() |
long |
toMinutes() |
long |
toNanoseconds() |
long |
toSeconds() |
String |
toString() |
public static Duration nanoseconds(long count)
public static Duration microseconds(long count)
public static Duration milliseconds(long count)
public static Duration seconds(long count)
public static Duration minutes(long count)
public static Duration hours(long count)
public static Duration days(long count)
public long getQuantity()
public TimeUnit getUnit()
public long toNanoseconds()
public long toMicroseconds()
public long toMilliseconds()
public long toSeconds()
public long toMinutes()
public long toHours()
public long toDays()
public int compareTo(Duration other)
compareTo
in interface Comparable<Duration>
Copyright © 2019. All rights reserved.