public abstract class AbstractVoidProjectVisitor extends Object implements ProjectVisitor<Void>
ProjectVisitor
intended for use in building visitors which do not need to return
any values. Each visit
method delegates to a doVisit
method. While this class is abstract
,
visit
methods for all types are implemented to delegate to a doVisit
method and return null
,
and all doVisit
methods are implemented as no-ops.Constructor and Description |
---|
AbstractVoidProjectVisitor() |
Modifier and Type | Method and Description |
---|---|
protected void |
doVisit(PersonalProject project)
Called by
visit(PersonalProject) . |
protected void |
doVisit(Project project)
Called by
visit(Project) . |
Void |
visit(PersonalProject project)
Invokes
doVisit(PersonalProject) and returns null . |
Void |
visit(Project project)
Invokes
doVisit(Project) and returns null . |
public Void visit(@Nonnull Project project)
doVisit(Project)
and returns null
.visit
in interface ProjectVisitor<Void>
project
- the project to visitnull
public Void visit(@Nonnull PersonalProject project)
doVisit(PersonalProject)
and returns null
.visit
in interface ProjectVisitor<Void>
project
- the personal project to visitnull
protected void doVisit(@Nonnull Project project)
visit(Project)
. This base implementation does nothing.project
- ignoredprotected void doVisit(@Nonnull PersonalProject project)
visit(PersonalProject)
. This base implementation does nothing.project
- ignoredCopyright © 2019 Atlassian. All rights reserved.