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.
        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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object