Class NodeOfflineEvent

java.lang.Object
org.drasyl.event.NodeOfflineEvent
All Implemented Interfaces:
Event, NodeEvent

public class NodeOfflineEvent extends Object
This event signals that the node is currently not connected to a super peer.

This is an immutable object.

  • Field Details

    • node

      protected final Node node
  • Constructor Details

    • NodeOfflineEvent

      public NodeOfflineEvent(Node node)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getNode

      public Node getNode()
      Description copied from interface: NodeEvent
      Returns the node to which this event refers.
      Specified by:
      getNode in interface NodeEvent
      Returns:
      the node to which this event refers.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object