Module org.holiday.calendar.western
Package org.holiday.calendar.observance
Class CompositeObservance
java.lang.Object
org.holiday.calendar.observance.AbstractObservance
org.holiday.calendar.observance.CompositeObservance
- Direct Known Subclasses:
AscensionDay,AshWednesday,CorpusChristi,EasterMonday,GoodFriday,PalmSunday,ShroveTuesday,WhitMonday,WhitSunday
Abstract base class for observances that are computed relative to another
Observance (the base). Year validity is delegated to the base.- Author:
- Dave Joyce
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisValidYear(int year) Determine whether this observance applies in the given year.Methods inherited from class org.holiday.calendar.observance.AbstractObservance
apply, computeDate, test
-
Field Details
-
base
-
-
Constructor Details
-
CompositeObservance
-
-
Method Details
-
isValidYear
protected boolean isValidYear(int year) Description copied from class:AbstractObservanceDetermine whether this observance applies in the given year. Defaults totrue(all years are valid).- Overrides:
isValidYearin classAbstractObservance- Parameters:
year- the year to test- Returns:
trueif this observance applies
-