Package com.walkfares.calendar
Interface Calendar
- All Known Implementing Classes:
BlockCalendar
,BusinessCalendar
,CombinedHolidayCalendar
,DailyCalendar
,HolidayCalendar
,HourBlockCalendar
,IntradayCalendar
,MonthlyCalendar
,OffsetDailyCalendar
,SparseCalendar
,WeeklyCalendar
public interface Calendar
-
Method Summary
Modifier and Type Method Description UTCDate
alignBackwards(UTCDate date)
UTCDate
alignForwards(UTCDate date)
default UTCDate
endOfPeriod(Calendar from, UTCDate start)
default int
ensureIndex(UTCDate date)
default 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)
default boolean
isIntraday()
default boolean
isSparse()
default UTCDate
move(UTCDate start, int days)
default Calendar
newInstance()
UTCDate
nextInterval(UTCDate from)
UTCDate
prevInterval(UTCDate from)
default void
setCode(String code)
default void
setName(String name)
default void
validate()
-
Method Details
-
getCode
String getCode() -
getName
String getName() -
getType
String getType() -
setCode
-
setName
-
getIntervals
-
getIntervals
-
nextInterval
-
prevInterval
-
alignBackwards
-
alignForwards
-
includes
-
newInstance
-
ensureIndex
- Parameters:
date
-- Returns:
- -1 = doesn't align, 0 = standard align, 1 = insert align
-
getBasis
-
endOfPeriod
-
move
-
isSparse
default boolean isSparse() -
validate
default void validate() -
isIntraday
default boolean isIntraday()
-