public class PullRequestDiffRequest extends AbstractPullRequestRequest
Modifier and Type | Class and Description |
---|---|
static class |
PullRequestDiffRequest.Builder |
AbstractPullRequestRequest.AbstractBuilder<T extends AbstractPullRequestRequest.AbstractBuilder<T>>
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_CONTEXT_LINES
Indicates the request should supply the default number of context lines for added and removed lines.
|
Modifier and Type | Method and Description |
---|---|
int |
getContextLines()
Retrieves the numbers of context lines to show around added and removed lines.
|
CommentThreadDiffAnchorType |
getDiffType() |
DiffContentFilter |
getFilter() |
String |
getPath() |
String |
getSinceId() |
String |
getSrcPath() |
String |
getUntilId() |
DiffWhitespace |
getWhitespace() |
boolean |
hasContextLines()
Retrieves a flag indicating whether an explicit number of context lines has been requested.
|
boolean |
isWithComments() |
getPullRequestId, getRepositoryId
public static final int DEFAULT_CONTEXT_LINES
public int getContextLines()
0
context
will be omitted and only added and removed lines will be shown. For positive values, that number of lines will
be shown. For negative values, the system-configured default number will be shown.@Nullable public CommentThreadDiffAnchorType getDiffType()
@Nullable public DiffContentFilter getFilter()
@Nullable public String getPath()
@Nullable public String getSinceId()
sinceId
for the diff requested@Nullable public String getSrcPath()
copies
and
moves/renames
and null
for other types@Nullable public String getUntilId()
untilId
for the diff requested@Nonnull public DiffWhitespace getWhitespace()
public boolean hasContextLines()
true
, getContextLines()
will return a value greater than or equal to 0
, When
it returns false
, getContextLines()
will return DEFAULT_CONTEXT_LINES
.true
if a non-default
number of context lines has been requested;
otherwise, false
to use the default number of linespublic boolean isWithComments()
Copyright © 2022 Atlassian. All rights reserved.