Class ImmutableEveliSources

java.lang.Object
io.digiexpress.eveli.envir.api.ImmutableEveliSources
All Implemented Interfaces:
EveliEnvirClient.EveliSources

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

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

  • Method Details

    • getStencil

      public StencilComposer.SiteState getStencil()
      Specified by:
      getStencil in interface EveliEnvirClient.EveliSources
      Returns:
      The value of the stencil attribute
    • getWrench

      public AstTag getWrench()
      Specified by:
      getWrench in interface EveliEnvirClient.EveliSources
      Returns:
      The value of the wrench attribute
    • getDialob

      public com.google.common.collect.ImmutableList<io.dialob.api.form.Form> getDialob()
      Specified by:
      getDialob in interface EveliEnvirClient.EveliSources
      Returns:
      The value of the dialob attribute
    • withStencil

      public final ImmutableEveliSources withStencil(StencilComposer.SiteState value)
      Copy the current immutable object by setting a value for the stencil attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for stencil
      Returns:
      A modified copy of the this object
    • withWrench

      public final ImmutableEveliSources withWrench(AstTag value)
      Copy the current immutable object by setting a value for the wrench attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for wrench
      Returns:
      A modified copy of the this object
    • withDialob

      public final ImmutableEveliSources withDialob(io.dialob.api.form.Form... elements)
      Copy the current immutable object with elements that replace the content of dialob.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withDialob

      public final ImmutableEveliSources withDialob(Iterable<? extends io.dialob.api.form.Form> elements)
      Copy the current immutable object with elements that replace the content of dialob. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of dialob 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 ImmutableEveliSources 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: stencil, wrench, dialob.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      public static ImmutableEveliSources copyOf(EveliEnvirClient.EveliSources instance)
      Creates an immutable copy of a EveliEnvirClient.EveliSources 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 EveliSources instance
    • builder

      public static ImmutableEveliSources.Builder builder()
      Creates a builder for ImmutableEveliSources.
       ImmutableEveliSources.builder()
          .stencil(io.thestencil.client.api.StencilComposer.SiteState) // required stencil
          .wrench(io.resys.hdes.client.api.ast.AstTag) // required wrench
          .addDialob|addAllDialob(io.dialob.api.form.Form) // dialob elements
          .build();
       
      Returns:
      A new ImmutableEveliSources builder