public enum WeekOfMonth extends Enum<WeekOfMonth> implements SimpleDatatype<Integer>
| Enum Constant and Description |
|---|
FIRST
The according month.
|
FOURTH
The according month.
|
LAST
The according month.
|
SECOND
The according month.
|
THIRD
The according month.
|
| Modifier and Type | Field and Description |
|---|---|
private String |
title |
private Integer |
value |
| Modifier and Type | Method and Description |
|---|---|
static WeekOfMonth |
fromValue(Integer value)
This method gets the
WeekOfMonth for the given value. |
Integer |
getValue()
This method returns the raw value of this datatype.
|
String |
toString()
|
static WeekOfMonth |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WeekOfMonth[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WeekOfMonth FIRST
public static final WeekOfMonth SECOND
public static final WeekOfMonth THIRD
public static final WeekOfMonth FOURTH
public static final WeekOfMonth LAST
public static WeekOfMonth[] values()
for (WeekOfMonth c : WeekOfMonth.values()) System.out.println(c);
public static WeekOfMonth 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 Integer getValue()
SimpleDatatypeString
, Character, Boolean, any type of Number, any type of java.time.LocalDate, etc.).getValue in interface AttributeReadValue<Integer>getValue in interface SimpleDatatype<Integer>public String toString()
DatatypeString representation of this Datatype. While the general contract of
Object.toString() is very weak and mainly used for debugging, the contract here is very strong. The
returned String has to be suitable for end-users and official output to any kind of sink. NlsMessage for
this purpose and implement NlsObject if you want to support I18N/L10N.public static WeekOfMonth fromValue(Integer value)
WeekOfMonth for the given value.value - is the value of the requested WeekOfMonth.WeekOfMonth or null if no such WeekOfMonth exists.Copyright © 2001–2016 mmm-Team. All rights reserved.