Package com.atlassian.bitbucket.pull
Interface PullRequestPropertyContext
- All Superinterfaces:
Iterable<com.atlassian.bitbucket.pull.PullRequest>
public interface PullRequestPropertyContext
extends Iterable<com.atlassian.bitbucket.pull.PullRequest>
Allows iterating and adding
properties to pull requests. This context is guaranteed to not
contain duplicate pull requests.-
Method Summary
Modifier and TypeMethodDescriptionvoidsetProperty(com.atlassian.bitbucket.pull.PullRequest pullRequest, String key, Object value) Adds a property to thepullRequest.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
setProperty
void setProperty(@Nonnull com.atlassian.bitbucket.pull.PullRequest pullRequest, @Nonnull String key, @Nonnull Object value) Adds a property to thepullRequest. Any existing property stored underkeywill be replaced.- Parameters:
pullRequest- the pull request that will receive the new propertykey- property keyvalue- property value
-