public enum DurationFormat extends Enum<DurationFormat>
| Enum Constant and Description |
|---|
FLOAT_MSEC |
FLOAT_SECONDS |
INTEGER_MSEC
Value will be parsed and serialized as a number of milliseconds
|
INTEGER_SECONDS
Value will be parsed and serialized as a number of seconds
|
ISO
Value will be parsed and serialized as ISO
|
| Modifier and Type | Method and Description |
|---|---|
static DurationFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DurationFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DurationFormat ISO
public static final DurationFormat INTEGER_SECONDS
public static final DurationFormat INTEGER_MSEC
public static final DurationFormat FLOAT_SECONDS
public static final DurationFormat FLOAT_MSEC
public static DurationFormat[] values()
for (DurationFormat c : DurationFormat.values()) System.out.println(c);
public static DurationFormat 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 nullCopyright © 2018. All rights reserved.