Interface CommitVisitor

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface CommitVisitor
    This functional interface is used when browsing Git commits and lets consumers receive summary implementation-independent informations about a single commit.
    • Method Detail

      • visit

        boolean visit​(Commit commit)
        Visits a single commit and receives all of the commit simplified fields. Consumer returns true to keep browsing next commits or false to stop.
        Parameters:
        commit - the value object holding all data about the commit being visited.
        Returns:
        true if to continue browsing to the next commit (if any), or false to stop