|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.calendar.Holiday
public class Holiday
represents a holiday
HolidayCalendar,
Serialized Form| Constructor Summary | |
|---|---|
Holiday(String name,
Date date)
calls this(name, date, true, null) |
|
Holiday(String name,
Date date,
boolean isPublic,
Locale locale)
|
|
| Method Summary | |
|---|---|
int |
compareTo(Holiday h)
based on the date |
boolean |
equals(Object obj)
based on both, name and date |
Date |
getDate()
the date is stored as the beginning of the corresponding day |
Locale |
getLocale()
returns the locale associated with this holiday. |
String |
getName()
|
int |
hashCode()
|
boolean |
isPublic()
determines whether this holiday is considered to be a so-called bank holiday |
String |
toString()
returns the localized date along with the name |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Holiday(String name,
Date date)
this(name, date, true, null)
public Holiday(String name,
Date date,
boolean isPublic,
Locale locale)
| Method Detail |
|---|
public String getName()
public Date getDate()
CalendarUtils.dayBegin(Date)public boolean isPublic()
public Locale getLocale()
public int compareTo(Holiday h)
compareTo in interface Comparable<Holiday>public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||