ArrivalEvent

public final class ArrivalEvent extends Object

An immutable event fired upon arrival at a destination.

Public Constructor Summary

ArrivalEvent(Waypoint waypoint, boolean isFinalDestination)

Public Method Summary

Waypoint
getWaypoint()
The arrival Waypoint.
boolean
isFinalDestination()
Returns whether the arrival waypoint is the final destination in the journey.

Inherited Method Summary

Public Constructors

public ArrivalEvent (Waypoint waypoint, boolean isFinalDestination)

Parameters
waypoint
isFinalDestination

Public Methods

public Waypoint getWaypoint ()

The arrival Waypoint. This will be identical to the waypoint set using Navigator.setDestination(Waypoint).

public boolean isFinalDestination ()

Returns whether the arrival waypoint is the final destination in the journey.