public static enum DateTimeTemplate.Field extends Enum<DateTimeTemplate.Field>
As such, this is parallel to Joda-time's DateTimeFieldType, but with the fields mapped to
our simpler DateTimeTemplate value holder.
| Enum Constant and Description |
|---|
DAY |
HOUR |
MINUTE |
MONTH |
SECOND |
YEAR |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
get(DateTimeTemplate dateTime) |
int |
getMaximumValue() |
int |
getMinimumValue() |
abstract void |
set(DateTimeTemplate dateTime,
int value) |
static DateTimeTemplate.Field |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateTimeTemplate.Field[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateTimeTemplate.Field YEAR
public static final DateTimeTemplate.Field MONTH
public static final DateTimeTemplate.Field DAY
public static final DateTimeTemplate.Field HOUR
public static final DateTimeTemplate.Field MINUTE
public static final DateTimeTemplate.Field SECOND
public static DateTimeTemplate.Field[] values()
for (DateTimeTemplate.Field c : DateTimeTemplate.Field.values()) System.out.println(c);
public static DateTimeTemplate.Field 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 abstract int get(DateTimeTemplate dateTime)
public abstract void set(DateTimeTemplate dateTime, int value)
public int getMinimumValue()
public int getMaximumValue()
Copyright © 2019 Atlassian. All rights reserved.