Class FormatXML1RuntimeChildBuild

java.lang.Object
com.io7m.coffeepick.runtime.format.xml.FormatXML1RuntimeChildBuild
All Implemented Interfaces:
FormatXML1RuntimeChildType, FormatXML1RuntimeChildType.FormatXML1RuntimeChildBuildType

public final class FormatXML1RuntimeChildBuild
extends java.lang.Object
implements FormatXML1RuntimeChildType.FormatXML1RuntimeChildBuildType
The build element.
  • Method Details

    • build

      public RuntimeBuild build()
      Specified by:
      build in interface FormatXML1RuntimeChildType.FormatXML1RuntimeChildBuildType
      Returns:
      The build information
    • withBuild

      public final FormatXML1RuntimeChildBuild withBuild​(RuntimeBuild value)
      Copy the current immutable object by setting a value for the build attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for build
      Returns:
      A modified copy of the this object
    • equals

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

      public int hashCode()
      Computes a hash code from attributes: build.
      Overrides:
      hashCode in class java.lang.Object
      Returns:
      hashCode value
    • toString

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

      public static FormatXML1RuntimeChildBuild of​(RuntimeBuild build)
      Construct a new immutable FormatXML1RuntimeChildBuild instance.
      Parameters:
      build - The value for the build attribute
      Returns:
      An immutable FormatXML1RuntimeChildBuild instance
    • copyOf

      Creates an immutable copy of a FormatXML1RuntimeChildType.FormatXML1RuntimeChildBuildType 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 FormatXML1RuntimeChildBuild instance
    • builder

      public static FormatXML1RuntimeChildBuild.Builder builder()
      Creates a builder for FormatXML1RuntimeChildBuild.
       FormatXML1RuntimeChildBuild.builder()
          .setBuild(com.io7m.coffeepick.runtime.RuntimeBuild) // required build
          .build();
       
      Returns:
      A new FormatXML1RuntimeChildBuild builder