@Immutable public final class SSubsection extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
SNonEmptyList<SSubsectionContent> |
getContent() |
com.io7m.jaux.functional.Option<SID> |
getID() |
SSubsectionTitle |
getTitle() |
com.io7m.jaux.functional.Option<String> |
getType() |
int |
hashCode() |
static SSubsection |
subsection(SSubsectionTitle in_title,
SNonEmptyList<SSubsectionContent> in_content)
Create a subsection with the given title and content.
|
static SSubsection |
subsectionID(SID id,
SSubsectionTitle in_title,
SNonEmptyList<SSubsectionContent> in_content)
Create a subsection with the given id, title, and content.
|
static SSubsection |
subsectionTyped(String type,
SSubsectionTitle in_title,
SNonEmptyList<SSubsectionContent> in_content)
Create a subsection with the given type, title, and content.
|
static SSubsection |
subsectionTypedID(String type,
SID id,
SSubsectionTitle in_title,
SNonEmptyList<SSubsectionContent> in_content)
Create a subsection with the given type, id, title, and content.
|
@Nonnull public static SSubsection subsection(@Nonnull SSubsectionTitle in_title, @Nonnull SNonEmptyList<SSubsectionContent> in_content) throws com.io7m.jaux.Constraints.ConstraintError
in_title - The titlein_content - The contentcom.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public static SSubsection subsectionID(@Nonnull SID id, @Nonnull SSubsectionTitle in_title, @Nonnull SNonEmptyList<SSubsectionContent> in_content) throws com.io7m.jaux.Constraints.ConstraintError
id - The IDin_title - The titlein_content - The contentcom.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public static SSubsection subsectionTyped(@Nonnull String type, @Nonnull SSubsectionTitle in_title, @Nonnull SNonEmptyList<SSubsectionContent> in_content) throws com.io7m.jaux.Constraints.ConstraintError
type - The typein_title - The titlein_content - The contentcom.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public static SSubsection subsectionTypedID(@Nonnull String type, @Nonnull SID id, @Nonnull SSubsectionTitle in_title, @Nonnull SNonEmptyList<SSubsectionContent> in_content) throws com.io7m.jaux.Constraints.ConstraintError
type - The typeid - The IDin_title - The titlein_content - The contentcom.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public SNonEmptyList<SSubsectionContent> getContent()
@Nonnull public SSubsectionTitle getTitle()
@Nonnull public com.io7m.jaux.functional.Option<String> getType()
Copyright © 2014. All rights reserved.