ItemList.
This class provides settings for indentation, spacing between symbols and content, and the parser used for markup resolution. Default values are:
MarkupParser#DEFAULTThread Safety: This class is immutable and thread-safe.
Example:
ItemListConfiguration config = ItemListConfiguration.builder()
.indentSize(1)
.symbolSpacing(2)
.parser(Clique.parser())
.build();
| Modifier and Type | Class and Description |
|---|---|
| public static class | ItemListConfiguration.
Builder for |
| Modifier and Type | Field and Description |
|---|---|
| public static final ItemListConfiguration | DEFAULT
The default item list configuration. |
| private final int | |
| private final MarkupParser | |
| private final int |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ItemListConfiguration. | Returns: a new builder instanceCreates a new builder for constructing an |
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | Returns: the indentation sizeReturns the number of spaces used for each level of nesting. |
| public MarkupParser | Returns: the markup parserReturns the markup parser used to resolve tags in list content. |
| public int | Returns: the symbol spacingReturns the number of spaces between the item symbol and the item content. |
| public int | |
| public String |
| DEFAULT | back to summary |
|---|---|
| public static final ItemListConfiguration DEFAULT The default item list configuration. | |
| indentSize | back to summary |
|---|---|
| private final int indentSize | |
| parser | back to summary |
|---|---|
| private final MarkupParser parser | |
| symbolSpacing | back to summary |
|---|---|
| private final int symbolSpacing | |
| ItemListConfiguration | back to summary |
|---|---|
| private ItemListConfiguration() | |
| ItemListConfiguration | back to summary |
|---|---|
| private ItemListConfiguration(ItemListConfiguration. | |
| builder | back to summary |
|---|---|
| public static ItemListConfiguration. Creates a new builder for constructing an
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getIndentSize | back to summary |
|---|---|
| public int getIndentSize() Returns the number of spaces used for each level of nesting.
| |
| getParser | back to summary |
|---|---|
| public MarkupParser getParser() Returns the markup parser used to resolve tags in list content.
| |
| getSymbolSpacing | back to summary |
|---|---|
| public int getSymbolSpacing() Returns the number of spaces between the item symbol and the item content.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
ItemListConfiguration instances.
This builder is not thread-safe.
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private MarkupParser | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ItemListConfiguration | Returns: a new configuration instanceBuilds a new |
| public ItemListConfiguration. | Returns: this builderthe indentation size; must be at least 1 indentSize)Sets the number of spaces for each nesting level. |
| public ItemListConfiguration. | Returns: this builderthe parser to use; must not be parser)nullSets the parser for markup resolution. |
| public ItemListConfiguration. | Returns: this builderthe number of spaces; must not be negative spacing)Sets the spacing between the item symbol and content. |
| indentSize | back to summary |
|---|---|
| private int indentSize | |
| parser | back to summary |
|---|---|
| private MarkupParser parser | |
| symbolSpacing | back to summary |
|---|---|
| private int symbolSpacing | |
| ItemListConfigurationBuilder | back to summary |
|---|---|
| public ItemListConfigurationBuilder() | |
| build | back to summary |
|---|---|
| public ItemListConfiguration build() Builds a new
| |
| indentSize | back to summary |
|---|---|
| public ItemListConfiguration. Sets the number of spaces for each nesting level.
| |
| parser | back to summary |
|---|---|
| public ItemListConfiguration. Sets the parser for markup resolution.
| |
| symbolSpacing | back to summary |
|---|---|
| public ItemListConfiguration. Sets the spacing between the item symbol and content.
| |