public abstract class ManBigDecimalExt extends Object implements ComparableUsing<BigDecimal>
BigDecimal with arithmetic and relational operator implementationsComparableUsing.EqualityMode, ComparableUsing.Operator| Constructor and Description |
|---|
ManBigDecimalExt() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
compareToUsing(BigDecimal thiz,
BigDecimal that,
ComparableUsing.Operator op)
Implements structural interface
ComparableUsing to support relational operators == != > >= < <= |
static BigDecimal |
dec(BigDecimal thiz)
Supports unary decrement operator
-- |
static BigDecimal |
div(BigDecimal thiz,
BigDecimal operand)
Supports binary operator
/ |
static BigDecimal |
inc(BigDecimal thiz)
Supports unary increment operator
++ |
static BigDecimal |
minus(BigDecimal thiz,
BigDecimal operand)
Supports binary operator
- |
static BigDecimal |
plus(BigDecimal thiz,
BigDecimal operand)
Supports binary operator
+ |
static BigDecimal |
rem(BigDecimal thiz,
BigDecimal operand)
Supports binary operator
% |
static BigDecimal |
times(BigDecimal thiz,
BigDecimal operand)
Supports binary operator
* |
static BigDecimal |
unaryMinus(BigDecimal thiz)
Supports unary prefix operator
- |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompareToUsing, equalityModecompareTopublic static BigDecimal unaryMinus(BigDecimal thiz)
-public static BigDecimal inc(BigDecimal thiz)
++public static BigDecimal dec(BigDecimal thiz)
--public static BigDecimal plus(BigDecimal thiz, BigDecimal operand)
+public static BigDecimal minus(BigDecimal thiz, BigDecimal operand)
-public static BigDecimal times(BigDecimal thiz, BigDecimal operand)
*public static BigDecimal div(BigDecimal thiz, BigDecimal operand)
/public static BigDecimal rem(BigDecimal thiz, BigDecimal operand)
%public static boolean compareToUsing(BigDecimal thiz, BigDecimal that, ComparableUsing.Operator op)
ComparableUsing to support relational operators == != > >= < <=Copyright © 2020. All rights reserved.