diff --git a/hutool-core/src/main/java/cn/hutool/core/math/Money.java b/hutool-core/src/main/java/cn/hutool/core/math/Money.java index 950d0d6df..248d4a731 100644 --- a/hutool-core/src/main/java/cn/hutool/core/math/Money.java +++ b/hutool-core/src/main/java/cn/hutool/core/math/Money.java @@ -9,7 +9,7 @@ import java.util.Currency; /** * 单币种货币类,处理货币算术、币种和取整。 - * + *
* 感谢提供此方法的用户:https://github.com/looly/hutool/issues/605 * *
@@ -54,7 +54,7 @@ public class Money implements Serializable, Comparable
- * 创建一个具有金额
* 创建一个具有金额
- * p>
* 货币对象与另一对象相等的充分必要条件是:
- * p>
* 货币对象与另一货币对象相等的充分必要条件是:BigDecimal.ROUND_HALF_EVEN
+ * 缺省的取整模式,为{@link BigDecimal#ROUND_HALF_EVEN}
* (四舍五入,当小数为0.5时,则取最近的偶数)。
*/
public static final int DEFAULT_ROUNDING_MODE = BigDecimal.ROUND_HALF_EVEN;
@@ -94,7 +94,7 @@ public class Money implements Serializable, Comparable
yuan
元cent分和缺省币种的货币对象。
+ * 创建一个具有金额
yuan
元cent
分和缺省币种的货币对象。
*
* @param yuan 金额元数。
* @param cent 金额分数。
@@ -109,8 +109,9 @@ public class Money implements Serializable, Comparableyuan
元cent
分和指定币种的货币对象。
*
- * @param yuan 金额元数。
- * @param cent 金额分数。
+ * @param yuan 金额元数。
+ * @param cent 金额分数。
+ * @param currency 货币单位
*/
public Money(long yuan, int cent, Currency currency) {
this.currency = currency;
@@ -324,7 +325,6 @@ public class Money implements Serializable, Comparable
*
*
*
*