Skip to content

Commit e69ca51

Browse files
committed
Updated JavaDoc (#99)
1 parent a3fb6dc commit e69ca51

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/main/java/javax/money/MonetaryAmount.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
*
9797
* @author Anatole Tresch
9898
* @author Werner Keil
99-
* @version 1.0.0
99+
* @version 1.0.1
100100
* @see #with(MonetaryOperator)
101101
*/
102102
public interface MonetaryAmount extends CurrencySupplier, NumberSupplier, Comparable<MonetaryAmount>{
@@ -577,21 +577,22 @@ default boolean isZero(){
577577

578578
/**
579579
* Returns a {@code MonetaryAmount} whose value is <code>-this</code>, and whose scale is
580-
* {@code this.scale()}.
580+
* {@code this.scale()}, with rounding according to the context settings.
581581
*
582-
* @return {@code -this}.
582+
* @throws ArithmeticException if rounding fails.
583+
* @return {@code -this}, rounded as necessary.
584+
* @see java.math.BigDecimal#negate()
583585
*/
584586
MonetaryAmount negate();
585587

586588
/**
587-
* Returns a {@code MonetaryAmount} whose value is <code>+this</code>, with rounding according to
588-
* the context settings.
589+
* Returns a {@code MonetaryAmount} whose value is <code>+this</code>.
589590
*
590591
* <p>This method, which simply returns this {@code MonetaryAmount}
591592
* is included for symmetry with the unary minus method {@link #negate()}.
592593
*
593-
* @return {@code this}, rounded as necessary. A zero result will have a scale of 0.
594-
* @throws ArithmeticException if rounding fails.
594+
* @return {@code this}. A zero result will have a scale of 0.
595+
* @see #negate()
595596
* @see java.math.BigDecimal#plus()
596597
*/
597598
MonetaryAmount plus();

0 commit comments

Comments
 (0)