-
- All Implemented Interfaces:
-
io.kjson.JSONPrimitive,io.kjson.JSONValue,java.io.Serializable
public final class JSONInt extends JSONNumberValue implements JSONPrimitive<Int>
A JSON integer value (up to 32 bits).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classJSONInt.Companion
-
Method Summary
Modifier and Type Method Description IntegergetValue()UnitappendTo(Appendable a)BooleanisIntegral()BooleanisLong()BooleanisInt()BooleanisShort()BooleanisByte()BooleanisULong()BooleanisUInt()BooleanisUShort()BooleanisUByte()BooleanisZero()BooleanisNegative()BooleanisPositive()BooleanisNotZero()BooleanisNotNegative()BooleanisNotPositive()DoubletoDouble()FloattoFloat()LongtoLong()IntegertoInt()CharactertoChar()ShorttoShort()BytetoByte()BigDecimaltoDecimal()ULongtoULong()UInttoUInt()UShorttoUShort()UBytetoUByte()Booleanequals(Object other)IntegerhashCode()StringtoString()-
-
Constructor Detail
-
JSONInt
JSONInt(Integer value)
-
-
Method Detail
-
appendTo
Unit appendTo(Appendable a)
-
isIntegral
Boolean isIntegral()
-
isNegative
Boolean isNegative()
-
isPositive
Boolean isPositive()
-
isNotNegative
Boolean isNotNegative()
-
isNotPositive
Boolean isNotPositive()
-
toDecimal
BigDecimal toDecimal()
-
-
-
-