Package com.walkfares.calendar.expiry
Class GrammarExpiryRule
java.lang.Object
com.walkfares.calendar.expiry.GrammarExpiryRule
- All Implemented Interfaces:
ExpiryRule
public class GrammarExpiryRule extends Object implements ExpiryRule
-
Constructor Summary
Constructors Constructor Description GrammarExpiryRule()
-
Method Summary
Modifier and Type Method Description UTCDate
getDeliveryEnd(CurveDate curveDate, PeriodCode pc)
UTCDate
getDeliveryStart(CurveDate curveDate, PeriodCode pc)
UTCDate
getExpiry(Calendar tradingCalendar, UTCDate start)
String
getName()
ExpiryRuleOptions
getOptions()
boolean
isDeliveryEndRule()
boolean
isDeliveryStartRule()
boolean
isIntradayRule()
void
setOptions(ExpiryRuleOptions options)
String
toString()
GrammarExpiryRule
withCode(String code)
-
Constructor Details
-
GrammarExpiryRule
public GrammarExpiryRule()
-
-
Method Details
-
withCode
-
getName
- Specified by:
getName
in interfaceExpiryRule
-
getOptions
- Specified by:
getOptions
in interfaceExpiryRule
-
setOptions
- Specified by:
setOptions
in interfaceExpiryRule
-
getExpiry
- Specified by:
getExpiry
in interfaceExpiryRule
-
getDeliveryStart
- Specified by:
getDeliveryStart
in interfaceExpiryRule
-
getDeliveryEnd
- Specified by:
getDeliveryEnd
in interfaceExpiryRule
-
isDeliveryStartRule
public boolean isDeliveryStartRule()- Specified by:
isDeliveryStartRule
in interfaceExpiryRule
-
isDeliveryEndRule
public boolean isDeliveryEndRule()- Specified by:
isDeliveryEndRule
in interfaceExpiryRule
-
isIntradayRule
public boolean isIntradayRule()- Specified by:
isIntradayRule
in interfaceExpiryRule
-
toString
-