@Immutable public final class SAParagraph extends Object implements SASubsectionContent, SAIDTargetContent
| Constructor and Description |
|---|
SAParagraph(SAParagraphNumber in_number,
com.io7m.jaux.functional.Option<String> in_type,
SNonEmptyList<SAParagraphContent> in_content,
com.io7m.jaux.functional.Option<SAID> in_id)
Construct a new paragraph.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
SNonEmptyList<SAParagraphContent> |
getContent() |
com.io7m.jaux.functional.Option<SAID> |
getID() |
SAParagraphNumber |
getNumber() |
com.io7m.jaux.functional.Option<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(@Nonnull SAParagraphNumber in_number, @Nonnull com.io7m.jaux.functional.Option<String> in_type, @Nonnull SNonEmptyList<SAParagraphContent> in_content, @Nonnull com.io7m.jaux.functional.Option<SAID> in_id) throws com.io7m.jaux.Constraints.ConstraintError
in_number - The paragraph numberin_type - The type attributein_id - The IDin_content - The paragraph content.com.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public SNonEmptyList<SAParagraphContent> getContent()
@Nonnull public SAParagraphNumber getNumber()
@Nonnull public com.io7m.jaux.functional.Option<String> getType()
public <A> A subsectionContentAccept(@Nonnull SASubsectionContentVisitor<A> v) throws com.io7m.jaux.Constraints.ConstraintError, Exception
SASubsectionContentsubsectionContentAccept in interface SASubsectionContentA - The type of values returned by the visitorv - The visitorcom.io7m.jaux.Constraints.ConstraintError - If the visitor raises a Constraints.ConstraintErrorException - If the visitor raises and Exceptionpublic <T> T targetContentAccept(@Nonnull SAIDTargetContentVisitor<T> v) throws com.io7m.jaux.Constraints.ConstraintError, Exception
SAIDTargetContenttargetContentAccept in interface SAIDTargetContentT - The type of values returned by the visitorv - The visitorcom.io7m.jaux.Constraints.ConstraintError - If the visitor raises a Constraints.ConstraintErrorException - If the visitor raises and ExceptionCopyright © 2014 <code@io7m.com> http://io7m.com