Class NodeDownEvent

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

public class NodeDownEvent extends Object
This event signals that the node is shut down.

This is an immutable object.

  • Field Details

    • node

      protected final Node node
  • Constructor Details

    • NodeDownEvent

      public NodeDownEvent(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