@Immutable public final class SListItem extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
SNonEmptyList<SListItemContent> |
getContent() |
com.io7m.jfunctional.OptionType<String> |
getType() |
int |
hashCode() |
static SListItem |
listItem(SNonEmptyList<SListItemContent> content)
Construct a new list item.
|
static SListItem |
listItemTyped(String type,
SNonEmptyList<SListItemContent> content)
Construct a new list item with a type attribute.
|
public static SListItem listItem(SNonEmptyList<SListItemContent> content)
content
- The list item content.public static SListItem listItemTyped(String type, SNonEmptyList<SListItemContent> content)
type
- The type attributecontent
- The list item content.public SNonEmptyList<SListItemContent> getContent()
public com.io7m.jfunctional.OptionType<String> getType()
Copyright © 2017 <code@io7m.com> http://io7m.com