Value.Kind| Modifier and Type | Method and Description |
|---|---|
default BigDecimal |
asBigDecimal() |
BigInteger |
asBigInteger()
Convert value to BigInteger
Must throw exception if isBigInteger() returns false
|
default double |
asDouble() |
default float |
asFloat() |
int |
asInt()
Convert value to int
Must throw exception if isInt() returns false
|
long |
asLong()
Convert value to long
Must throw exception if isLong() returns false
|
default Value.Kind |
getKind()
Kind of value, used for logical separation between implementations
|
boolean |
isBigInteger()
Returns true if value may be converted to BigInteger
|
default boolean |
isDouble() |
default boolean |
isFloat() |
boolean |
isInt()
Returns true if value may be converted to int
|
boolean |
isLong()
Returns true if value may be converted to long
|
boolean |
isZero() |
IntegerValue |
negate() |
int |
ordinal()
Type ordinal value.
|
isEqualTo, resolve, toBooleanValue, toByteArrayValue, toDateValue, toIntegerValue, toNamedValue, toNullValue, toObjectIdentifierValue, toObjectValue, toOpenTypeValue, toRealValue, toStringValue, toValueCollectioncompareToboolean isInt()
boolean isLong()
boolean isBigInteger()
default boolean isFloat()
default boolean isDouble()
boolean isZero()
int ordinal()
int asInt()
long asLong()
BigInteger asBigInteger()
IntegerValue negate()
default float asFloat()
default double asDouble()
default BigDecimal asBigDecimal()
@NotNull default Value.Kind getKind()
ValueCopyright © 2017. All rights reserved.