@Immutable public final class SASubsection extends Object implements SAIDTargetContent
Constructor and Description |
---|
SASubsection(SASubsectionNumber in_number,
com.io7m.jfunctional.OptionType<String> in_type,
com.io7m.jfunctional.OptionType<SAID> in_id,
SASubsectionTitle in_title,
SNonEmptyList<SASubsectionContent> in_content)
Construct a new subsection.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
SNonEmptyList<SASubsectionContent> |
getContent() |
com.io7m.jfunctional.OptionType<SAID> |
getID() |
SASubsectionNumber |
getNumber() |
SASubsectionTitle |
getTitle() |
com.io7m.jfunctional.OptionType<String> |
getType() |
int |
hashCode() |
<T> T |
targetContentAccept(SAIDTargetContentVisitor<T> v)
Accept an ID target content visitor.
|
public SASubsection(SASubsectionNumber in_number, com.io7m.jfunctional.OptionType<String> in_type, com.io7m.jfunctional.OptionType<SAID> in_id, SASubsectionTitle in_title, SNonEmptyList<SASubsectionContent> in_content)
in_number
- The subsection numberin_type
- The type attributein_id
- The IDin_title
- The titlein_content
- The contentpublic SNonEmptyList<SASubsectionContent> getContent()
public com.io7m.jfunctional.OptionType<SAID> getID()
public SASubsectionNumber getNumber()
public SASubsectionTitle getTitle()
public com.io7m.jfunctional.OptionType<String> getType()
public <T> T targetContentAccept(SAIDTargetContentVisitor<T> v) throws Exception
SAIDTargetContent
targetContentAccept
in interface SAIDTargetContent
T
- The type of values returned by the visitorv
- The visitorException
- If the visitor raises and Exception
Copyright © 2017 <code@io7m.com> http://io7m.com