@PublicEvolving public class ListElement extends Object implements BlockElement
Description
.Modifier and Type | Method and Description |
---|---|
void |
format(Formatter formatter)
Transforms itself into String representation using given format.
|
List<InlineElement> |
getEntries() |
static ListElement |
list(InlineElement... elements)
Creates a list with blocks of text.
|
public static ListElement list(InlineElement... elements)
.list(
text("this is first element of list"),
text("this is second element of list with a %s", link("https://link"))
)
elements
- list of this list entriespublic List<InlineElement> getEntries()
public void format(Formatter formatter)
formatter
- formatter to use.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.