@Immutable public final class SSubsection extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
SNonEmptyList<SSubsectionContent> |
getContent() |
com.io7m.jfunctional.OptionType<SID> |
getID() |
SSubsectionTitle |
getTitle() |
com.io7m.jfunctional.OptionType<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.
|
public static SSubsection subsection(SSubsectionTitle in_title, SNonEmptyList<SSubsectionContent> in_content)
in_title
- The titlein_content
- The contentpublic static SSubsection subsectionID(SID id, SSubsectionTitle in_title, SNonEmptyList<SSubsectionContent> in_content)
id
- The IDin_title
- The titlein_content
- The contentpublic static SSubsection subsectionTyped(String type, SSubsectionTitle in_title, SNonEmptyList<SSubsectionContent> in_content)
type
- The typein_title
- The titlein_content
- The contentpublic static SSubsection subsectionTypedID(String type, SID id, SSubsectionTitle in_title, SNonEmptyList<SSubsectionContent> in_content)
type
- The typeid
- The IDin_title
- The titlein_content
- The contentpublic SNonEmptyList<SSubsectionContent> getContent()
public com.io7m.jfunctional.OptionType<SID> getID()
public SSubsectionTitle getTitle()
public com.io7m.jfunctional.OptionType<String> getType()
Copyright © 2017 <code@io7m.com> http://io7m.com