public static enum TimeUtils.NanosPart extends Enum<TimeUtils.NanosPart>
| Enum Constant and Description |
|---|
DAY
* Number of nanoseconds in a day.
|
HOUR
Number of nanoseconds in a hour.
|
MICROSECOND
Number of nanoseconds in a microsecond.
|
MILLISECOND
Number of nanoseconds in a millisecond.
|
MINUTE
Number of nanoseconds in a minute.
|
NANO_SECOND
Number of nanoseconds.
|
SECOND
Number of nanoseconds in a second.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getNanos() |
String |
getUnit() |
static TimeUtils.NanosPart |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimeUtils.NanosPart[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimeUtils.NanosPart DAY
public static final TimeUtils.NanosPart HOUR
public static final TimeUtils.NanosPart MINUTE
public static final TimeUtils.NanosPart SECOND
public static final TimeUtils.NanosPart MILLISECOND
public static final TimeUtils.NanosPart MICROSECOND
public static final TimeUtils.NanosPart NANO_SECOND
public static TimeUtils.NanosPart[] values()
for (TimeUtils.NanosPart c : TimeUtils.NanosPart.values()) System.out.println(c);
public static TimeUtils.NanosPart 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 String getUnit()
public long getNanos()
Copyright © 2019–2025 Teslanet.nl. All rights reserved.