Package org.drasyl.event
Class NodeDownEvent
- java.lang.Object
-
- org.drasyl.event.NodeDownEvent
-
-
Constructor Summary
Constructors Constructor Description NodeDownEvent(Node node)
Deprecated, for removal: This API element is subject to removal in a future version.Useof(Node)
instead.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Node
getNode()
Returns the node to which this event refers.int
hashCode()
static NodeDownEvent
of(Node node)
String
toString()
-
-
-
Field Detail
-
node
protected final Node node
-
-
Constructor Detail
-
NodeDownEvent
@Deprecated(since="0.4.0", forRemoval=true) public NodeDownEvent(Node node)
Deprecated, for removal: This API element is subject to removal in a future version.Useof(Node)
instead.- Throws:
NullPointerException
- ifnode
isnull
-
-
Method Detail
-
of
public static NodeDownEvent of(Node node)
- Throws:
NullPointerException
- ifnode
isnull
-
getNode
@NonNull public Node getNode()
Description copied from interface:NodeEvent
Returns the node to which this event refers.
-
-