| Modifier and Type | Method and Description |
|---|---|
Quarter |
getNext() |
int |
getNumber() |
Quarter |
getPrevious() |
static Quarter |
getQuarter(java.util.Date date) |
static Quarter |
getQuarter(int number) |
java.lang.String |
toString() |
static Quarter |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Quarter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Quarter FIRST
public static final Quarter SECOND
public static final Quarter THIRD
public static final Quarter FOURTH
public static Quarter[] values()
for (Quarter c : Quarter.values()) System.out.println(c);
public static Quarter valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static Quarter getQuarter(java.util.Date date)
public static Quarter getQuarter(int number)
public Quarter getNext()
public int getNumber()
public Quarter getPrevious()
public java.lang.String toString()
toString in class java.lang.Enum<Quarter>