net.sf.nachocalendar.holidays
Class DefaultHoliDay
java.lang.Objectnet.sf.nachocalendar.holidays.DefaultHoliDay
- HoliDay, Serializable
public class DefaultHoliDay
extends java.lang.Object
implements Serializable, HoliDay
Default implementation for holidays.
Date | getDate()- Getter for property date.
|
String | getDescription()- Getter for property description.
|
String | getName()- Getter for property name.
|
boolean | isRecurrent()- Getter for property recurrent.
|
void | setDate(Date date)- Setter for property date.
|
void | setDescription(String description)- Setter for property description.
|
void | setName(String name)- Setter for property name.
|
void | setRecurrent(boolean recurrent)- Setter for property recurrent.
|
String | toString()- Returns a string representation of the object.
|
DefaultHoliDay
public DefaultHoliDay()
Creates a new instance of HoliDay.
getDate
public Date getDate()
Getter for property date.
getDescription
public String getDescription()
Getter for property description.
- Value of property description.
getName
public String getName()
Getter for property name.
isRecurrent
public boolean isRecurrent()
Getter for property recurrent.
- Value of property recurrent.
setDate
public void setDate(Date date)
Setter for property date.
date - New value of property date.
setDescription
public void setDescription(String description)
Setter for property description.
description - New value of property description.
setName
public void setName(String name)
Setter for property name.
name - New value of property name.
setRecurrent
public void setRecurrent(boolean recurrent)
Setter for property recurrent.
recurrent - New value of property recurrent.
toString
public String toString()
Returns a string representation of the object. In general, the
toString method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The
toString method for class
Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `
@', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
- a string representation of the object.