Class NodeNormalTerminationEvent

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

public class NodeNormalTerminationEvent extends Object
This events signals that the node has terminated normally.

This is an immutable object.

  • Field Details

    • node

      protected final Node node
  • Constructor Details

    • NodeNormalTerminationEvent

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