java.lang.Object
org.holiday.calendar.AbstractHolidayCalendarService
- All Implemented Interfaces:
HolidayCalendarService
public abstract class AbstractHolidayCalendarService
extends Object
implements HolidayCalendarService
Abstract base class for
HolidayCalendarService implementations,
providing the identity behavior common to all concrete service classes.- Author:
- Dave Joyce
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCode()Get the short code identifier for the holiday calendar provided by this service.Get the human-readable name of the region for this holiday calendar.booleanisProvided(String code) Determine if this service provides theHolidayCalendarfor the specified code.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.holiday.calendar.HolidayCalendarService
dataValidThrough, getHolidayCalendar
-
Constructor Details
-
AbstractHolidayCalendarService
-
-
Method Details
-
isProvided
Description copied from interface:HolidayCalendarServiceDetermine if this service provides theHolidayCalendarfor the specified code.- Specified by:
isProvidedin interfaceHolidayCalendarService- Parameters:
code- short code identifier of desired holiday calendar- Returns:
- true if this service provides the holiday calendar for the given code, false otherwise
-
getCode
Description copied from interface:HolidayCalendarServiceGet the short code identifier for the holiday calendar provided by this service. Returnsnullif not implemented.- Specified by:
getCodein interfaceHolidayCalendarService- Returns:
- short code identifier, e.g. "US", "UK"
-
getRegion
Description copied from interface:HolidayCalendarServiceGet the human-readable name of the region for this holiday calendar. Returnsnullif not implemented.- Specified by:
getRegionin interfaceHolidayCalendarService- Returns:
- region name, e.g. "United States National Holidays"
-