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 class
ImmutableReviewLinks.Builder
Builds 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.Builder
builder()
Creates a builder forImmutableReviewLinks
.static ImmutableReviewLinks
copyOf(ReviewLinks instance)
Creates an immutable copy of aReviewLinks
value.boolean
equals(Object another)
This instance is equal to all instances ofImmutableReviewLinks
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:html
,pullRequest
.ReviewLinks.Href<URI>
html()
Html.ReviewLinks.Href<URI>
pullRequest()
Pull Request.String
toString()
Prints the immutable valueReviewLinks
with attribute values.ImmutableReviewLinks
withHtml(ReviewLinks.Href<URI> value)
Copy the current immutable object by setting a value for thehtml
attribute.ImmutableReviewLinks
withPullRequest(ReviewLinks.Href<URI> value)
Copy the current immutable object by setting a value for thepullRequest
attribute.
-
-
-
Method Detail
-
html
@Nullable public ReviewLinks.Href<URI> html()
Html.- Specified by:
html
in interfaceReviewLinks
-
pullRequest
@Nullable public ReviewLinks.Href<URI> pullRequest()
Pull Request.- Specified by:
pullRequest
in interfaceReviewLinks
-
withHtml
public final ImmutableReviewLinks withHtml(@Nullable ReviewLinks.Href<URI> value)
Copy the current immutable object by setting a value for thehtml
attribute. 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
this
object
-
withPullRequest
public final ImmutableReviewLinks withPullRequest(@Nullable ReviewLinks.Href<URI> value)
Copy the current immutable object by setting a value for thepullRequest
attribute. 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
this
object
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableReviewLinks
that have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:html
,pullRequest
.
-
toString
public String toString()
Prints the immutable valueReviewLinks
with attribute values.
-
copyOf
public static ImmutableReviewLinks copyOf(ReviewLinks instance)
Creates an immutable copy of aReviewLinks
value. 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) // nullable
html
.pullRequest(com.spotify.github.v3.activity.events.ReviewLinks.Href<java.net.URI> | null) // nullablepullRequest
.build();- Returns:
- A new ImmutableReviewLinks builder
-
-