Package com.walkfares.calendar.period
Interface RelativePeriodCode
- All Superinterfaces:
Comparable<PeriodCode>
,PeriodCode
- All Known Implementing Classes:
Day.RELATIVE
,DayAhead.RELATIVE
public interface RelativePeriodCode extends PeriodCode
-
Method Summary
Modifier and Type Method Description AbsolutePeriodCode
getAbsolutePeriodCode(int year, int period)
default AbsolutePeriodCode
getAbsolutePeriodCode(CurveDate curveDate)
int
getPeriod()
default boolean
isRelative()
RelativePeriodCode
next()
RelativePeriodCode
previous()
RelativePeriodCode
setPeriod(int period)
default RelativePeriodCode
setPeriod(int period, String timezone)
Methods inherited from interface com.walkfares.calendar.period.PeriodCode
compareTo, getCode, getHashCode, getType, getType, isFinancial, isFixed, isHybrid, isRelativeOnly, isValid
-
Method Details
-
setPeriod
-
setPeriod
-
getPeriod
int getPeriod() -
getAbsolutePeriodCode
-
getAbsolutePeriodCode
-
next
RelativePeriodCode next() -
previous
RelativePeriodCode previous() -
isRelative
default boolean isRelative()- Specified by:
isRelative
in interfacePeriodCode
-