de.jaret.util.date.holidayenumerator
Class HolidayEnumeratorBase.NamedDateImpl

java.lang.Object
  extended by de.jaret.util.date.holidayenumerator.HolidayEnumeratorBase.NamedDateImpl
All Implemented Interfaces:
NamedDate, Comparable<NamedDate>
Enclosing class:
HolidayEnumeratorBase

public class HolidayEnumeratorBase.NamedDateImpl
extends Object
implements NamedDate, Comparable<NamedDate>

Implementation of the NamedDate for use with holiday enumerators.

Version:
$Id: HolidayEnumeratorBase.java 297 2007-03-12 21:38:00Z olk $
Author:
Peter Kliem

Constructor Summary
HolidayEnumeratorBase.NamedDateImpl(Date date, String name, boolean holiday)
           
 
Method Summary
 int compareTo(NamedDate date)
          
 boolean equals(Object obj)
          
 Date getDate()
          Retrieve the date.
 String getName()
          Retrive the name of the date.
 int hashCode()
          
 boolean isHoliday()
          Return whether the day is marked as a holiday.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HolidayEnumeratorBase.NamedDateImpl

public HolidayEnumeratorBase.NamedDateImpl(Date date,
                                           String name,
                                           boolean holiday)
Method Detail

getName

public String getName()
Retrive the name of the date.

Specified by:
getName in interface NamedDate
Returns:
name of the date

getDate

public Date getDate()
Retrieve the date.

Specified by:
getDate in interface NamedDate
Returns:
date

isHoliday

public boolean isHoliday()
Return whether the day is marked as a holiday.

Specified by:
isHoliday in interface NamedDate
Returns:
tre for holiday

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

toString

public String toString()

Overrides:
toString in class Object

compareTo

public int compareTo(NamedDate date)

Specified by:
compareTo in interface Comparable<NamedDate>


Copyright © 2013. All Rights Reserved.