public static class CommitsBetweenRequest.Builder extends AbstractCommitsRequest.AbstractCommitsRequestBuilder<CommitsBetweenRequest.Builder>
NOT_BLANK
Constructor and Description |
---|
Builder(CommitsBetweenRequest request)
Creates a new
Builder by copying the specified request . |
Builder(PullRequest pullRequest)
Creates a new
Builder with defaults appropriate for retrieving the commits which are included by
the specified PullRequest . |
Builder(Repository repository) |
Modifier and Type | Method and Description |
---|---|
CommitsBetweenRequest |
build() |
CommitsBetweenRequest.Builder |
exclude(Iterable<String> values) |
CommitsBetweenRequest.Builder |
exclude(String value,
String... values) |
CommitsBetweenRequest.Builder |
include(Iterable<String> values) |
CommitsBetweenRequest.Builder |
include(String value,
String... values) |
CommitsBetweenRequest.Builder |
secondaryRepository(Repository value) |
protected CommitsBetweenRequest.Builder |
self() |
followRenames, ignoreMissing, maxMessageLength, merges, order, path, paths, paths, propertyKey, propertyKeys, propertyKeys
addIf, addIf, addIf, addIf, addIf, addIf, checkNotBlank, requireNonBlank
public Builder(@Nonnull Repository repository)
public Builder(@Nonnull CommitsBetweenRequest request)
Builder
by copying the specified request
.request
- the request to copypublic Builder(@Nonnull PullRequest pullRequest)
Builder
with defaults appropriate for retrieving the commits which are included by
the specified PullRequest
.
The new builder:
to ref's
Repository
as the
repository
for the requestfrom ref's
Repository
as the
secondary repository
, if the provided
PullRequest
is cross-repository
Includes
the from ref
Excludes
the to ref
pullRequest
- the pull request to retrieve commits for@Nonnull public CommitsBetweenRequest build()
CommitsBetweenRequest
assembled from the provided valuesIllegalStateException
- if a secondary repository
was
specified and it belongs to a different hierarchy
than the primary repository@Nonnull public CommitsBetweenRequest.Builder exclude(@Nullable String value, @Nullable String... values)
@Nonnull public CommitsBetweenRequest.Builder exclude(@Nullable Iterable<String> values)
@Nonnull public CommitsBetweenRequest.Builder include(@Nullable String value, @Nullable String... values)
@Nonnull public CommitsBetweenRequest.Builder include(@Nullable Iterable<String> values)
@Nonnull public CommitsBetweenRequest.Builder secondaryRepository(@Nullable Repository value)
protected CommitsBetweenRequest.Builder self()
self
in class AbstractCommitsRequest.AbstractCommitsRequestBuilder<CommitsBetweenRequest.Builder>
Copyright © 2019 Atlassian. All rights reserved.