Class ResolvedBulletPayment

  • All Implemented Interfaces:
    ResolvedProduct, Serializable, org.joda.beans.Bean, org.joda.beans.ImmutableBean

    public final class ResolvedBulletPayment
    extends Object
    implements ResolvedProduct, org.joda.beans.ImmutableBean, 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.
        payment - the payment
        the resolved bullet payment
      • getCurrency

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

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

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

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

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

        public int hashCode()
        hashCode in class Object