Serializable
, Comparable<PeriodField>
public enum PeriodField extends Enum<PeriodField>
Enum Constant | Description |
---|---|
DAY |
|
HOUR |
|
MILLISECOND |
|
MINUTE |
|
MONTH |
|
SECOND |
|
WEEK |
|
YEAR |
Modifier and Type | Method | Description |
---|---|---|
static PeriodField |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static PeriodField[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PeriodField YEAR
public static final PeriodField MONTH
public static final PeriodField WEEK
public static final PeriodField DAY
public static final PeriodField HOUR
public static final PeriodField MINUTE
public static final PeriodField SECOND
public static final PeriodField MILLISECOND
public static PeriodField[] values()
for (PeriodField c : PeriodField.values()) System.out.println(c);
public static PeriodField 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 © 2019. All rights reserved.