@Immutable public final class SASubsection extends Object implements SAIDTargetContent
| Constructor and Description |
|---|
SASubsection(SASubsectionNumber in_number,
com.io7m.jaux.functional.Option<String> in_type,
com.io7m.jaux.functional.Option<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.jaux.functional.Option<SAID> |
getID() |
SASubsectionNumber |
getNumber() |
SASubsectionTitle |
getTitle() |
com.io7m.jaux.functional.Option<String> |
getType() |
int |
hashCode() |
<T> T |
targetContentAccept(SAIDTargetContentVisitor<T> v)
Accept an ID target content visitor.
|
public SASubsection(@Nonnull SASubsectionNumber in_number, @Nonnull com.io7m.jaux.functional.Option<String> in_type, @Nonnull com.io7m.jaux.functional.Option<SAID> in_id, @Nonnull SASubsectionTitle in_title, @Nonnull SNonEmptyList<SASubsectionContent> in_content) throws com.io7m.jaux.Constraints.ConstraintError
in_number - The subsection numberin_type - The type attributein_id - The IDin_title - The titlein_content - The contentcom.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public SNonEmptyList<SASubsectionContent> getContent()
@Nonnull public SASubsectionNumber getNumber()
@Nonnull public SASubsectionTitle getTitle()
@Nonnull public com.io7m.jaux.functional.Option<String> getType()
public <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