public class TagsBuilder<T extends TagsBuilder<T>> extends Object
IdBuilder
.Modifier and Type | Field and Description |
---|---|
protected List<Tag> |
extraTags
Set of extra tags that the sub-class should add in to the id.
|
Modifier | Constructor and Description |
---|---|
protected |
TagsBuilder()
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
T |
withTag(String k,
Boolean v)
Add an additional tag value.
|
<E extends Enum<E>> |
withTag(String k,
Enum<E> v)
Add an additional tag value based on the name of the enum.
|
T |
withTag(String k,
String v)
Add an additional tag value.
|
T |
withTag(Tag t)
Add an additional tag value.
|
T |
withTags(Iterable<Tag> tags)
Add additional tag values.
|
T |
withTags(Map<String,String> tags)
Add additional tag values.
|
T |
withTags(String... tags)
Add additional tag values.
|
T |
withTags(Tag... tags)
Add additional tag values.
|