Ejemplo n.º 1
0
 public virtual void test_negative()
 {
     assertEquals(CCY_AMOUNT.negative(), CCY_AMOUNT_NEGATIVE);
     assertEquals(CCY_AMOUNT_NEGATIVE.negative(), CCY_AMOUNT_NEGATIVE);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Obtains an instance representing an amount to be paid.
 /// <para>
 /// The sign of the amount will be normalized to be negative, indicating a payment.
 ///
 /// </para>
 /// </summary>
 /// <param name="value">  the amount of the payment </param>
 /// <param name="date">  the date that the payment is made </param>
 /// <returns> the payment instance </returns>
 public static Payment ofPay(CurrencyAmount value, LocalDate date)
 {
     return(new Payment(value.negative(), date));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Obtains an instance representing an amount to be paid where the date is adjustable.
 /// <para>
 /// The sign of the amount will be normalized to be negative, indicating a payment.
 ///
 /// </para>
 /// </summary>
 /// <param name="value">  the amount of the payment </param>
 /// <param name="date">  the date that the payment is made </param>
 /// <returns> the adjustable payment instance </returns>
 public static AdjustablePayment ofPay(CurrencyAmount value, AdjustableDate date)
 {
     return(new AdjustablePayment(value.negative(), date));
 }