Class ListMessage

  • All Implemented Interfaces:
    Message
    Direct Known Subclasses:
    GetDataMessage, InventoryMessage

    public abstract class ListMessage
    extends BaseMessage

    Abstract superclass of classes with list based payload, ie InventoryMessage and GetDataMessage.

    Instances of this class -- that use deprecated methods -- are not safe for use by multiple threads.

    • Constructor Detail

      • ListMessage

        @Deprecated
        public ListMessage()
        Deprecated.
      • ListMessage

        protected ListMessage​(java.util.List<InventoryItem> items)
    • Method Detail

      • addItem

        @Deprecated
        public void addItem​(InventoryItem item)
        Deprecated.
      • removeItem

        @Deprecated
        public void removeItem​(int index)
        Deprecated.
      • bitcoinSerializeToStream

        public void bitcoinSerializeToStream​(java.io.OutputStream stream)
                                      throws java.io.IOException
        Description copied from class: BaseMessage
        Serializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize().
        Specified by:
        bitcoinSerializeToStream in class BaseMessage
        Throws:
        java.io.IOException
      • 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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object