public final class JsBigInt extends JsNumber implements Comparable<JsBigInt>
Modifier and Type | Field and Description |
---|---|
static fun.optic.Prism<JsValue,BigInteger> |
prism |
static int |
TYPE_ID |
BigInteger |
value
the big integer value.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(JsBigInt o)
Compares two
JsBigInt objects numerically. |
boolean |
equals(Object that)
Indicates whether some other object is "equal to" this json big integer.
|
int |
hashCode()
Returns the hashcode of this json big integer.
|
int |
id() |
boolean |
isBigInt()
Returns true if this JsValue is a JsBigInt
|
JsBigInt |
map(UnaryOperator<BigInteger> fn)
Maps this json bigint into another one.
|
static JsBigInt |
of(BigInteger n)
Static factory method to create a JsBigInt from BigInteger objects.
|
boolean |
test(Predicate<BigInteger> predicate)
Tests the value of this json bigint on a predicate.
|
String |
toString() |
isNumber, toJsPrimitive
isJson, isPrimitive
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
ifNothing, ifNull, isArray, isArray, isBigDec, isBigDec, isBigInt, isBinary, isBool, isDecimal, isDouble, isDouble, isFalse, isInstant, isInstant, isInt, isInt, isIntegral, isJson, isLong, isLong, isNothing, isNotNothing, isNotNull, isNotNumber, isNull, isObj, isObj, isSameType, isStr, isStr, isTrue, toJsArray, toJsBigDec, toJsBigInt, toJsBinary, toJsBool, toJsDouble, toJsInstant, toJsInt, toJsLong, toJsNumber, toJsObj, toJson, toJsStr
public static final int TYPE_ID
public static final fun.optic.Prism<JsValue,BigInteger> prism
public final BigInteger value
public static JsBigInt of(BigInteger n)
n
- the big integerpublic boolean isBigInt()
JsValue
public int compareTo(JsBigInt o)
JsBigInt
objects numerically.compareTo
in interface Comparable<JsBigInt>
compareTo(JsBigInt)
public int hashCode()
public boolean equals(Object that)
public String toString()
toString
in class Object
BigInteger.toString
public JsBigInt map(UnaryOperator<BigInteger> fn)
fn
- the mapping functionpublic boolean test(Predicate<BigInteger> predicate)
predicate
- the predicateCopyright © 2022. All rights reserved.