Package co.nstant.in.cbor.model

## Class Number

- java.lang.Object
- - co.nstant.in.cbor.model.DataItem
  - - co.nstant.in.cbor.model.Number

- Direct Known Subclasses:
    `NegativeInteger`, `UnsignedInteger`

      public abstract class Number
      extends DataItem

- - ### Constructor Summary

    Constructors
    Modifier | Constructor | Description
    --- | --- | ---
    `protected` | `Number​(MajorType majorType, BigInteger value)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | `equals​(Object object)` |
    `BigInteger` | `getValue()` |
    `int` | `hashCode()` |
    `String` | `toString()` |

    - ### Methods inherited from class co.nstant.in.cbor.model.DataItem

      `assertTrue, getMajorType, getOuterTaggable, getTag, hasTag, removeTag, setTag, setTag`

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

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

- - ### Constructor Detail

    - #### Number

          protected Number​(MajorType majorType,
                           BigInteger value)

  - ### Method Detail

    - #### getValue

          public BigInteger getValue()

    - #### equals

          public boolean equals​(Object object)

      Overrides:
        `equals` in class `DataItem`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `DataItem`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`