Class Message

  • All Implemented Interfaces:
    io.aether.utils.ToString

    public class Message
    extends java.lang.Object
    implements io.aether.utils.ToString
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected byte[] data  
      static io.aether.net.fastMeta.FastMetaType<Message> META  
      static io.aether.net.fastMeta.FastMetaType<Message> META_BODY  
      protected java.util.UUID uid  
    • Constructor Summary

      Constructors 
      Constructor Description
      Message​(java.util.UUID uid, byte[] data)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean dataContains​(byte el)  
      boolean equals​(java.lang.Object o)  
      byte[] getData()  
      java.util.UUID getUid()  
      int hashCode()  
      void toString​(io.aether.utils.AString sb)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.aether.utils.ToString

        toString2
    • Field Detail

      • META_BODY

        public static final io.aether.net.fastMeta.FastMetaType<Message> META_BODY
      • META

        public static final io.aether.net.fastMeta.FastMetaType<Message> META
      • uid

        protected final java.util.UUID uid
      • data

        protected final byte[] data
    • Constructor Detail

      • Message

        public Message​(java.util.UUID uid,
                       byte[] data)
    • Method Detail

      • getUid

        public java.util.UUID getUid()
      • getData

        public byte[] getData()
      • dataContains

        public boolean dataContains​(byte el)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public void toString​(io.aether.utils.AString sb)
        Specified by:
        toString in interface io.aether.utils.ToString