Package org.exparity.hamcrest.date
Enum Months
- java.lang.Object
-
- java.lang.Enum<Months>
-
- org.exparity.hamcrest.date.Months
-
- All Implemented Interfaces:
Serializable,Comparable<Months>
@Deprecated public enum Months extends Enum<Months>
Deprecated.UseMonthenumerationEnumeration of months in a year- Author:
- Stewart Bissett
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APRDeprecated.APRILDeprecated.AUGDeprecated.AUGUSTDeprecated.DECDeprecated.DECEMBERDeprecated.FEBDeprecated.FEBRUARYDeprecated.JANDeprecated.JANUARYDeprecated.JULDeprecated.JULYDeprecated.JUNDeprecated.JUNEDeprecated.MARDeprecated.MARCHDeprecated.MAYDeprecated.NOVDeprecated.NOVEMBERDeprecated.OCTDeprecated.OCTOBERDeprecated.SEPDeprecated.SEPTEMBERDeprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intcalendarConstant()Deprecated.Stringdescribe()Deprecated.static MonthsfromCalendar(int calendarMonth)Deprecated.Factory method to create a Months instance from a java calendar month valueMonthmonth()Deprecated.static MonthsvalueOf(String name)Deprecated.Returns the enum constant of this type with the specified name.static Months[]values()Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
JAN
public static final Months JAN
Deprecated.
-
JANUARY
public static final Months JANUARY
Deprecated.
-
FEB
public static final Months FEB
Deprecated.
-
FEBRUARY
public static final Months FEBRUARY
Deprecated.
-
MAR
public static final Months MAR
Deprecated.
-
MARCH
public static final Months MARCH
Deprecated.
-
APR
public static final Months APR
Deprecated.
-
APRIL
public static final Months APRIL
Deprecated.
-
MAY
public static final Months MAY
Deprecated.
-
JUN
public static final Months JUN
Deprecated.
-
JUNE
public static final Months JUNE
Deprecated.
-
JUL
public static final Months JUL
Deprecated.
-
JULY
public static final Months JULY
Deprecated.
-
AUG
public static final Months AUG
Deprecated.
-
AUGUST
public static final Months AUGUST
Deprecated.
-
SEP
public static final Months SEP
Deprecated.
-
SEPTEMBER
public static final Months SEPTEMBER
Deprecated.
-
OCT
public static final Months OCT
Deprecated.
-
OCTOBER
public static final Months OCTOBER
Deprecated.
-
NOV
public static final Months NOV
Deprecated.
-
NOVEMBER
public static final Months NOVEMBER
Deprecated.
-
DEC
public static final Months DEC
Deprecated.
-
DECEMBER
public static final Months DECEMBER
Deprecated.
-
-
Method Detail
-
values
public static Months[] values()
Deprecated.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 (Months c : Months.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Months valueOf(String name)
Deprecated.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
-
fromCalendar
public static Months fromCalendar(int calendarMonth)
Deprecated.Factory method to create a Months instance from a java calendar month value
-
calendarConstant
public int calendarConstant()
Deprecated.
-
describe
public String describe()
Deprecated.
-
month
public Month month()
Deprecated.
-
-