Class JourneyMapEvent
java.lang.Object
journeymap.api.v2.common.event.impl.JourneyMapEvent
- Direct Known Subclasses:
ClientEvent,WaypointGroupEvent,WaypointGroupTransferEvent
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Cancels the event only if the Type is cancellable.booleanWhether the event is cancellable.booleanWhether the event has been cancelled.
-
Field Details
-
timestamp
public final long timestampSystem millis when event was created.
-
-
Constructor Details
-
JourneyMapEvent
protected JourneyMapEvent(boolean cancellable)
-
-
Method Details
-
isCancelled
public boolean isCancelled()Whether the event has been cancelled.- Returns:
- true if cancelled
-
cancel
public void cancel()Cancels the event only if the Type is cancellable. -
isCancellable
public boolean isCancellable()Whether the event is cancellable.- Returns:
- true if cancellable.
-