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 int
compareTo(PeriodCode o)
String
getCode()
default int
getHashCode()
PeriodCodeType
getType()
default PeriodCodeType
getType(CurveDate ondate)
default boolean
isFinancial()
default boolean
isFixed()
default boolean
isHybrid()
boolean
isRelative()
default boolean
isRelativeOnly()
default boolean
isValid()
-
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:
compareTo
in interfaceComparable<PeriodCode>
-