Class PeerEntry


  • public class PeerEntry
    extends java.lang.Object
    The node ID and network address of each connected peer.
    Since:
    0.0.1
    • Constructor Summary

      Constructors 
      Constructor Description
      PeerEntry()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      java.lang.String getAddress()
      IP:PORT
      java.lang.String getNodeId()
      node ID
      int hashCode()  
      void setAddress​(java.lang.String address)
      IP:PORT
      void setNodeId​(java.lang.String nodeId)
      node ID
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PeerEntry

        public PeerEntry()
    • Method Detail

      • getAddress

        public java.lang.String getAddress()
        IP:PORT
      • getNodeId

        public java.lang.String getNodeId()
        node ID
      • setAddress

        public void setAddress​(java.lang.String address)
        IP:PORT
      • setNodeId

        public void setNodeId​(java.lang.String nodeId)
        node ID
      • equals

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

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object