public AdapterPathSegment firstSegment(){
  return (!mSegments.isEmpty()) ? (mSegments.get(0)) : null;
}

public AdapterPathSegment firstSegment ( ) { return ( ! mSegments . isEmpty ( ) ) ? ( mSegments . get ( 0 ) ) : null ; }
retrieves the first path segment .
