Class ResolvedSwaption

  • All Implemented Interfaces:
    ResolvedProduct, java.io.Serializable, Bean, ImmutableBean

    public final class ResolvedSwaption
    extends java.lang.Object
    implements ResolvedProduct, ImmutableBean, java.io.Serializable
    A swaption, resolved for pricing.

    This is the resolved form of Swaption and is an input to the pricers. Applications will typically create a ResolvedSwaption from a Swaption using Swaption.resolve(ReferenceData).

    A ResolvedSwaption is bound to data that changes over time, such as holiday calendars. If the data changes, such as the addition of a new holiday, the resolved form will not be updated. Care must be taken when placing the resolved form in a cache or persistence layer.

    See Also:
    Serialized Form
    • Method Detail

      • getExpiryDate

        public java.time.LocalDate getExpiryDate()
        Gets the expiry date of the option.
        Returns:
        the expiry date
      • getCurrency

        public Currency getCurrency()
        Gets the currency of the swaption.

        This is the currency of the underlying swap, which is not allowed to be cross-currency.

        Returns:
        the currency
      • getIndex

        public IborIndex getIndex()
        Gets the index of the underlying swap.
        Returns:
        the Ibor index of the underlying swap
      • meta

        public static ResolvedSwaption.Meta meta()
        The meta-bean for ResolvedSwaption.
        Returns:
        the meta-bean, not null
      • builder

        public static ResolvedSwaption.Builder builder()
        Returns a builder used to create an instance of the bean.
        Returns:
        the builder, not null
      • getLongShort

        public LongShort getLongShort()
        Gets whether the option is long or short.

        Long indicates that the owner wants the option to be in the money at expiry. Short indicates that the owner wants the option to be out of the money at expiry.

        Returns:
        the value of the property, not null
      • getSwaptionSettlement

        public SwaptionSettlement getSwaptionSettlement()
        Gets settlement method.

        The settlement of the option is specified by SwaptionSettlement.

        Returns:
        the value of the property, not null
      • getExpiry

        public java.time.ZonedDateTime getExpiry()
        Gets the expiry date-time of the option.

        The option is European, and can only be exercised on the expiry date.

        Returns:
        the value of the property, not null
      • getUnderlying

        public ResolvedSwap getUnderlying()
        Gets the underlying swap.

        At expiry, if the option is exercised, this swap will be entered into. The swap description is the swap as viewed by the party long the option.

        Returns:
        the value of the property, not null
      • toBuilder

        public ResolvedSwaption.Builder toBuilder()
        Returns a builder that allows this bean to be mutated.
        Returns:
        the mutable builder, not null
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object