@Immutable public final class SAPart extends Object implements SAIDTargetContent
| Constructor and Description |
|---|
SAPart(SAPartNumber in_number,
com.io7m.jfunctional.OptionType<String> in_type,
com.io7m.jfunctional.OptionType<SAID> in_id,
SAPartTitle in_title,
com.io7m.jfunctional.OptionType<SPartContents> in_contents,
SNonEmptyList<SASection> in_sections)
Construct a new part.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
com.io7m.jfunctional.OptionType<SPartContents> |
getContents() |
com.io7m.jfunctional.OptionType<SAID> |
getID() |
SAPartNumber |
getNumber() |
com.io7m.jfunctional.OptionType<SASection> |
getSection(SASectionNumber n)
The section with the given number.
|
SNonEmptyList<SASection> |
getSections() |
SAPartTitle |
getTitle() |
com.io7m.jfunctional.OptionType<String> |
getType() |
int |
hashCode() |
<T> T |
targetContentAccept(SAIDTargetContentVisitor<T> v)
Accept an ID target content visitor.
|
public SAPart(SAPartNumber in_number, com.io7m.jfunctional.OptionType<String> in_type, com.io7m.jfunctional.OptionType<SAID> in_id, SAPartTitle in_title, com.io7m.jfunctional.OptionType<SPartContents> in_contents, SNonEmptyList<SASection> in_sections)
in_number - The part numberin_type - The type attributein_id - The part IDin_title - The part titlein_contents - The table of contentsin_sections - The sectionspublic com.io7m.jfunctional.OptionType<SPartContents> getContents()
public com.io7m.jfunctional.OptionType<SAID> getID()
public SAPartNumber getNumber()
public com.io7m.jfunctional.OptionType<SASection> getSection(SASectionNumber n)
n - The numberpublic SNonEmptyList<SASection> getSections()
public SAPartTitle getTitle()
public com.io7m.jfunctional.OptionType<String> getType()
public <T> T targetContentAccept(SAIDTargetContentVisitor<T> v) throws Exception
SAIDTargetContenttargetContentAccept in interface SAIDTargetContentT - The type of values returned by the visitorv - The visitorException - If the visitor raises and ExceptionCopyright © 2016 <code@io7m.com> http://io7m.com