public class ListTagBuilder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
ListTagBuilder |
add(Tag value)
Add the given tag.
|
ListTagBuilder |
addAll(java.util.Collection<?
extends Tag> value)
Add all the tags in the given list.
|
ListTag
|
build()
Build an unnamed list tag with this builder's entries.
|
ListTag
|
build(java.lang.String name)
Build a new list tag with this builder's entries.
|
static ListTagBuilder |
create(java.lang.Class<?
extends Tag> type)
Create a new builder instance.
|
static <T extends Tag> |
createWith(T... entries)
Create a new builder instance.
|
public static ListTagBuilder create(java.lang.Class<? extends Tag> type)
public static <T extends Tag> ListTagBuilder createWith(T... entries)
public ListTagBuilder add(Tag value)
value
- the tagpublic ListTagBuilder addAll(java.util.Collection<? extends Tag> value)
value
- a list of tagspublic ListTag build()
public ListTag build(java.lang.String name)
name
- the name of the tag