Package com.atlassian.bitbucket.project
Class AbstractVoidProjectVisitor
java.lang.Object
com.atlassian.bitbucket.project.AbstractVoidProjectVisitor
- All Implemented Interfaces:
ProjectVisitor<Void>
A base implementation of
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doVisit
(PersonalProject project) Called byvisit(PersonalProject)
.protected void
Called byvisit(Project)
.visit
(PersonalProject project) InvokesdoVisit(PersonalProject)
and returnsnull
.InvokesdoVisit(Project)
and returnsnull
.
-
Constructor Details
-
AbstractVoidProjectVisitor
public AbstractVoidProjectVisitor()
-
-
Method Details
-
visit
InvokesdoVisit(Project)
and returnsnull
.- Specified by:
visit
in interfaceProjectVisitor<Void>
- Parameters:
project
- the project to visit- Returns:
null
-
visit
InvokesdoVisit(PersonalProject)
and returnsnull
.- Specified by:
visit
in interfaceProjectVisitor<Void>
- Parameters:
project
- the personal project to visit- Returns:
null
-
doVisit
Called byvisit(Project)
. This base implementation does nothing.- Parameters:
project
- ignored
-
doVisit
Called byvisit(PersonalProject)
. This base implementation does nothing.- Parameters:
project
- ignored
-