@Immutable public final class SAPart extends Object
| Constructor and Description |
|---|
SAPart(SAPartNumber in_number,
com.io7m.jaux.functional.Option<String> in_type,
com.io7m.jaux.functional.Option<SAID> in_id,
SAPartTitle in_title,
com.io7m.jaux.functional.Option<SPartContents> in_contents,
SNonEmptyList<SASection> in_sections)
Construct a new part.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
com.io7m.jaux.functional.Option<SPartContents> |
getContents() |
com.io7m.jaux.functional.Option<SAID> |
getID() |
SAPartNumber |
getNumber() |
com.io7m.jaux.functional.Option<SASection> |
getSection(SASectionNumber n)
The section with the given number.
|
SNonEmptyList<SASection> |
getSections() |
SAPartTitle |
getTitle() |
com.io7m.jaux.functional.Option<String> |
getType() |
int |
hashCode() |
public SAPart(@Nonnull SAPartNumber in_number, @Nonnull com.io7m.jaux.functional.Option<String> in_type, @Nonnull com.io7m.jaux.functional.Option<SAID> in_id, @Nonnull SAPartTitle in_title, @Nonnull com.io7m.jaux.functional.Option<SPartContents> in_contents, @Nonnull SNonEmptyList<SASection> in_sections) throws com.io7m.jaux.Constraints.ConstraintError
in_number - The part numberin_type - The type attributein_id - The part IDin_title - The part titlein_contents - The table of contentsin_sections - The sectionscom.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public com.io7m.jaux.functional.Option<SPartContents> getContents()
@Nonnull public SAPartNumber getNumber()
@Nonnull public com.io7m.jaux.functional.Option<SASection> getSection(@Nonnull SASectionNumber n) throws com.io7m.jaux.Constraints.ConstraintError
n - The numbercom.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public SNonEmptyList<SASection> getSections()
@Nonnull public SAPartTitle getTitle()
@Nonnull public com.io7m.jaux.functional.Option<String> getType()
Copyright © 2014. All rights reserved.