Package com.walkfares.calendar.period
Interface PeriodCode
- All Superinterfaces:
Comparable<PeriodCode>
- All Known Subinterfaces:
AbsolutePeriodCode,FinancialPeriodCode,HybridPeriodCode,IntradayAbsolutePeriodCode,RelativePeriodCode
- All Known Implementing Classes:
Balance.BOM,Balance.BOQ,Balance.BOW,Balance.BOY,Custom,Day.ABSOLUTE,Day.RELATIVE,DayAhead.ABSOLUTE,DayAhead.RELATIVE,Financial.MONTH,Financial.ON,Financial.SN,Financial.SPOT,Financial.SW,Financial.TN,Financial.WEEK,Financial.YEAR,Invalid,Short.PROMPT,Short.SAT,Short.SPOT,Short.SUN,Short.WD
public interface PeriodCode extends Comparable<PeriodCode>
-
Method Summary
Modifier and Type Method Description default intcompareTo(PeriodCode o)StringgetCode()default intgetHashCode()PeriodCodeTypegetType()default PeriodCodeTypegetType(CurveDate ondate)default booleanisFinancial()default booleanisFixed()default booleanisHybrid()booleanisRelative()default booleanisRelativeOnly()default booleanisValid()
-
Method Details
-
getCode
String getCode() -
getType
PeriodCodeType getType() -
isRelative
boolean isRelative() -
getType
-
isValid
default boolean isValid() -
isFixed
default boolean isFixed() -
isFinancial
default boolean isFinancial() -
isRelativeOnly
default boolean isRelativeOnly() -
isHybrid
default boolean isHybrid() -
getHashCode
default int getHashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<PeriodCode>
-