public abstract class

AbstractAddCommentRequest

extends Object
java.lang.Object
   ↳ com.atlassian.stash.comment.AbstractAddCommentRequest
Known Direct Subclasses

Class Overview

Base class for comment creation requests.

Summary

Nested Classes
class AbstractAddCommentRequest.AbstractBuilder<B extends AbstractBuilder<B, R extends AbstractAddCommentRequest>, R>  
Protected Constructors
AbstractAddCommentRequest(AbstractBuilder<?, ?> builder)
Public Methods
@Nullable String getFromHash()
@Nonnull String getPath()
@Nullable String getSrcPath()
@Nonnull String getText()
@Nullable String getToHash()
[Expand]
Inherited Methods
From class java.lang.Object

Protected Constructors

protected AbstractAddCommentRequest (AbstractBuilder<?, ?> builder)

Public Methods

@Nullable public String getFromHash ()

Returns
  • the from hash to anchor the comment to, or null to automatically infer it

@Nonnull public String getPath ()

Returns
  • the path of the file to comment on

@Nullable public String getSrcPath ()

Returns
  • the path the file to comment on used to have, for copies and moves

@Nonnull public String getText ()

Returns
  • the comment text

@Nullable public String getToHash ()

Returns
  • the to hash to anchor the comment to, or null to automatically infer it