@Immutable public final class SListItem extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
SNonEmptyList<SListItemContent> |
getContent() |
com.io7m.jaux.functional.Option<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.
|
@Nonnull public static SListItem listItem(@Nonnull SNonEmptyList<SListItemContent> content) throws com.io7m.jaux.Constraints.ConstraintError
content - The list item content.com.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public static SListItem listItemTyped(@Nonnull String type, @Nonnull SNonEmptyList<SListItemContent> content) throws com.io7m.jaux.Constraints.ConstraintError
type - The type attributecontent - The list item content.com.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public SNonEmptyList<SListItemContent> getContent()
@Nonnull public com.io7m.jaux.functional.Option<String> getType()
Copyright © 2014 <code@io7m.com> http://io7m.com