Package co.nstant.in.cbor.model

## Class RationalNumber

- java.lang.Object
- - co.nstant.in.cbor.model.DataItem
  - - co.nstant.in.cbor.model.Array
    - - co.nstant.in.cbor.model.RationalNumber

-     public class RationalNumber
      extends Array

  Rational Numbers: http://peteroupc.github.io/CBOR/rational.html

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `RationalNumber​(Number numerator, Number denominator)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `Number` | `getDenominator()` |
    `Number` | `getNumerator()` |
    `boolean` | `isChunked()` |
    `co.nstant.in.cbor.model.ChunkableDataItem` | `setChunked​(boolean chunked)` |

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

      `add, equals, getDataItems, hashCode, peekLast, 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

    - #### RationalNumber

          public RationalNumber​(Number numerator,
                                Number denominator)
                         throws CborException

      Throws:
        `CborException`

  - ### Method Detail

    - #### getNumerator

          public Number getNumerator()

    - #### getDenominator

          public Number getDenominator()

    - #### isChunked

          public boolean isChunked()

    - #### setChunked

          public co.nstant.in.cbor.model.ChunkableDataItem setChunked​(boolean chunked)