Package com.walkfares.calendar
Class MonthlyCalendar
java.lang.Object
com.walkfares.calendar.MonthlyCalendar
- All Implemented Interfaces:
Calendar
public class MonthlyCalendar extends Object implements Calendar
-
Constructor Summary
Constructors Constructor Description MonthlyCalendar()
MonthlyCalendar(int period)
MonthlyCalendar(String code, String name)
MonthlyCalendar(String code, String name, int period)
-
Method Summary
Modifier and Type Method Description UTCDate
alignBackwards(UTCDate date)
UTCDate
alignForwards(UTCDate date)
boolean
equals(Object obj)
String
getCode()
List<UTCDate>
getIntervals(UTCDate from, int number)
List<UTCDate>
getIntervals(UTCDate from, UTCDate to)
String
getName()
int
getPeriod()
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, getBasis, isIntraday, isSparse, move, newInstance, validate
-
Constructor Details
-
MonthlyCalendar
public MonthlyCalendar() -
MonthlyCalendar
-
MonthlyCalendar
-
MonthlyCalendar
public MonthlyCalendar(int period)
-
-
Method Details
-
getCode
-
setCode
-
getName
-
getType
-
setName
-
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
-
getPeriod
public int getPeriod() -
equals
-