Record Class ContentSectionSite
java.lang.Object
java.lang.Record
io.mindspice.simplypages.components.content.ContentSectionSite
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbasePath()Returns the value of thebasePathrecord component.Returns the value of thedetailPagesBySlugrecord component.entries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theindexPagesByPagerecord component.Returns the value of thesectionKeyrecord component.final StringtoString()Returns a string representation of this record class.int
-
Constructor Details
-
ContentSectionSite
public ContentSectionSite(String sectionKey, String basePath, Map<Integer, Component> indexPagesByPage, Map<String, Component> detailPagesBySlug, List<ContentEntryRecord> entries) Creates an instance of aContentSectionSiterecord class.- Parameters:
sectionKey- the value for thesectionKeyrecord componentbasePath- the value for thebasePathrecord componentindexPagesByPage- the value for theindexPagesByPagerecord componentdetailPagesBySlug- the value for thedetailPagesBySlugrecord componententries- the value for theentriesrecord component
-
-
Method Details
-
totalPages
public int totalPages() -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
sectionKey
Returns the value of thesectionKeyrecord component.- Returns:
- the value of the
sectionKeyrecord component
-
basePath
Returns the value of thebasePathrecord component.- Returns:
- the value of the
basePathrecord component
-
indexPagesByPage
-
detailPagesBySlug
-
entries
Returns the value of theentriesrecord component.- Returns:
- the value of the
entriesrecord component
-