Enum PeriodHolder.Formatter
- java.lang.Object
-
- java.lang.Enum<PeriodHolder.Formatter>
-
- it.bancaditalia.oss.vtl.impl.types.data.date.PeriodHolder.Formatter
-
- All Implemented Interfaces:
Serializable
,Comparable<PeriodHolder.Formatter>
,Supplier<DateTimeFormatter>
- Enclosing class:
- PeriodHolder<I extends PeriodHolder<I>>
public static enum PeriodHolder.Formatter extends Enum<PeriodHolder.Formatter> implements Supplier<DateTimeFormatter>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DAY_OF_MONTH_PERIOD_FORMATTER
MONTH_PERIOD_FORMATTER
QUARTER_PERIOD_FORMATTER
SEMESTER_PERIOD_FORMATTER
WEEK_PERIOD_FORMATTER
YEAR_PERIOD_FORMATTER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
format(TemporalAccessor value)
DateTimeFormatter
get()
TemporalAccessor
parse(String value)
static PeriodHolder.Formatter
valueOf(String name)
Returns the enum constant of this type with the specified name.static PeriodHolder.Formatter[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
YEAR_PERIOD_FORMATTER
public static final PeriodHolder.Formatter YEAR_PERIOD_FORMATTER
-
SEMESTER_PERIOD_FORMATTER
public static final PeriodHolder.Formatter SEMESTER_PERIOD_FORMATTER
-
QUARTER_PERIOD_FORMATTER
public static final PeriodHolder.Formatter QUARTER_PERIOD_FORMATTER
-
MONTH_PERIOD_FORMATTER
public static final PeriodHolder.Formatter MONTH_PERIOD_FORMATTER
-
WEEK_PERIOD_FORMATTER
public static final PeriodHolder.Formatter WEEK_PERIOD_FORMATTER
-
DAY_OF_MONTH_PERIOD_FORMATTER
public static final PeriodHolder.Formatter DAY_OF_MONTH_PERIOD_FORMATTER
-
-
Method Detail
-
values
public static PeriodHolder.Formatter[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PeriodHolder.Formatter c : PeriodHolder.Formatter.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PeriodHolder.Formatter valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
format
public String format(TemporalAccessor value)
-
parse
public TemporalAccessor parse(String value)
-
get
public DateTimeFormatter get()
- Specified by:
get
in interfaceSupplier<DateTimeFormatter>
-
-