Class ListItem


  • public final class ListItem
    extends Object
    Provides a list item. List items are immutable.
    • Constructor Detail

      • ListItem

        public ListItem​(String label,
                        FormattingTypes.ListStyle type)
        Creates a list item.
        Parameters:
        label - the resolved list item label, typically a number or a bullet
        type - the type of list
    • Method Detail

      • getLabel

        public String getLabel()
        Gets the resolved list item label.
        Returns:
        the label