public static enum Unit.Duration extends Enum<Unit.Duration>
| Enum Constant and Description |
|---|
DAY |
HOUR |
MINUTE |
MS |
NS |
SECOND |
US |
WEEK |
YEAR |
| Modifier and Type | Method and Description |
|---|---|
long |
getNanos() |
static Unit.Duration |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Unit.Duration |
valueOfSuffix(String spec) |
static Unit.Duration[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Unit.Duration SECOND
public static final Unit.Duration MS
public static final Unit.Duration US
public static final Unit.Duration NS
public static final Unit.Duration MINUTE
public static final Unit.Duration HOUR
public static final Unit.Duration DAY
public static final Unit.Duration WEEK
public static final Unit.Duration YEAR
public static Unit.Duration[] values()
for (Unit.Duration c : Unit.Duration.values()) System.out.println(c);
public static Unit.Duration valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static Unit.Duration valueOfSuffix(String spec)
public long getNanos()
Copyright © 2017. All rights reserved.