Class ImmutableReviewLinks

  • All Implemented Interfaces:
    ReviewLinks

    @ParametersAreNonnullByDefault
    @Generated("org.immutables.processor.ProxyProcessor")
    @Immutable
    @CheckReturnValue
    public final class ImmutableReviewLinks
    extends Object
    implements ReviewLinks
    Immutable implementation of ReviewLinks.

    Use the builder to create immutable instances: ImmutableReviewLinks.builder().

    • Method Detail

      • withHtml

        public final ImmutableReviewLinks withHtml​(@Nullable
                                                   ReviewLinks.Href<URI> value)
        Copy the current immutable object by setting a value for the html attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for html (can be null)
        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 the pullRequest attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for pullRequest (can be null)
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of ImmutableReviewLinks that have equal attribute values.
        Overrides:
        equals in class Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: html, pullRequest.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

        public String toString()
        Prints the immutable value ReviewLinks with attribute values.
        Overrides:
        toString in class Object
        Returns:
        A string representation of the value
      • copyOf

        public static ImmutableReviewLinks copyOf​(ReviewLinks instance)
        Creates an immutable copy of a ReviewLinks 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 for ImmutableReviewLinks.
         ImmutableReviewLinks.builder()
            .html(com.spotify.github.v3.activity.events.ReviewLinks.Href&lt;java.net.URI&gt; | null) // nullable html
            .pullRequest(com.spotify.github.v3.activity.events.ReviewLinks.Href&lt;java.net.URI&gt; | null) // nullable pullRequest
            .build();
         
        Returns:
        A new ImmutableReviewLinks builder