Class FormatXML1RuntimeChildHash
java.lang.Object
com.io7m.coffeepick.runtime.format.xml.FormatXML1RuntimeChildHash
- All Implemented Interfaces:
FormatXML1RuntimeChildType,FormatXML1RuntimeChildType.FormatXML1RuntimeChildHashType
public final class FormatXML1RuntimeChildHash extends java.lang.Object implements FormatXML1RuntimeChildType.FormatXML1RuntimeChildHashType
The hash element.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFormatXML1RuntimeChildHash.BuilderBuilds instances of typeFormatXML1RuntimeChildHash.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 static FormatXML1RuntimeChildHash.Builderbuilder()Creates a builder forFormatXML1RuntimeChildHash.static FormatXML1RuntimeChildHashcopyOf(FormatXML1RuntimeChildType.FormatXML1RuntimeChildHashType instance)Creates an immutable copy of aFormatXML1RuntimeChildType.FormatXML1RuntimeChildHashTypevalue.booleanequals(java.lang.Object another)This instance is equal to all instances ofFormatXML1RuntimeChildHashthat have equal attribute values.RuntimeHashhash()inthashCode()Computes a hash code from attributes:hash.static FormatXML1RuntimeChildHashof(RuntimeHash hash)Construct a new immutableFormatXML1RuntimeChildHashinstance.java.lang.StringtoString()Prints the immutable valueFormatXML1RuntimeChildHashwith attribute values.FormatXML1RuntimeChildHashwithHash(RuntimeHash value)Copy the current immutable object by setting a value for thehashattribute.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.FormatXML1RuntimeChildHashType
kind
-
Method Details
-
hash
- Specified by:
hashin interfaceFormatXML1RuntimeChildType.FormatXML1RuntimeChildHashType- Returns:
- The hash value
-
withHash
Copy the current immutable object by setting a value for thehashattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for hash- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(java.lang.Object another)This instance is equal to all instances ofFormatXML1RuntimeChildHashthat have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
hashCode
public int hashCode()Computes a hash code from attributes:hash.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
toString
public java.lang.String toString()Prints the immutable valueFormatXML1RuntimeChildHashwith attribute values.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
of
Construct a new immutableFormatXML1RuntimeChildHashinstance.- Parameters:
hash- The value for thehashattribute- Returns:
- An immutable FormatXML1RuntimeChildHash instance
-
copyOf
public static FormatXML1RuntimeChildHash copyOf(FormatXML1RuntimeChildType.FormatXML1RuntimeChildHashType instance)Creates an immutable copy of aFormatXML1RuntimeChildType.FormatXML1RuntimeChildHashTypevalue. 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 FormatXML1RuntimeChildHash instance
-
builder
Creates a builder forFormatXML1RuntimeChildHash.FormatXML1RuntimeChildHash.builder() .setHash(com.io7m.coffeepick.runtime.RuntimeHash) // requiredhash.build();- Returns:
- A new FormatXML1RuntimeChildHash builder
-