org.klomp.snark.dht

## Class MsgID

- java.lang.Object
- - net.i2p.data.ByteArray
  - - org.klomp.snark.dht.MsgID

- All Implemented Interfaces:
    Serializable, Comparable<ByteArray>

      class MsgID
      extends ByteArray

  Used for both incoming and outgoing message IDs

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MsgID(byte[] data)` incoming - save the ID (arbitrary length)
    `MsgID(I2PAppContext ctx)` outgoing - generate a random ID

  - ### Method Summary

    - ### Methods inherited from class net.i2p.data.ByteArray

      `compareTo, equals, getData, getOffset, getValid, hashCode, setData, setOffset, setValid, toBase64, toString`

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

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

- - ### Constructor Detail

    - #### MsgID

          public MsgID(byte[] data)

      incoming - save the ID (arbitrary length)

    - #### MsgID

          public MsgID(I2PAppContext ctx)

      outgoing - generate a random ID