Class Day.RELATIVE
java.lang.Object
com.walkfares.calendar.period.type.Day.RELATIVE
- All Implemented Interfaces:
FixedPeriodCode
,PeriodCode
,RelativePeriodCode
,Comparable<PeriodCode>
- Enclosing class:
- Day
public static class Day.RELATIVE extends Object implements RelativePeriodCode, FixedPeriodCode
-
Constructor Summary
Constructors Constructor Description RELATIVE(int period)
-
Method Summary
Modifier and Type Method Description AbsolutePeriodCode
getAbsolutePeriodCode(int year, int period)
String
getCode()
UTCDate
getEnd(CurveDate curveDate)
UTCDate
getExpiry(CurveDate curveDate)
int
getPeriod()
UTCDate
getStart(CurveDate curveDate)
PeriodCodeType
getType()
boolean
isRelative()
boolean
isRelativeOnly()
RelativePeriodCode
next()
RelativePeriodCode
previous()
RelativePeriodCode
setPeriod(int period)
String
toString()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.walkfares.calendar.period.PeriodCode
compareTo, getHashCode, getType, isFinancial, isFixed, isHybrid, isValid
Methods inherited from interface com.walkfares.calendar.period.RelativePeriodCode
getAbsolutePeriodCode, setPeriod
-
Constructor Details
-
RELATIVE
public RELATIVE(int period)
-
-
Method Details
-
getStart
- Specified by:
getStart
in interfaceFixedPeriodCode
-
getEnd
- Specified by:
getEnd
in interfaceFixedPeriodCode
-
getExpiry
- Specified by:
getExpiry
in interfaceFixedPeriodCode
-
setPeriod
- Specified by:
setPeriod
in interfaceRelativePeriodCode
-
getPeriod
public int getPeriod()- Specified by:
getPeriod
in interfaceRelativePeriodCode
-
getAbsolutePeriodCode
- Specified by:
getAbsolutePeriodCode
in interfaceRelativePeriodCode
-
next
- Specified by:
next
in interfaceRelativePeriodCode
-
previous
- Specified by:
previous
in interfaceRelativePeriodCode
-
isRelative
public boolean isRelative()- Specified by:
isRelative
in interfacePeriodCode
- Specified by:
isRelative
in interfaceRelativePeriodCode
-
isRelativeOnly
public boolean isRelativeOnly()- Specified by:
isRelativeOnly
in interfacePeriodCode
-
getCode
- Specified by:
getCode
in interfacePeriodCode
-
getType
- Specified by:
getType
in interfacePeriodCode
-
toString
-