Interface IPaths<E>

Type Parameters:
E - The type of element held in the list
All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
IPath<E>, IPathLatLng, IPathList<E>, IPathListLatLng, IPathsLatLng
All Known Implementing Classes:
Path, PathList

public interface IPaths<E>
extends java.io.Serializable
An abstraction that represents either a list of elements of type E (IPath<E>) or a list of lists of element of type E (IPathList<E>). This is a Standard Visitor pattern host.
Author:
swong
  • Method Summary

    Modifier and Type Method Description
    <R,​ P> R execute​(IPathsAlgo<R,​E,​P> algo, P... params)
    The "accept" method of the visitor hosts.
  • Method Details

    • execute

      <R,​ P> R execute​(IPathsAlgo<R,​E,​P> algo, P... params)
      The "accept" method of the visitor hosts.
      Type Parameters:
      R - The return type of the visitor algorithm
      P - The parameter type of the visitor algorithm.
      Parameters:
      algo - The visitor to accept
      params - The parameters to pass to the visitor execution
      Returns:
      The return value from the visitor execution.