public class Holiday
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private java.util.GregorianCalendar |
date |
private java.lang.String |
holidayName |
| Constructor and Description |
|---|
Holiday(java.lang.String holidayName,
java.util.GregorianCalendar date)
Constructor for the Holiday object.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.GregorianCalendar |
getDate()
Gets the date of the holiday.
|
java.lang.String |
getFormattedDate()
Gets the formatted date of the holiday.
|
java.lang.String |
getHolidayName()
Gets the name of the holiday.
|
void |
setHolidayName(java.lang.String holidayName)
Sets the name of the holiday.
|
private java.util.GregorianCalendar date
private java.lang.String holidayName
public Holiday(java.lang.String holidayName,
java.util.GregorianCalendar date)
holidayName - the name of the holiday.date - the date of the holiday.public java.util.GregorianCalendar getDate()
public java.lang.String getFormattedDate()
public java.lang.String getHolidayName()
public void setHolidayName(java.lang.String holidayName)
holidayName - the name of the holiday.