@JsonSurrogate public class

RestDiffCommentAnchor

extends RestMapEntity
java.lang.Object
   ↳ java.util.AbstractMap<K, V>
     ↳ java.util.HashMap<K, V>
       ↳ java.util.LinkedHashMap<K, V>
         ↳ com.atlassian.bitbucket.rest.RestMapEntity
           ↳ com.atlassian.bitbucket.rest.comment.RestDiffCommentAnchor
Known Direct Subclasses

Summary

Constants
String FILE_TYPE
String LINE
String LINE_TYPE
Fields
public static final RestDiffCommentAnchor LINE_REQUEST_MINIMUM_EXAMPLE
public static final Function<DiffCommentAnchorRestDiffCommentAnchor> REST_TRANSFORM
Public Constructors
RestDiffCommentAnchor()
RestDiffCommentAnchor(Map<StringObject> values)
@Deprecated RestDiffCommentAnchor(DiffCommentAnchor anchor)
This constructor is deprecated. in 4.11 to be removed in 5.0. The Comment API is going through a maintenance cycle. For more details see the API Changelog
Protected Constructors
RestDiffCommentAnchor(String fromHash, String toHash, String path, String srcPath, Integer line, DiffSegmentType lineType, DiffFileType fileType)
RestDiffCommentAnchor(String fromHash, String toHash, Integer line, DiffSegmentType lineType, DiffFileType fileType)
RestDiffCommentAnchor(String fromHash, String toHash, Integer line, DiffSegmentType lineType, DiffFileType fileType, RestPullRequest pullRequest)
Public Methods
DiffFileType getFileType()
int getLine()
DiffSegmentType getLineType()
RestPath getPath()
@Nullable RestPullRequest getPullRequest()
RestPath getSrcPath()
boolean hasSrcPath()
boolean isLineComment()
@Deprecated AddFileCommentRequest.Builder toFile(I18nService i18nService)
This method is deprecated. in 4.7 for removal in 5.0
@Deprecated AddDiffCommentRequest.Builder toLine(I18nService i18nService)
This method is deprecated. in 4.7 for removal in 5.0
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.rest.RestMapEntity
From class java.util.LinkedHashMap
From class java.util.HashMap
From class java.util.AbstractMap
From class java.lang.Object
From interface java.util.Map

Constants

public static final String FILE_TYPE

Constant Value: "fileType"

public static final String LINE

Constant Value: "line"

public static final String LINE_TYPE

Constant Value: "lineType"

Fields

public static final RestDiffCommentAnchor LINE_REQUEST_MINIMUM_EXAMPLE

public static final Function<DiffCommentAnchorRestDiffCommentAnchor> REST_TRANSFORM

Public Constructors

public RestDiffCommentAnchor ()

public RestDiffCommentAnchor (Map<StringObject> values)

@Deprecated public RestDiffCommentAnchor (DiffCommentAnchor anchor)

This constructor is deprecated.
in 4.11 to be removed in 5.0. The Comment API is going through a maintenance cycle. For more details see the API Changelog

Protected Constructors

protected RestDiffCommentAnchor (String fromHash, String toHash, String path, String srcPath, Integer line, DiffSegmentType lineType, DiffFileType fileType)

protected RestDiffCommentAnchor (String fromHash, String toHash, Integer line, DiffSegmentType lineType, DiffFileType fileType)

protected RestDiffCommentAnchor (String fromHash, String toHash, Integer line, DiffSegmentType lineType, DiffFileType fileType, RestPullRequest pullRequest)

Public Methods

public DiffFileType getFileType ()

public int getLine ()

public DiffSegmentType getLineType ()

public RestPath getPath ()

@Nullable public RestPullRequest getPullRequest ()

public RestPath getSrcPath ()

public boolean hasSrcPath ()

public boolean isLineComment ()

@Deprecated public AddFileCommentRequest.Builder toFile (I18nService i18nService)

This method is deprecated.
in 4.7 for removal in 5.0

@Deprecated public AddDiffCommentRequest.Builder toLine (I18nService i18nService)

This method is deprecated.
in 4.7 for removal in 5.0