Interface IPathsAlgo<R,​E,​P>

Type Parameters:
R - The return type of the visitor algorithm
E - The type of element held by the host
P - The parameter type of the visitor algorithm.
All Superinterfaces:
java.io.Serializable

public interface IPathsAlgo<R,​E,​P>
extends java.io.Serializable
Standard Visitor pattern visitors to use with IPaths objects.
Author:
swong
  • Method Summary

    Modifier and Type Method Description
    R pathCase​(IPath<E> host, P... params)
    Visitor base case
    R pathListCase​(IPathList<E> host, P... params)
    Visitor inductive case
  • Method Details

    • pathCase

      R pathCase​(IPath<E> host, P... params)
      Visitor base case
      Parameters:
      host - The IPath host
      params - The vararg parameters for the base case
      Returns:
      The return value of the processing
    • pathListCase

      R pathListCase​(IPathList<E> host, P... params)
      Visitor inductive case
      Parameters:
      host - The IPathList host
      params - The vararg parameters for the base case
      Returns:
      The return value of the processing