Class EtdFutureSecurity.Builder

  • All Implemented Interfaces:
    org.joda.beans.BeanBuilder<EtdFutureSecurity>
    Enclosing class:
    EtdFutureSecurity

    public static final class EtdFutureSecurity.Builder
    extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<EtdFutureSecurity>
    The bean-builder for EtdFutureSecurity.
    • Method Detail

      • info

        public EtdFutureSecurity.Builder info​(SecurityInfo info)
        Sets the standard security information.

        This includes the security identifier.

        Parameters:
        info - the new value, not null
        Returns:
        this, for chaining, not null
      • contractSpecId

        public EtdFutureSecurity.Builder contractSpecId​(EtdContractSpecId contractSpecId)
        Sets the ID of the contract specification from which this security is derived.
        Parameters:
        contractSpecId - the new value, not null
        Returns:
        this, for chaining, not null
      • expiry

        public EtdFutureSecurity.Builder expiry​(YearMonth expiry)
        Sets the year-month of the expiry.

        Expiry will occur on a date implied by the variant of the ETD.

        Parameters:
        expiry - the new value, not null
        Returns:
        this, for chaining, not null
      • variant

        public EtdFutureSecurity.Builder variant​(EtdVariant variant)
        Sets the variant of ETD.

        This captures the variant of the ETD. The most common variant is 'Monthly'. Other variants are 'Weekly', 'Daily' and 'Flex'.

        When building, this defaults to 'Monthly'.

        Parameters:
        variant - the new value, not null
        Returns:
        this, for chaining, not null
      • toString

        public String toString()
        Overrides:
        toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<EtdFutureSecurity>