Class DayAhead.RELATIVE
java.lang.Object
com.walkfares.calendar.period.type.DayAhead.RELATIVE
- All Implemented Interfaces:
FixedPeriodCode,PeriodCode,RelativePeriodCode,Comparable<PeriodCode>
- Enclosing class:
- DayAhead
public static class DayAhead.RELATIVE extends Object implements RelativePeriodCode, FixedPeriodCode
-
Constructor Summary
Constructors Constructor Description RELATIVE(int period) -
Method Summary
Modifier and Type Method Description AbsolutePeriodCodegetAbsolutePeriodCode(int year, int period)StringgetCode()UTCDategetEnd(CurveDate curveDate)UTCDategetExpiry(CurveDate curveDate)intgetPeriod()UTCDategetStart(CurveDate curveDate)PeriodCodeTypegetType()booleanisRelative()booleanisRelativeOnly()RelativePeriodCodenext()RelativePeriodCodeprevious()RelativePeriodCodesetPeriod(int period)Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.walkfares.calendar.period.PeriodCode
compareTo, getHashCode, getType, isFinancial, isFixed, isHybrid, isValidMethods inherited from interface com.walkfares.calendar.period.RelativePeriodCode
getAbsolutePeriodCode, setPeriod
-
Constructor Details
-
RELATIVE
public RELATIVE(int period)
-
-
Method Details
-
getStart
- Specified by:
getStartin interfaceFixedPeriodCode
-
getEnd
- Specified by:
getEndin interfaceFixedPeriodCode
-
getExpiry
- Specified by:
getExpiryin interfaceFixedPeriodCode
-
setPeriod
- Specified by:
setPeriodin interfaceRelativePeriodCode
-
getPeriod
public int getPeriod()- Specified by:
getPeriodin interfaceRelativePeriodCode
-
getAbsolutePeriodCode
- Specified by:
getAbsolutePeriodCodein interfaceRelativePeriodCode
-
next
- Specified by:
nextin interfaceRelativePeriodCode
-
previous
- Specified by:
previousin interfaceRelativePeriodCode
-
isRelative
public boolean isRelative()- Specified by:
isRelativein interfacePeriodCode- Specified by:
isRelativein interfaceRelativePeriodCode
-
isRelativeOnly
public boolean isRelativeOnly()- Specified by:
isRelativeOnlyin interfacePeriodCode
-
getCode
- Specified by:
getCodein interfacePeriodCode
-
getType
- Specified by:
getTypein interfacePeriodCode
-