Interface Path<P extends Path<P,E>,E>

Type Parameters:
P - the path type
E - the path element type

public interface Path<P extends Path<P,E>,E>
Generic path to something.

A path consists of elements and optional continuation paths.

Author:
harald
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the elements describing the path.
    Gets the sub paths starting at end of this path.
  • Method Details

    • getElements

      List<E> getElements()
      Gets the elements describing the path.
      Returns:
      the elements, empty if none (never null)
    • getPaths

      List<P> getPaths()
      Gets the sub paths starting at end of this path.
      Returns:
      the sub paths, empty if end of path (never null)