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 class
FormatXML1RuntimeChildHash.Builder
Builds 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.Builder
builder()
Creates a builder forFormatXML1RuntimeChildHash
.static FormatXML1RuntimeChildHash
copyOf(FormatXML1RuntimeChildType.FormatXML1RuntimeChildHashType instance)
Creates an immutable copy of aFormatXML1RuntimeChildType.FormatXML1RuntimeChildHashType
value.boolean
equals(java.lang.Object another)
This instance is equal to all instances ofFormatXML1RuntimeChildHash
that have equal attribute values.RuntimeHash
hash()
int
hashCode()
Computes a hash code from attributes:hash
.static FormatXML1RuntimeChildHash
of(RuntimeHash hash)
Construct a new immutableFormatXML1RuntimeChildHash
instance.java.lang.String
toString()
Prints the immutable valueFormatXML1RuntimeChildHash
with attribute values.FormatXML1RuntimeChildHash
withHash(RuntimeHash value)
Copy the current immutable object by setting a value for thehash
attribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.io7m.coffeepick.runtime.format.xml.FormatXML1RuntimeChildType.FormatXML1RuntimeChildHashType
kind
-
Method Details
-
hash
- Specified by:
hash
in interfaceFormatXML1RuntimeChildType.FormatXML1RuntimeChildHashType
- Returns:
- The hash value
-
withHash
Copy the current immutable object by setting a value for thehash
attribute. 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
this
object
-
equals
public boolean equals(java.lang.Object another)This instance is equal to all instances ofFormatXML1RuntimeChildHash
that have equal attribute values.- Overrides:
equals
in classjava.lang.Object
- Returns:
true
ifthis
is equal toanother
instance
-
hashCode
public int hashCode()Computes a hash code from attributes:hash
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashCode value
-
toString
public java.lang.String toString()Prints the immutable valueFormatXML1RuntimeChildHash
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
Construct a new immutableFormatXML1RuntimeChildHash
instance.- Parameters:
hash
- The value for thehash
attribute- Returns:
- An immutable FormatXML1RuntimeChildHash instance
-
copyOf
public static FormatXML1RuntimeChildHash copyOf(FormatXML1RuntimeChildType.FormatXML1RuntimeChildHashType instance)Creates an immutable copy of aFormatXML1RuntimeChildType.FormatXML1RuntimeChildHashType
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 FormatXML1RuntimeChildHash instance
-
builder
Creates a builder forFormatXML1RuntimeChildHash
.FormatXML1RuntimeChildHash.builder() .setHash(com.io7m.coffeepick.runtime.RuntimeHash) // required
hash
.build();- Returns:
- A new FormatXML1RuntimeChildHash builder
-