Package com.walkfares.calendar
Class OffsetDailyCalendar
java.lang.Object
com.walkfares.calendar.OffsetDailyCalendar
- All Implemented Interfaces:
Calendar
public class OffsetDailyCalendar extends Object implements Calendar
-
Constructor Summary
Constructors Constructor Description OffsetDailyCalendar()
OffsetDailyCalendar(String timezone, int dayoffset, int hour)
OffsetDailyCalendar(String code, String name)
OffsetDailyCalendar(String code, String name, String timezone, int hour)
OffsetDailyCalendar(String code, String name, String timezone, int dayoffset, int hour)
-
Method Summary
Modifier and Type Method Description UTCDate
align(UTCDate date)
UTCDate
alignBackwards(UTCDate date)
UTCDate
alignForwards(UTCDate date)
UTCDate
deAlign(UTCDate date)
Duration
getBasis()
String
getCode()
int
getDayOffset()
int
getHour()
List<UTCDate>
getIntervals(UTCDate from, int number)
List<UTCDate>
getIntervals(UTCDate from, UTCDate to)
String
getName()
String
getTimezone()
String
getType()
boolean
includes(UTCDate date)
UTCDate
nextInterval(UTCDate from)
UTCDate
prevInterval(UTCDate from)
void
setCode(String code)
OffsetDailyCalendar
setDayOffset(int dayOffset)
OffsetDailyCalendar
setHour(int hour)
void
setName(String name)
OffsetDailyCalendar
setTimezone(String timezone)
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, isIntraday, isSparse, move, newInstance, validate
-
Constructor Details
-
OffsetDailyCalendar
public OffsetDailyCalendar() -
OffsetDailyCalendar
-
OffsetDailyCalendar
-
OffsetDailyCalendar
-
OffsetDailyCalendar
-
-
Method Details
-
getTimezone
-
setTimezone
-
getDayOffset
public int getDayOffset() -
setDayOffset
-
getHour
public int getHour() -
setHour
-
setCode
-
setName
-
getCode
-
getName
-
getType
-
align
-
deAlign
-
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
-