net.i2p.data.i2cp

## Class MessageId

- java.lang.Object
- - net.i2p.data.i2cp.MessageId

-     public class MessageId
      extends Object

  Defines the message ID of a message delivered between a router and a client in a particular session. These IDs are not globally unique. As of 0.9.48, does NOT extend DataStructureImpl.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MessageId()`
    `MessageId(long id)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object object)`
    `long` | `getMessageId()`
    `int` | `hashCode()`
    `void` | `readBytes(InputStream in)`
    `void` | `setMessageId(long id)`
    `String` | `toString()`
    `void` | `writeBytes(OutputStream out)`

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

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

- - ### Constructor Detail

    - #### MessageId

          public MessageId()

    - #### MessageId

          public MessageId(long id)

  - ### Method Detail

    - #### equals

          public boolean equals(Object object)

      Overrides:
        `equals` in class `Object`

    - #### getMessageId

          public long getMessageId()

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### readBytes

          public void readBytes(InputStream in)
                         throws DataFormatException,
                                IOException

      Throws:
        `DataFormatException`
        `IOException`

    - #### setMessageId

          public void setMessageId(long id)

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### writeBytes

          public void writeBytes(OutputStream out)
                          throws DataFormatException,
                                 IOException

      Throws:
        `DataFormatException`
        `IOException`