Package org.jfree.date
Class AnnualDateRule
java.lang.Object
org.jfree.date.AnnualDateRule
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
DayAndMonthRule
,DayOfWeekInMonthRule
,EasterSundayRule
,RelativeDayOfWeekRule
The base class for all 'annual' date rules: that is, rules for generating
one date for any given year.
One example is Easter Sunday (which can be calculated using published algorithms).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Returns a clone of the rule.abstract SerialDate
getDate
(int year) Returns the date for this rule, given the year.
-
Constructor Details
-
AnnualDateRule
protected AnnualDateRule()Default constructor.
-
-
Method Details
-
getDate
Returns the date for this rule, given the year.- Parameters:
year
- the year (1900 <= year <= 9999).- Returns:
- the date for this rule, given the year.
-
clone
Returns a clone of the rule.You should refer to the documentation of the clone() method in each subclass for exact details.
- Overrides:
clone
in classObject
- Returns:
- a clone of the rule.
- Throws:
CloneNotSupportedException
- if the rule is not clonable.
-