Package com.walkfares.calendar.period
Interface AbsolutePeriodCode
- All Superinterfaces:
Comparable<PeriodCode>
,PeriodCode
- All Known Subinterfaces:
IntradayAbsolutePeriodCode
- All Known Implementing Classes:
Day.ABSOLUTE
,DayAhead.ABSOLUTE
public interface AbsolutePeriodCode extends PeriodCode
-
Method Summary
Modifier and Type Method Description UTCDate
getEnd()
default PeriodCode
getPeriodCode(ZonedDateTime zdt)
RelativePeriodCode
getRelativePeriodCode(int period)
default RelativePeriodCode
getRelativePeriodCode(CurveDate curveDate)
UTCDate
getStart()
default boolean
isRelative()
AbsolutePeriodCode
next()
default AbsolutePeriodCode
next(CurveDate curveDate)
AbsolutePeriodCode
previous()
default AbsolutePeriodCode
previous(CurveDate curveDate)
AbsolutePeriodCode
setPeriod(int year, int period, int... periods)
default AbsolutePeriodCode
setPeriod(int year, int month, String timezone, int... periods)
default List<AbsolutePeriodCode>
toMonths()
AbsolutePeriodCode
withDate(UTCDate date)
Methods inherited from interface com.walkfares.calendar.period.PeriodCode
compareTo, getCode, getHashCode, getType, getType, isFinancial, isFixed, isHybrid, isRelativeOnly, isValid
-
Method Details
-
setPeriod
-
setPeriod
-
getRelativePeriodCode
-
getRelativePeriodCode
-
getStart
UTCDate getStart() -
getEnd
UTCDate getEnd() -
next
AbsolutePeriodCode next() -
previous
AbsolutePeriodCode previous() -
withDate
-
next
-
previous
-
isRelative
default boolean isRelative()- Specified by:
isRelative
in interfacePeriodCode
-
toMonths
-
getPeriodCode
-