Package com.spotify.github.v3.prs
Class ImmutablePullRequestLinks
- java.lang.Object
-
- com.spotify.github.v3.prs.ImmutablePullRequestLinks
-
- All Implemented Interfaces:
Links,PullRequestLinks
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutablePullRequestLinks extends Object implements PullRequestLinks
Immutable implementation ofPullRequestLinks.Use the builder to create immutable instances:
ImmutablePullRequestLinks.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutablePullRequestLinks.BuilderBuilds instances of typeImmutablePullRequestLinks.-
Nested classes/interfaces inherited from interface com.spotify.github.Links
Links.Href<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutablePullRequestLinks.Builderbuilder()Creates a builder forImmutablePullRequestLinks.Links.Href<URI>comments()API link to the comments on this pull request.Links.Href<URI>commits()API link to the commits on this pull request.static ImmutablePullRequestLinkscopyOf(PullRequestLinks instance)Creates an immutable copy of aPullRequestLinksvalue.booleanequals(Object another)This instance is equal to all instances ofImmutablePullRequestLinksthat have equal attribute values.inthashCode()Computes a hash code from attributes:self,html,issue,comments,reviewComment,reviewComments,commits,statuses.Links.Href<URI>html()Link to the HTML representaion of this item.Links.Href<URI>issue()API link to the pull request.Links.Href<String>reviewComment()API link template to a specific review comments on this pull request.Links.Href<URI>reviewComments()API link to the review comments on this pull request.Links.Href<URI>self()Link to this entity in the API.Links.Href<URI>statuses()API link to the statuses on this pull request.StringtoString()Prints the immutable valuePullRequestLinkswith attribute values.ImmutablePullRequestLinkswithComments(Links.Href<URI> value)Copy the current immutable object by setting a value for thecommentsattribute.ImmutablePullRequestLinkswithCommits(Links.Href<URI> value)Copy the current immutable object by setting a value for thecommitsattribute.ImmutablePullRequestLinkswithHtml(Links.Href<URI> value)Copy the current immutable object by setting a value for thehtmlattribute.ImmutablePullRequestLinkswithIssue(Links.Href<URI> value)Copy the current immutable object by setting a value for theissueattribute.ImmutablePullRequestLinkswithReviewComment(Links.Href<String> value)Copy the current immutable object by setting a value for thereviewCommentattribute.ImmutablePullRequestLinkswithReviewComments(Links.Href<URI> value)Copy the current immutable object by setting a value for thereviewCommentsattribute.ImmutablePullRequestLinkswithSelf(Links.Href<URI> value)Copy the current immutable object by setting a value for theselfattribute.ImmutablePullRequestLinkswithStatuses(Links.Href<URI> value)Copy the current immutable object by setting a value for thestatusesattribute.
-
-
-
Method Detail
-
self
@Nullable public Links.Href<URI> self()
Link to this entity in the API.
-
html
@Nullable public Links.Href<URI> html()
Link to the HTML representaion of this item.
-
issue
@Nullable public Links.Href<URI> issue()
API link to the pull request.- Specified by:
issuein interfacePullRequestLinks
-
comments
@Nullable public Links.Href<URI> comments()
API link to the comments on this pull request.Comment- Specified by:
commentsin interfacePullRequestLinks
-
reviewComment
@Nullable public Links.Href<String> reviewComment()
API link template to a specific review comments on this pull request.- Specified by:
reviewCommentin interfacePullRequestLinks
-
reviewComments
@Nullable public Links.Href<URI> reviewComments()
API link to the review comments on this pull request.Comment- Specified by:
reviewCommentsin interfacePullRequestLinks
-
commits
@Nullable public Links.Href<URI> commits()
API link to the commits on this pull request.CommitItem- Specified by:
commitsin interfacePullRequestLinks
-
statuses
@Nullable public Links.Href<URI> statuses()
API link to the statuses on this pull request.Status- Specified by:
statusesin interfacePullRequestLinks
-
withSelf
public final ImmutablePullRequestLinks withSelf(@Nullable Links.Href<URI> value)
Copy the current immutable object by setting a value for theselfattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for self (can benull)- Returns:
- A modified copy of the
thisobject
-
withHtml
public final ImmutablePullRequestLinks withHtml(@Nullable Links.Href<URI> value)
Copy the current immutable object by setting a value for thehtmlattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for html (can benull)- Returns:
- A modified copy of the
thisobject
-
withIssue
public final ImmutablePullRequestLinks withIssue(@Nullable Links.Href<URI> value)
Copy the current immutable object by setting a value for theissueattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for issue (can benull)- Returns:
- A modified copy of the
thisobject
-
withComments
public final ImmutablePullRequestLinks withComments(@Nullable Links.Href<URI> value)
Copy the current immutable object by setting a value for thecommentsattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for comments (can benull)- Returns:
- A modified copy of the
thisobject
-
withReviewComment
public final ImmutablePullRequestLinks withReviewComment(@Nullable Links.Href<String> value)
Copy the current immutable object by setting a value for thereviewCommentattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for reviewComment (can benull)- Returns:
- A modified copy of the
thisobject
-
withReviewComments
public final ImmutablePullRequestLinks withReviewComments(@Nullable Links.Href<URI> value)
Copy the current immutable object by setting a value for thereviewCommentsattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for reviewComments (can benull)- Returns:
- A modified copy of the
thisobject
-
withCommits
public final ImmutablePullRequestLinks withCommits(@Nullable Links.Href<URI> value)
Copy the current immutable object by setting a value for thecommitsattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for commits (can benull)- Returns:
- A modified copy of the
thisobject
-
withStatuses
public final ImmutablePullRequestLinks withStatuses(@Nullable Links.Href<URI> value)
Copy the current immutable object by setting a value for thestatusesattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for statuses (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutablePullRequestLinksthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:self,html,issue,comments,reviewComment,reviewComments,commits,statuses.
-
toString
public String toString()
Prints the immutable valuePullRequestLinkswith attribute values.
-
copyOf
public static ImmutablePullRequestLinks copyOf(PullRequestLinks instance)
Creates an immutable copy of aPullRequestLinksvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable PullRequestLinks instance
-
builder
public static ImmutablePullRequestLinks.Builder builder()
Creates a builder forImmutablePullRequestLinks.ImmutablePullRequestLinks.builder() .self(com.spotify.github.Links.Href<java.net.URI> | null) // nullableself.html(com.spotify.github.Links.Href<java.net.URI> | null) // nullablehtml.issue(com.spotify.github.Links.Href<java.net.URI> | null) // nullableissue.comments(com.spotify.github.Links.Href<java.net.URI> | null) // nullablecomments.reviewComment(com.spotify.github.Links.Href<String> | null) // nullablereviewComment.reviewComments(com.spotify.github.Links.Href<java.net.URI> | null) // nullablereviewComments.commits(com.spotify.github.Links.Href<java.net.URI> | null) // nullablecommits.statuses(com.spotify.github.Links.Href<java.net.URI> | null) // nullablestatuses.build();- Returns:
- A new ImmutablePullRequestLinks builder
-
-