Package com.independentsoft.json.parser

# Class JsonNumber

java.lang.Object
com.independentsoft.json.parser.JsonNumber

All Implemented Interfaces:
  `JsonValue`

public class JsonNumber extends Object implements JsonValue

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `JsonNumber​(double value)`
  `JsonNumber​(float value)`
  `JsonNumber​(int value)`
  `JsonNumber​(long value)`
  `JsonNumber​(String value)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `equals​(Object object)`
  `int`
  `hashCode()`
  `double`
  `toDouble()`
  `float`
  `toFloat()`
  `int`
  `toInteger()`
  `long`
  `toLong()`
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### JsonNumber

    public JsonNumber​(int value)

  - ### JsonNumber

    public JsonNumber​(long value)

  - ### JsonNumber

    public JsonNumber​(float value)

  - ### JsonNumber

    public JsonNumber​(double value)

  - ### JsonNumber

    public JsonNumber​(String value)

- ## Method Details

  - ### toInteger

    public int toInteger()

  - ### toLong

    public long toLong()

  - ### toFloat

    public float toFloat()

  - ### toDouble

    public double toDouble()

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`

  - ### equals

    public boolean equals​(Object object)
    Overrides:
      `equals` in class `Object`