Interface NavBuilder.Commit

All Superinterfaces:
NavBuilder.Builder<NavBuilder.Commit>, NavBuilder.PathBuilder<NavBuilder.Commit>
Enclosing interface:
NavBuilder

public static interface NavBuilder.Commit extends NavBuilder.PathBuilder<NavBuilder.Commit>
Builds URLs of the form /projects/PROJ/repos/REPO/commits/ID
  • Method Details

    • change

      @Nonnull NavBuilder.Commit change(@Nonnull Path path)
      Adds an anchor for the specified path, producing a URL like /projects/PROJ/repos/repo/commits/ID#path.
      Parameters:
      path - the path to set in the anchor
      Returns:
      this
    • change

      @Nonnull NavBuilder.Commit change(@Nonnull String path)
      Adds an anchor for the specified path, producing a URL like /projects/PROJ/repos/repo/commits/ID#path.
      Parameters:
      path - the path to set in the anchor
      Returns:
      this
    • comment

      @Nonnull NavBuilder.CommitComment comment(long commentId)
      Retrieves a builder for interacting with the specified comment on this commit.
      Parameters:
      commentId - the ID of the comment to build URLs for
      Returns:
      a comment URL builder
    • unwatch

      @Nonnull NavBuilder.Commit unwatch()
      Adds an unwatch query parameter to the URL for this commit.
      Returns:
      this