public final class UInt256s
extends java.lang.Object
UInt256.| Modifier and Type | Method and Description |
|---|---|
static UInt256 |
fromBigDecimal(java.math.BigDecimal value)
Returns the specified
BigDecimal as a UInt256. |
static UInt256 |
fromBigInteger(java.math.BigInteger value)
Returns the specified
BigInteger as a UInt256. |
static UInt256 |
max(UInt256 a,
UInt256 b)
Returns the larger of two
UInt256 values. |
static UInt256 |
min(UInt256 a,
UInt256 b)
Returns the smaller of two
UInt256 values. |
static java.math.BigDecimal |
toBigDecimal(UInt256 value)
Returns the specified
UInt256 as a BigDecimal. |
static java.math.BigInteger |
toBigInteger(UInt256 value)
Returns the specified
UInt256 as a BigInteger. |
public static java.math.BigInteger toBigInteger(UInt256 value)
UInt256 as a BigInteger.value - The value to convertBigIntegerpublic static java.math.BigDecimal toBigDecimal(UInt256 value)
UInt256 as a BigDecimal.value - The value to convertBigDecimalpublic static UInt256 fromBigInteger(java.math.BigInteger value)
BigInteger as a UInt256.value - The value to convertUInt256java.lang.IllegalArgumentException - if value < 0, or value > UInt256.MAX_VALUE.public static UInt256 fromBigDecimal(java.math.BigDecimal value)
BigDecimal as a UInt256.value - The value to convertUInt256java.lang.ArithmeticException - if value has a nonzero fractional part.java.lang.IllegalArgumentException - if value < 0, or value > UInt256.MAX_VALUE.public static UInt256 min(UInt256 a, UInt256 b)
UInt256 values. That is, the result
the argument closer to the value of UInt256.MIN_VALUE. If the
arguments have the same value, the result is that same value.a - an argument.b - another argument.a and b.public static UInt256 max(UInt256 a, UInt256 b)
UInt256 values. That is, the result
the argument closer to the value of UInt256.MAX_VALUE. If the
arguments have the same value, the result is that same value.a - an argument.b - another argument.a and b.