Package com.walkfares.calendar
Class DailyCalendar
java.lang.Object
com.walkfares.calendar.DailyCalendar
- All Implemented Interfaces:
Calendar
- Direct Known Subclasses:
HolidayCalendar
public class DailyCalendar extends Object implements Calendar
-
Constructor Summary
Constructors Constructor Description DailyCalendar()
-
Method Summary
Modifier and Type Method Description UTCDate
align(UTCDate date)
UTCDate
alignBackwards(UTCDate date)
UTCDate
alignForwards(UTCDate date)
boolean
equals(Object obj)
Duration
getBasis()
String
getCode()
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)
void
setName(String name)
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.walkfares.calendar.Calendar
endOfPeriod, ensureIndex, isIntraday, isSparse, move, newInstance, validate
-
Constructor Details
-
DailyCalendar
public DailyCalendar()
-
-
Method Details
-
getType
-
getCode
-
setCode
-
getName
-
setName
-
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
-
getBasis
-
equals
-