Class ImmutableSiteVisitorOutput

    • Method Detail

      • withMessage

        public final ImmutableSiteVisitorOutput withMessage​(SiteVisitor.Message... elements)
        Copy the current immutable object with elements that replace the content of message.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withMessage

        public final ImmutableSiteVisitorOutput withMessage​(Iterable<? extends SiteVisitor.Message> elements)
        Copy the current immutable object with elements that replace the content of message. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of message elements to set
        Returns:
        A modified copy of this object
      • withSites

        public final ImmutableSiteVisitorOutput withSites​(Iterable<? extends MigrationBuilder.LocalizedSite> elements)
        Copy the current immutable object with elements that replace the content of sites. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of sites 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 ImmutableSiteVisitorOutput 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: message, sites.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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

        public static ImmutableSiteVisitorOutput.Builder builder()
        Creates a builder for ImmutableSiteVisitorOutput.
         ImmutableSiteVisitorOutput.builder()
            .addMessage|addAllMessage(io.thestencil.client.spi.staticontent.visitors.SiteVisitor.Message) // message elements
            .addSites|addAllSites(io.thestencil.client.api.MigrationBuilder.LocalizedSite) // sites elements
            .build();
         
        Returns:
        A new ImmutableSiteVisitorOutput builder