@Immutable public final class SPart extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
com.io7m.jaux.functional.Option<SPartContents> |
getContents() |
com.io7m.jaux.functional.Option<SID> |
getID() |
SNonEmptyList<SSection> |
getSections() |
SPartTitle |
getTitle() |
com.io7m.jaux.functional.Option<String> |
getType() |
int |
hashCode() |
static SPart |
part(SPartTitle in_title,
SNonEmptyList<SSection> in_sections)
Create a part with the given title and content.
|
static SPart |
partID(SID id,
SPartTitle in_title,
SNonEmptyList<SSection> in_sections)
Create a part with the given id, title, and content.
|
static SPart |
partTyped(String type,
SPartTitle in_title,
SNonEmptyList<SSection> in_sections)
Create a part with the given type, title, and content.
|
static SPart |
partTypedID(String type,
SID id,
SPartTitle in_title,
SNonEmptyList<SSection> in_sections)
Create a part with the given type, id, title, and content.
|
static SPart |
partWithContents(SPartTitle in_title,
SNonEmptyList<SSection> in_sections)
Create a part with the given title, content, and with a table of
contents.
|
static SPart |
partWithContentsID(SID id,
SPartTitle in_title,
SNonEmptyList<SSection> in_sections)
Create a part with the given id, title, content, and with a table of
contents.
|
static SPart |
partWithContentsTyped(String type,
SPartTitle in_title,
SNonEmptyList<SSection> in_sections)
Create a part with the given type, title, content, and with a table of
contents.
|
static SPart |
partWithContentsTypedID(String type,
SID id,
SPartTitle in_title,
SNonEmptyList<SSection> in_sections)
Create a part with the given type, id, title, content, and with a table
of contents.
|
@Nonnull public static SPart part(@Nonnull SPartTitle in_title, @Nonnull SNonEmptyList<SSection> in_sections) throws com.io7m.jaux.Constraints.ConstraintError
in_title - The titlein_sections - The contentcom.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public static SPart partID(@Nonnull SID id, @Nonnull SPartTitle in_title, @Nonnull SNonEmptyList<SSection> in_sections) throws com.io7m.jaux.Constraints.ConstraintError
id - The IDin_title - The titlein_sections - The contentcom.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public static SPart partTyped(@Nonnull String type, @Nonnull SPartTitle in_title, @Nonnull SNonEmptyList<SSection> in_sections) throws com.io7m.jaux.Constraints.ConstraintError
type - The typein_title - The titlein_sections - The contentcom.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public static SPart partTypedID(@Nonnull String type, @Nonnull SID id, @Nonnull SPartTitle in_title, @Nonnull SNonEmptyList<SSection> in_sections) throws com.io7m.jaux.Constraints.ConstraintError
type - The typeid - The IDin_title - The titlein_sections - The contentcom.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public static SPart partWithContents(@Nonnull SPartTitle in_title, @Nonnull SNonEmptyList<SSection> in_sections) throws com.io7m.jaux.Constraints.ConstraintError
in_title - The titlein_sections - The contentcom.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public static SPart partWithContentsID(@Nonnull SID id, @Nonnull SPartTitle in_title, @Nonnull SNonEmptyList<SSection> in_sections) throws com.io7m.jaux.Constraints.ConstraintError
id - The IDin_title - The titlein_sections - The contentcom.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public static SPart partWithContentsTyped(@Nonnull String type, @Nonnull SPartTitle in_title, @Nonnull SNonEmptyList<SSection> in_sections) throws com.io7m.jaux.Constraints.ConstraintError
type - The typein_title - The titlein_sections - The contentcom.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public static SPart partWithContentsTypedID(@Nonnull String type, @Nonnull SID id, @Nonnull SPartTitle in_title, @Nonnull SNonEmptyList<SSection> in_sections) throws com.io7m.jaux.Constraints.ConstraintError
type - The typeid - The IDin_title - The titlein_sections - The contentcom.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public com.io7m.jaux.functional.Option<SPartContents> getContents()
@Nonnull public SNonEmptyList<SSection> getSections()
@Nonnull public SPartTitle getTitle()
@Nonnull public com.io7m.jaux.functional.Option<String> getType()
Copyright © 2014. All rights reserved.