Package com.spotify.github.v3.prs
Class ImmutableCommentLinks
- java.lang.Object
-
- com.spotify.github.v3.prs.ImmutableCommentLinks
-
- All Implemented Interfaces:
Links,CommentLinks
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableCommentLinks extends Object implements CommentLinks
Immutable implementation ofCommentLinks.Use the builder to create immutable instances:
ImmutableCommentLinks.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCommentLinks.BuilderBuilds instances of typeImmutableCommentLinks.-
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 ImmutableCommentLinks.Builderbuilder()Creates a builder forImmutableCommentLinks.static ImmutableCommentLinkscopyOf(CommentLinks instance)Creates an immutable copy of aCommentLinksvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCommentLinksthat have equal attribute values.inthashCode()Computes a hash code from attributes:self,html,pullRequest.Links.Href<URI>html()Link to the HTML representaion of this item.Links.Href<URI>pullRequest()Link to the pull request that this comment belongs to.Links.Href<URI>self()Link to this entity in the API.StringtoString()Prints the immutable valueCommentLinkswith attribute values.ImmutableCommentLinkswithHtml(Links.Href<URI> value)Copy the current immutable object by setting a value for thehtmlattribute.ImmutableCommentLinkswithPullRequest(Links.Href<URI> value)Copy the current immutable object by setting a value for thepullRequestattribute.ImmutableCommentLinkswithSelf(Links.Href<URI> value)Copy the current immutable object by setting a value for theselfattribute.
-
-
-
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.
-
pullRequest
@Nullable public Links.Href<URI> pullRequest()
Link to the pull request that this comment belongs to.PullRequest- Specified by:
pullRequestin interfaceCommentLinks
-
withSelf
public final ImmutableCommentLinks 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 ImmutableCommentLinks 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
-
withPullRequest
public final ImmutableCommentLinks withPullRequest(@Nullable Links.Href<URI> value)
Copy the current immutable object by setting a value for thepullRequestattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for pullRequest (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableCommentLinksthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:self,html,pullRequest.
-
toString
public String toString()
Prints the immutable valueCommentLinkswith attribute values.
-
copyOf
public static ImmutableCommentLinks copyOf(CommentLinks instance)
Creates an immutable copy of aCommentLinksvalue. 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 CommentLinks instance
-
builder
public static ImmutableCommentLinks.Builder builder()
Creates a builder forImmutableCommentLinks.ImmutableCommentLinks.builder() .self(com.spotify.github.Links.Href<java.net.URI> | null) // nullableself.html(com.spotify.github.Links.Href<java.net.URI> | null) // nullablehtml.pullRequest(com.spotify.github.Links.Href<java.net.URI> | null) // nullablepullRequest.build();- Returns:
- A new ImmutableCommentLinks builder
-
-