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