public class ListElement extends Object implements BlockElement
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 © 2023 The Apache Software Foundation. All rights reserved.