public enum TimeFormatType extends Enum<TimeFormatType>
| Enum Constant and Description |
|---|
AUTO |
MICROSECOND |
MILLISECOND |
NANOSECOND |
SECOND |
| Modifier and Type | Method and Description |
|---|---|
double |
convert(double value) |
long |
convert(long value) |
static TimeFormatType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimeFormatType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimeFormatType NANOSECOND
public static final TimeFormatType MICROSECOND
public static final TimeFormatType MILLISECOND
public static final TimeFormatType SECOND
public static final TimeFormatType AUTO
public static TimeFormatType[] values()
for (TimeFormatType c : TimeFormatType.values()) System.out.println(c);
public static TimeFormatType 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 double convert(double value)
public long convert(long value)
Copyright © 2019. All rights reserved.