| Modifier and Type | Method and Description |
|---|---|
Tag |
build()
Builds a new
Tag. |
Tag.Builder |
from(Tag instance)
Fill a builder with attribute values from the provided
Tag instance. |
Tag.Builder |
id(String id)
Initializes the value for the
id attribute. |
Tag.Builder |
tag(String tag)
Initializes the value for the
tag attribute. |
Tag.Builder |
type(String type)
Initializes the value for the
type attribute. |
public final Tag.Builder from(Tag instance)
Tag instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final Tag.Builder id(String id)
id attribute.id - The value for idthis builder for use in a chained invocationpublic final Tag.Builder tag(String tag)
tag attribute.tag - The value for tagthis builder for use in a chained invocationpublic final Tag.Builder type(String type)
type attribute.type - The value for type (can be null)this builder for use in a chained invocationpublic Tag build()
Tag.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.