@Immutable public final class SPart extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
com.io7m.jfunctional.OptionType<SPartContents> |
getContents() |
com.io7m.jfunctional.OptionType<SID> |
getID() |
SNonEmptyList<SSection> |
getSections() |
SPartTitle |
getTitle() |
com.io7m.jfunctional.OptionType<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.
|
public static SPart part(SPartTitle in_title, SNonEmptyList<SSection> in_sections)
in_title
- The titlein_sections
- The contentpublic static SPart partID(SID id, SPartTitle in_title, SNonEmptyList<SSection> in_sections)
id
- The IDin_title
- The titlein_sections
- The contentpublic static SPart partTyped(String type, SPartTitle in_title, SNonEmptyList<SSection> in_sections)
type
- The typein_title
- The titlein_sections
- The contentpublic static SPart partTypedID(String type, SID id, SPartTitle in_title, SNonEmptyList<SSection> in_sections)
type
- The typeid
- The IDin_title
- The titlein_sections
- The contentpublic static SPart partWithContents(SPartTitle in_title, SNonEmptyList<SSection> in_sections)
in_title
- The titlein_sections
- The contentpublic static SPart partWithContentsID(SID id, SPartTitle in_title, SNonEmptyList<SSection> in_sections)
id
- The IDin_title
- The titlein_sections
- The contentpublic static SPart partWithContentsTyped(String type, SPartTitle in_title, SNonEmptyList<SSection> in_sections)
type
- The typein_title
- The titlein_sections
- The contentpublic static SPart partWithContentsTypedID(String type, SID id, SPartTitle in_title, SNonEmptyList<SSection> in_sections)
type
- The typeid
- The IDin_title
- The titlein_sections
- The contentpublic com.io7m.jfunctional.OptionType<SPartContents> getContents()
public com.io7m.jfunctional.OptionType<SID> getID()
public SNonEmptyList<SSection> getSections()
public SPartTitle getTitle()
public com.io7m.jfunctional.OptionType<String> getType()
Copyright © 2017 <code@io7m.com> http://io7m.com