public abstract class

TraversalCallback

extends Object
java.lang.Object
   ↳ com.atlassian.bitbucket.commit.graph.TraversalCallback

Class Overview

A callback which can be used during a traverse of the nodes within a commit graph.

Summary

Public Constructors
TraversalCallback()
Public Methods
void onEnd(TraversalSummary summary)
Receive a summary of the traversal when it has completed.
abstract TraversalStatus onNode(CommitGraphNode node)
Visit a node in the commit graph.
void onStart(TraversalContext context)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public TraversalCallback ()

Public Methods

public void onEnd (TraversalSummary summary)

Receive a summary of the traversal when it has completed.

Parameters
summary summary of the traversal

public abstract TraversalStatus onNode (CommitGraphNode node)

Visit a node in the commit graph. All commits are guaranteed to be visited in topological order: that is children will be visited before parents within the graph.

Parameters
node the current node being traversed
Returns
  • the status of the traversal after visiting the node. If traversal is complete this method will not be invoked again.

public void onStart (TraversalContext context)