Package co.nstant.in.cbor.model

## Class DataItem

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

- Direct Known Subclasses:
    `Array`, `ByteString`, `Map`, `Number`, `Special`, `Tag`, `UnicodeString`

      public class DataItem
      extends Object

- - ### Constructor Summary

    Constructors
    Modifier | Constructor | Description
    --- | --- | ---
    `protected` | `DataItem​(MajorType majorType)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `protected void` | `assertTrue​(boolean condition, String message)` |
    `boolean` | `equals​(Object object)` |
    `MajorType` | `getMajorType()` |
    `DataItem` | `getOuterTaggable()` |
    `Tag` | `getTag()` |
    `int` | `hashCode()` |
    `boolean` | `hasTag()` |
    `void` | `removeTag()` |
    `void` | `setTag​(long tag)` |
    `void` | `setTag​(Tag tag)` |

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

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

- - ### Constructor Detail

    - #### DataItem

          protected DataItem​(MajorType majorType)

  - ### Method Detail

    - #### getMajorType

          public MajorType getMajorType()

    - #### setTag

          public void setTag​(long tag)

    - #### setTag

          public void setTag​(Tag tag)

    - #### removeTag

          public void removeTag()

    - #### getTag

          public Tag getTag()

    - #### hasTag

          public boolean hasTag()

    - #### equals

          public boolean equals​(Object object)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### assertTrue

          protected void assertTrue​(boolean condition,
                                    String message)

    - #### getOuterTaggable

          public DataItem getOuterTaggable()