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.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFormatXML1RuntimeChildBuild.BuilderBuilds instances of typeFormatXML1RuntimeChildBuild.Nested classes/interfaces inherited from interface com.io7m.coffeepick.runtime.format.xml.FormatXML1RuntimeChildType
FormatXML1RuntimeChildType.FormatXML1RuntimeChildBuildType, FormatXML1RuntimeChildType.FormatXML1RuntimeChildHashType, FormatXML1RuntimeChildType.FormatXML1RuntimeChildTagsType, FormatXML1RuntimeChildType.Kind -
Method Summary
Modifier and Type Method Description RuntimeBuildbuild()static FormatXML1RuntimeChildBuild.Builderbuilder()Creates a builder forFormatXML1RuntimeChildBuild.static FormatXML1RuntimeChildBuildcopyOf(FormatXML1RuntimeChildType.FormatXML1RuntimeChildBuildType instance)Creates an immutable copy of aFormatXML1RuntimeChildType.FormatXML1RuntimeChildBuildTypevalue.booleanequals(java.lang.Object another)This instance is equal to all instances ofFormatXML1RuntimeChildBuildthat have equal attribute values.inthashCode()Computes a hash code from attributes:build.static FormatXML1RuntimeChildBuildof(RuntimeBuild build)Construct a new immutableFormatXML1RuntimeChildBuildinstance.java.lang.StringtoString()Prints the immutable valueFormatXML1RuntimeChildBuildwith attribute values.FormatXML1RuntimeChildBuildwithBuild(RuntimeBuild value)Copy the current immutable object by setting a value for thebuildattribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.io7m.coffeepick.runtime.format.xml.FormatXML1RuntimeChildType.FormatXML1RuntimeChildBuildType
kind
-
Method Details
-
build
- Specified by:
buildin interfaceFormatXML1RuntimeChildType.FormatXML1RuntimeChildBuildType- Returns:
- The build information
-
withBuild
Copy the current immutable object by setting a value for thebuildattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for build- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(java.lang.Object another)This instance is equal to all instances ofFormatXML1RuntimeChildBuildthat have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
hashCode
public int hashCode()Computes a hash code from attributes:build.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
toString
public java.lang.String toString()Prints the immutable valueFormatXML1RuntimeChildBuildwith attribute values.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
of
Construct a new immutableFormatXML1RuntimeChildBuildinstance.- Parameters:
build- The value for thebuildattribute- Returns:
- An immutable FormatXML1RuntimeChildBuild instance
-
copyOf
public static FormatXML1RuntimeChildBuild copyOf(FormatXML1RuntimeChildType.FormatXML1RuntimeChildBuildType instance)Creates an immutable copy of aFormatXML1RuntimeChildType.FormatXML1RuntimeChildBuildTypevalue. 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
Creates a builder forFormatXML1RuntimeChildBuild.FormatXML1RuntimeChildBuild.builder() .setBuild(com.io7m.coffeepick.runtime.RuntimeBuild) // requiredbuild.build();- Returns:
- A new FormatXML1RuntimeChildBuild builder
-