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 classFormatXML1RuntimeChildTags.BuilderBuilds 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.Builderbuilder()Creates a builder forFormatXML1RuntimeChildTags.static FormatXML1RuntimeChildTagscopyOf(FormatXML1RuntimeChildType.FormatXML1RuntimeChildTagsType instance)Creates an immutable copy of aFormatXML1RuntimeChildType.FormatXML1RuntimeChildTagsTypevalue.booleanequals(java.lang.Object another)This instance is equal to all instances ofFormatXML1RuntimeChildTagsthat have equal attribute values.inthashCode()Computes a hash code from attributes:tags.static FormatXML1RuntimeChildTagsof(java.lang.Iterable<java.lang.String> tags)Construct a new immutableFormatXML1RuntimeChildTagsinstance.static FormatXML1RuntimeChildTagsof(java.util.Set<java.lang.String> tags)Construct a new immutableFormatXML1RuntimeChildTagsinstance.java.util.Set<java.lang.String>tags()java.lang.StringtoString()Prints the immutable valueFormatXML1RuntimeChildTagswith attribute values.FormatXML1RuntimeChildTagswithTags(java.lang.Iterable<java.lang.String> elements)Copy the current immutable object with elements that replace the content oftags.FormatXML1RuntimeChildTagswithTags(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, waitMethods 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:
tagsin 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
thisobject
-
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
thisobject
-
equals
public boolean equals(java.lang.Object another)This instance is equal to all instances ofFormatXML1RuntimeChildTagsthat have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
hashCode
public int hashCode()Computes a hash code from attributes:tags.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
toString
public java.lang.String toString()Prints the immutable valueFormatXML1RuntimeChildTagswith attribute values.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
of
Construct a new immutableFormatXML1RuntimeChildTagsinstance.- Parameters:
tags- The value for thetagsattribute- Returns:
- An immutable FormatXML1RuntimeChildTags instance
-
of
Construct a new immutableFormatXML1RuntimeChildTagsinstance.- Parameters:
tags- The value for thetagsattribute- Returns:
- An immutable FormatXML1RuntimeChildTags instance
-
copyOf
public static FormatXML1RuntimeChildTags copyOf(FormatXML1RuntimeChildType.FormatXML1RuntimeChildTagsType instance)Creates an immutable copy of aFormatXML1RuntimeChildType.FormatXML1RuntimeChildTagsTypevalue. 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) //tagselements .build();- Returns:
- A new FormatXML1RuntimeChildTags builder
-