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