Class FormatXML1RuntimeChildTags
java.lang.Object
com.io7m.coffeepick.runtime.format.xml.FormatXML1RuntimeChildTags
- All Implemented Interfaces:
FormatXML1RuntimeChildType
,FormatXML1RuntimeChildType.FormatXML1RuntimeChildTagsType
public final class FormatXML1RuntimeChildTags extends java.lang.Object implements FormatXML1RuntimeChildType.FormatXML1RuntimeChildTagsType
The tags element.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FormatXML1RuntimeChildTags.Builder
Builds instances of typeFormatXML1RuntimeChildTags
.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 FormatXML1RuntimeChildTags.Builder
builder()
Creates a builder forFormatXML1RuntimeChildTags
.static FormatXML1RuntimeChildTags
copyOf(FormatXML1RuntimeChildType.FormatXML1RuntimeChildTagsType instance)
Creates an immutable copy of aFormatXML1RuntimeChildType.FormatXML1RuntimeChildTagsType
value.boolean
equals(java.lang.Object another)
This instance is equal to all instances ofFormatXML1RuntimeChildTags
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:tags
.static FormatXML1RuntimeChildTags
of(java.lang.Iterable<java.lang.String> tags)
Construct a new immutableFormatXML1RuntimeChildTags
instance.static FormatXML1RuntimeChildTags
of(java.util.Set<java.lang.String> tags)
Construct a new immutableFormatXML1RuntimeChildTags
instance.java.util.Set<java.lang.String>
tags()
java.lang.String
toString()
Prints the immutable valueFormatXML1RuntimeChildTags
with attribute values.FormatXML1RuntimeChildTags
withTags(java.lang.Iterable<java.lang.String> elements)
Copy the current immutable object with elements that replace the content oftags
.FormatXML1RuntimeChildTags
withTags(java.lang.String... elements)
Copy the current immutable object with elements that replace the content oftags
.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.FormatXML1RuntimeChildTagsType
kind
-
Method Details
-
tags
public java.util.Set<java.lang.String> tags()- Specified by:
tags
in interfaceFormatXML1RuntimeChildType.FormatXML1RuntimeChildTagsType
- Returns:
- The set of tags
-
withTags
Copy the current immutable object with elements that replace the content oftags
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withTags
Copy the current immutable object with elements that replace the content oftags
. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
elements
- An iterable of tags elements to set- Returns:
- A modified copy of
this
object
-
equals
public boolean equals(java.lang.Object another)This instance is equal to all instances ofFormatXML1RuntimeChildTags
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:tags
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashCode value
-
toString
public java.lang.String toString()Prints the immutable valueFormatXML1RuntimeChildTags
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
Construct a new immutableFormatXML1RuntimeChildTags
instance.- Parameters:
tags
- The value for thetags
attribute- Returns:
- An immutable FormatXML1RuntimeChildTags instance
-
of
Construct a new immutableFormatXML1RuntimeChildTags
instance.- Parameters:
tags
- The value for thetags
attribute- Returns:
- An immutable FormatXML1RuntimeChildTags instance
-
copyOf
public static FormatXML1RuntimeChildTags copyOf(FormatXML1RuntimeChildType.FormatXML1RuntimeChildTagsType instance)Creates an immutable copy of aFormatXML1RuntimeChildType.FormatXML1RuntimeChildTagsType
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 FormatXML1RuntimeChildTags instance
-
builder
Creates a builder forFormatXML1RuntimeChildTags
.FormatXML1RuntimeChildTags.builder() .addTags|addAllTags(String) //
tags
elements .build();- Returns:
- A new FormatXML1RuntimeChildTags builder
-