Package com.walkfares.calendar
Class WeeklyCalendar
java.lang.Object
com.walkfares.calendar.WeeklyCalendar
- All Implemented Interfaces:
Calendar
public class WeeklyCalendar extends Object implements Calendar
-
Constructor Summary
Constructors Constructor Description WeeklyCalendar()
WeeklyCalendar(int dow)
-
Method Summary
Modifier and Type Method Description UTCDate
align(UTCDate d)
UTCDate
alignBackwards(UTCDate date)
UTCDate
alignForwards(UTCDate date)
String
getCode()
int
getDow()
List<UTCDate>
getIntervals(UTCDate from, int number)
List<UTCDate>
getIntervals(UTCDate from, UTCDate to)
String
getName()
String
getType()
boolean
includes(UTCDate date)
UTCDate
nextInterval(UTCDate from)
UTCDate
prevInterval(UTCDate from)
void
setCode(String code)
WeeklyCalendar
setHolidayCalendar(HolidayCalendar holidayCalendar)
WeeklyCalendar
setRollBackwards(boolean rollBackwards)
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.walkfares.calendar.Calendar
endOfPeriod, ensureIndex, getBasis, isIntraday, isSparse, move, newInstance, setName, validate
-
Constructor Details
-
WeeklyCalendar
public WeeklyCalendar() -
WeeklyCalendar
public WeeklyCalendar(int dow)
-
-
Method Details
-
getDow
public int getDow() -
setHolidayCalendar
-
setRollBackwards
-
getCode
-
setCode
-
getName
-
getType
-
align
-
getIntervals
- Specified by:
getIntervals
in interfaceCalendar
-
getIntervals
- Specified by:
getIntervals
in interfaceCalendar
-
nextInterval
- Specified by:
nextInterval
in interfaceCalendar
-
prevInterval
- Specified by:
prevInterval
in interfaceCalendar
-
alignBackwards
- Specified by:
alignBackwards
in interfaceCalendar
-
alignForwards
- Specified by:
alignForwards
in interfaceCalendar
-
includes
-