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