Class TreeWalker<L>

  • Type Parameters:
    L - The type of an individual leaf.
    All Implemented Interfaces:
    Function<Either<L,​org.intermine.webservice.server.core.DisjointRecursiveList<L>>,​java.lang.Void>

    public abstract class TreeWalker<L>
    extends EitherVisitor<L,​org.intermine.webservice.server.core.DisjointRecursiveList<L>,​java.lang.Void>
    A type alias to reduce type stuttering.
    Author:
    Alex Kalderimis
    • Constructor Summary

      Constructors 
      Constructor Description
      TreeWalker()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Void visitLeft​(L a)
      Override this to access the left hand side.
      java.lang.Void visitRight​(org.intermine.webservice.server.core.DisjointRecursiveList<L> b)
      Override this to access the right hand side.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TreeWalker

        public TreeWalker()
    • Method Detail

      • visitLeft

        public java.lang.Void visitLeft​(L a)
        Description copied from class: EitherVisitor
        Override this to access the left hand side.
        Specified by:
        visitLeft in class EitherVisitor<L,​org.intermine.webservice.server.core.DisjointRecursiveList<L>,​java.lang.Void>
        Parameters:
        a - The content of the left.
        Returns:
        A T of some kind
      • visitRight

        public java.lang.Void visitRight​(org.intermine.webservice.server.core.DisjointRecursiveList<L> b)
        Description copied from class: EitherVisitor
        Override this to access the right hand side.
        Specified by:
        visitRight in class EitherVisitor<L,​org.intermine.webservice.server.core.DisjointRecursiveList<L>,​java.lang.Void>
        Parameters:
        b - The content of the right
        Returns:
        A T of some kind