Returns the last component (from the end of the path). For example, if the path is /a/b/c
then this will return the c
component. After calling last
, next
will always return null
, and previous
will return the component to the left of the one returned by last
, if any exist.