Class ImmutableReviewLinks
- java.lang.Object
-
- com.spotify.github.v3.activity.events.ImmutableReviewLinks
-
- All Implemented Interfaces:
ReviewLinks
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableReviewLinks extends Object implements ReviewLinks
Immutable implementation ofReviewLinks.Use the builder to create immutable instances:
ImmutableReviewLinks.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableReviewLinks.BuilderBuilds instances of typeImmutableReviewLinks.-
Nested classes/interfaces inherited from interface com.spotify.github.v3.activity.events.ReviewLinks
ReviewLinks.Href<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableReviewLinks.Builderbuilder()Creates a builder forImmutableReviewLinks.static ImmutableReviewLinkscopyOf(ReviewLinks instance)Creates an immutable copy of aReviewLinksvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableReviewLinksthat have equal attribute values.inthashCode()Computes a hash code from attributes:html,pullRequest.ReviewLinks.Href<URI>html()Html.ReviewLinks.Href<URI>pullRequest()Pull Request.StringtoString()Prints the immutable valueReviewLinkswith attribute values.ImmutableReviewLinkswithHtml(ReviewLinks.Href<URI> value)Copy the current immutable object by setting a value for thehtmlattribute.ImmutableReviewLinkswithPullRequest(ReviewLinks.Href<URI> value)Copy the current immutable object by setting a value for thepullRequestattribute.
-
-
-
Method Detail
-
html
@Nullable public ReviewLinks.Href<URI> html()
Html.- Specified by:
htmlin interfaceReviewLinks
-
pullRequest
@Nullable public ReviewLinks.Href<URI> pullRequest()
Pull Request.- Specified by:
pullRequestin interfaceReviewLinks
-
withHtml
public final ImmutableReviewLinks withHtml(@Nullable ReviewLinks.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 ImmutableReviewLinks withPullRequest(@Nullable ReviewLinks.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 ofImmutableReviewLinksthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:html,pullRequest.
-
toString
public String toString()
Prints the immutable valueReviewLinkswith attribute values.
-
copyOf
public static ImmutableReviewLinks copyOf(ReviewLinks instance)
Creates an immutable copy of aReviewLinksvalue. 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 ReviewLinks instance
-
builder
public static ImmutableReviewLinks.Builder builder()
Creates a builder forImmutableReviewLinks.ImmutableReviewLinks.builder() .html(com.spotify.github.v3.activity.events.ReviewLinks.Href<java.net.URI> | null) // nullablehtml.pullRequest(com.spotify.github.v3.activity.events.ReviewLinks.Href<java.net.URI> | null) // nullablepullRequest.build();- Returns:
- A new ImmutableReviewLinks builder
-
-