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 Type
    Method
    Description
    void
    setProperty(com.atlassian.bitbucket.pull.PullRequest pullRequest, String key, Object value)
    Adds a property to the pullRequest.

    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 the pullRequest. Any existing property stored under key will be replaced.
      Parameters:
      pullRequest - the pull request that will receive the new property
      key - property key
      value - property value