@Immutable public final class SAParagraph extends Object implements SASubsectionContent, SAIDTargetContent
Constructor and Description |
---|
SAParagraph(SAParagraphNumber in_number,
com.io7m.jfunctional.OptionType<String> in_type,
SNonEmptyList<SAParagraphContent> in_content,
com.io7m.jfunctional.OptionType<SAID> in_id)
Construct a new paragraph.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
SNonEmptyList<SAParagraphContent> |
getContent() |
com.io7m.jfunctional.OptionType<SAID> |
getID() |
SAParagraphNumber |
getNumber() |
com.io7m.jfunctional.OptionType<String> |
getType() |
int |
hashCode() |
<A> A |
subsectionContentAccept(SASubsectionContentVisitor<A> v)
Accept a section content visitor.
|
<T> T |
targetContentAccept(SAIDTargetContentVisitor<T> v)
Accept an ID target content visitor.
|
String |
toString() |
public SAParagraph(SAParagraphNumber in_number, com.io7m.jfunctional.OptionType<String> in_type, SNonEmptyList<SAParagraphContent> in_content, com.io7m.jfunctional.OptionType<SAID> in_id)
in_number
- The paragraph numberin_type
- The type attributein_id
- The IDin_content
- The paragraph content.public SNonEmptyList<SAParagraphContent> getContent()
public com.io7m.jfunctional.OptionType<SAID> getID()
public SAParagraphNumber getNumber()
public com.io7m.jfunctional.OptionType<String> getType()
public <A> A subsectionContentAccept(SASubsectionContentVisitor<A> v) throws Exception
SASubsectionContent
subsectionContentAccept
in interface SASubsectionContent
A
- The type of values returned by the visitorv
- The visitorException
- If the visitor raises and Exception
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