Ejemplo n.º 1
0
 public virtual void test_positive()
 {
     assertEquals(CCY_AMOUNT.positive(), CCY_AMOUNT);
     assertEquals(CCY_AMOUNT_NEGATIVE.positive(), CCY_AMOUNT);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Obtains an instance representing an amount to be received.
 /// <para>
 /// The sign of the amount will be normalized to be positive, indicating receipt.
 ///
 /// </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 ofReceive(CurrencyAmount value, LocalDate date)
 {
     return(new Payment(value.positive(), date));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Obtains an instance representing an amount to be received where the date is adjustable.
 /// <para>
 /// The sign of the amount will be normalized to be positive, indicating receipt.
 ///
 /// </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 ofReceive(CurrencyAmount value, AdjustableDate date)
 {
     return(new AdjustablePayment(value.positive(), date));
 }