Class DeliveryDateParameters.DeliveryDateParametersImpl

java.lang.Object
cdm.base.staticdata.asset.common.DeliveryDateParameters.DeliveryDateParametersImpl
All Implemented Interfaces:
DeliveryDateParameters, com.rosetta.model.lib.RosettaModelObject
Enclosing interface:
DeliveryDateParameters

public static class DeliveryDateParameters.DeliveryDateParametersImpl extends Object implements DeliveryDateParameters
Immutable Implementation of DeliveryDateParameters
  • Constructor Details

  • Method Details

    • getDeliveryNearby

      @RosettaAttribute("deliveryNearby") @RuneAttribute("deliveryNearby") public Offset getDeliveryNearby()
      Description copied from interface: DeliveryDateParameters
      Provides a container for the parametric representation that specifies which nearby contract date would be used as a refrence for a price.
      Specified by:
      getDeliveryNearby in interface DeliveryDateParameters
    • getDeliveryDate

      @RosettaAttribute("deliveryDate") @RuneAttribute("deliveryDate") public AdjustableDate getDeliveryDate()
      Description copied from interface: DeliveryDateParameters
      Specifies the specific contract date for the contract that should be referenced for a price.
      Specified by:
      getDeliveryDate in interface DeliveryDateParameters
    • getDeliveryDateRollConvention

      @RosettaAttribute("deliveryDateRollConvention") @RuneAttribute("deliveryDateRollConvention") public Offset getDeliveryDateRollConvention()
      Description copied from interface: DeliveryDateParameters
      Specifies, for a Commodity Transaction that references a listed future, the day on which the specified future will roll to the next nearby month prior to the expiration of the referenced future. If the future will not roll at all - i.e. the price will be taken from the expiring contract, 0 days should be specified here. If the future will roll to the next nearby on the last trading day - i.e. the price will be taken from the next nearby on the last trading day, then 1 business day should be specified and so on.
      Specified by:
      getDeliveryDateRollConvention in interface DeliveryDateParameters
    • getDeliveryDateExpirationConvention

      @RosettaAttribute("deliveryDateExpirationConvention") @RuneAttribute("deliveryDateExpirationConvention") public Offset getDeliveryDateExpirationConvention()
      Description copied from interface: DeliveryDateParameters
      Specifies, for a Commodity Transaction that references a listed future, the day on which the specified future will expire ahead of the actual expiration of the referenced future. For example: Z21 Contract expires on 19Nov21, with an adjust of 2D the 'expire' will be 16Nov21. DeliveryDateRollConvention takes precedence. Example: Pricing on the Z21 Contract with NearbyContractDay and a deliveryDateRoll of 10D, Sampling of the F22 Contract will occur on 8Nov21 through the last Date of the Z21 Contract. With an ExpConvention of 5D, the last sampling date on the F22 contract will be 12Nov21.
      Specified by:
      getDeliveryDateExpirationConvention in interface DeliveryDateParameters
    • build

      public DeliveryDateParameters build()
      Description copied from interface: DeliveryDateParameters
      Build Methods
      Specified by:
      build in interface DeliveryDateParameters
      Specified by:
      build in interface com.rosetta.model.lib.RosettaModelObject
    • toBuilder

      Specified by:
      toBuilder in interface DeliveryDateParameters
      Specified by:
      toBuilder in interface com.rosetta.model.lib.RosettaModelObject
    • setBuilderFields

      protected void setBuilderFields(DeliveryDateParameters.DeliveryDateParametersBuilder builder)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object