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 Detail

      • getElements

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

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