Class ResolvedBulletPayment

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

    public final class ResolvedBulletPayment
    extends java.lang.Object
    implements ResolvedProduct, ImmutableBean, java.io.Serializable
    A bullet payment, resolved for pricing.

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

    A ResolvedBulletPayment 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

      • of

        public static ResolvedBulletPayment of​(Payment payment)
        Obtains an instance of a resolved bullet payment.
        Parameters:
        payment - the payment
        Returns:
        the resolved bullet payment
      • getCurrency

        public Currency getCurrency()
        Gets the currency of this payment.
        Returns:
        the payment currency
      • meta

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

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

        public Payment getPayment()
        Gets the payment to be made.
        Returns:
        the value of the property, not null
      • toBuilder

        public ResolvedBulletPayment.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