Class TreeWalker<L>
- java.lang.Object
-
- org.intermine.webservice.server.core.EitherVisitor<L,org.intermine.webservice.server.core.DisjointRecursiveList<L>,java.lang.Void>
-
- org.intermine.webservice.server.core.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 org.intermine.webservice.server.core.EitherVisitor
and, call, then
-
-
-
-
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 classEitherVisitor<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 classEitherVisitor<L,org.intermine.webservice.server.core.DisjointRecursiveList<L>,java.lang.Void>
- Parameters:
b
- The content of the right- Returns:
- A T of some kind
-
-