-
- All Implemented Interfaces:
-
io.kjson.JSONValue,java.io.Serializable
public class JSONNumber extends Number implements JSONValue
An abstract base class for the three number types of JSON value. It includes functions to assist with conversion between number types.
-
-
Field Summary
Fields Modifier and Type Field Description private final Numbervalue
-
Method Summary
Modifier and Type Method Description abstract NumbergetValue()abstract BooleanisIntegral()abstract BooleanisLong()abstract BooleanisInt()abstract BooleanisShort()abstract BooleanisByte()abstract BooleanisULong()abstract BooleanisUInt()abstract BooleanisUShort()abstract BooleanisUByte()abstract BooleanisZero()abstract BooleanisNegative()abstract BooleanisPositive()abstract BooleanisNotZero()abstract BooleanisNotNegative()abstract BooleanisNotPositive()abstract BigDecimaltoDecimal()abstract ULongtoULong()abstract UInttoUInt()abstract UShorttoUShort()abstract UBytetoUByte()abstract Booleanequals(Object other)abstract IntegerhashCode()-
-
Method Detail
-
getValue
abstract Number getValue()
-
isIntegral
abstract Boolean isIntegral()
-
isLong
abstract Boolean isLong()
-
isInt
abstract Boolean isInt()
-
isShort
abstract Boolean isShort()
-
isByte
abstract Boolean isByte()
-
isULong
abstract Boolean isULong()
-
isUInt
abstract Boolean isUInt()
-
isUShort
abstract Boolean isUShort()
-
isUByte
abstract Boolean isUByte()
-
isZero
abstract Boolean isZero()
-
isNegative
abstract Boolean isNegative()
-
isPositive
abstract Boolean isPositive()
-
isNotZero
abstract Boolean isNotZero()
-
isNotNegative
abstract Boolean isNotNegative()
-
isNotPositive
abstract Boolean isNotPositive()
-
toDecimal
abstract BigDecimal toDecimal()
-
equals
abstract Boolean equals(Object other)
-
hashCode
abstract Integer hashCode()
-
-
-
-