Class ImmutableMarkdowns

    • Method Detail

      • withValues

        public final ImmutableMarkdowns withValues​(StaticContentClient.Markdown... elements)
        Copy the current immutable object with elements that replace the content of values.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withValues

        public final ImmutableMarkdowns withValues​(Iterable<? extends StaticContentClient.Markdown> elements)
        Copy the current immutable object with elements that replace the content of values. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of values elements to set
        Returns:
        A modified copy of this object
      • withImages

        public final ImmutableMarkdowns withImages​(Iterable<? extends StaticContentClient.ImageResource> elements)
        Copy the current immutable object with elements that replace the content of images. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of images elements to set
        Returns:
        A modified copy of this object
      • withLinks

        public final ImmutableMarkdowns withLinks​(Iterable<? extends StaticContentClient.LinkResource> elements)
        Copy the current immutable object with elements that replace the content of links. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of links elements to set
        Returns:
        A modified copy of this object
      • withLocales

        public final ImmutableMarkdowns withLocales​(String... elements)
        Copy the current immutable object with elements that replace the content of locales.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withLocales

        public final ImmutableMarkdowns withLocales​(Iterable<String> elements)
        Copy the current immutable object with elements that replace the content of locales. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of locales elements to set
        Returns:
        A modified copy of this object
      • equals

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of ImmutableMarkdowns 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: values, images, links, locales.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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

        public static ImmutableMarkdowns copyOf​(StaticContentClient.Markdowns instance)
        Creates an immutable copy of a StaticContentClient.Markdowns 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 Markdowns instance
      • builder

        public static ImmutableMarkdowns.Builder builder()
        Creates a builder for ImmutableMarkdowns.
         ImmutableMarkdowns.builder()
            .addValues|addAllValues(io.thestencil.staticontent.api.StaticContentClient.Markdown) // values elements
            .addImages|addAllImages(io.thestencil.staticontent.api.StaticContentClient.ImageResource) // images elements
            .addLinks|addAllLinks(io.thestencil.staticontent.api.StaticContentClient.LinkResource) // links elements
            .addLocales|addAllLocales(String) // locales elements
            .build();
         
        Returns:
        A new ImmutableMarkdowns builder