public enum TimePeriodType extends Enum<TimePeriodType>
Enum Constant and Description |
---|
DAY
A day.
|
HOUR
Hour.
|
MILLISECOND
Millisecond.
|
MINUTE
Minute.
|
MONTH
Month.
|
QUARTER
Qarter of a year.
|
SECOND
Second.
|
SIMPLE
A simple (irregular) time period.
|
WEEK
Week.
|
YEAR
Year.
|
Modifier and Type | Method and Description |
---|---|
static TimePeriodType |
forName(String name) |
String |
getName() |
static TimePeriodType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimePeriodType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimePeriodType MILLISECOND
public static final TimePeriodType SECOND
public static final TimePeriodType MINUTE
public static final TimePeriodType HOUR
public static final TimePeriodType DAY
public static final TimePeriodType WEEK
public static final TimePeriodType MONTH
public static final TimePeriodType QUARTER
public static final TimePeriodType YEAR
public static final TimePeriodType SIMPLE
public static TimePeriodType[] values()
for (TimePeriodType c : TimePeriodType.values()) System.out.println(c);
public static TimePeriodType 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 getName()
public static TimePeriodType forName(String name)
name
- A plot type.null
.Copyright © 2004–2022 XWiki. All rights reserved.