org.pentaho.reporting.engine.classic.core.modules.gui.base.date
Class EasterSundayRule

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.modules.gui.base.date.AnnualDateRule
      extended by org.pentaho.reporting.engine.classic.core.modules.gui.base.date.EasterSundayRule
All Implemented Interfaces:
Cloneable

Deprecated.

public class EasterSundayRule
extends AnnualDateRule

An annual date rule for Easter (Sunday). The algorithm used here was obtained from a Calendar FAQ which can be found at:

http://www.tondering.dk/claus/calendar.html.

It is based on an algorithm by Oudin (1940) and quoted in "Explanatory Supplement to the Astronomical Almanac", P. Kenneth Seidelmann, editor.

Author:
David Gilbert

Constructor Summary
EasterSundayRule()
          Deprecated. Default constructor.
 
Method Summary
 SerialDate getDate(int year)
          Deprecated. Returns the date of Easter Sunday for the given year.
 
Methods inherited from class org.pentaho.reporting.engine.classic.core.modules.gui.base.date.AnnualDateRule
clone
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EasterSundayRule

public EasterSundayRule()
Deprecated. 
Default constructor.

Method Detail

getDate

public SerialDate getDate(int year)
Deprecated. 
Returns the date of Easter Sunday for the given year. See the class description for the source of the algorithm.

This method supports the AnnualDateRule interface.

Specified by:
getDate in class AnnualDateRule
Parameters:
year - the year to check.
Returns:
the date of Easter Sunday for the given year.