-
- 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.
-
-
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()-
Methods inherited from class kotlin.Number
toByte, toChar, toDouble, toFloat, toInt, toLong, toShort -
Methods inherited from class io.kjson.JSONValue
appendTo, coOutput, output, toJSON -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
isIntegral
abstract Boolean isIntegral()
-
isNegative
abstract Boolean isNegative()
-
isPositive
abstract Boolean isPositive()
-
isNotNegative
abstract Boolean isNotNegative()
-
isNotPositive
abstract Boolean isNotPositive()
-
toDecimal
abstract BigDecimal toDecimal()
-
-
-
-