Record Class ContentSiteBundle
java.lang.Object
java.lang.Record
io.mindspice.simplypages.components.content.ContentSiteBundle
public record ContentSiteBundle(Map<String, ContentSectionSite> sectionsByKey, ContentRouteIndex routeIndex, List<ContentWarning> warnings)
extends Record
Final static content bundle generated from configured section directories.
Inspect
warnings() after generation for nonfatal parsing and generation
diagnostics, including detail routes that shadow another section's index.
The warning list is immutable; warnings do not remove or reassign generated pages.-
Constructor Summary
ConstructorsConstructorDescriptionContentSiteBundle(Map<String, ContentSectionSite> sectionsByKey, ContentRouteIndex routeIndex, List<ContentWarning> warnings) Creates an instance of aContentSiteBundlerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of therouteIndexrecord component.Returns the value of thesectionsByKeyrecord component.final StringtoString()Returns a string representation of this record class.warnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
ContentSiteBundle
public ContentSiteBundle(Map<String, ContentSectionSite> sectionsByKey, ContentRouteIndex routeIndex, List<ContentWarning> warnings) Creates an instance of aContentSiteBundlerecord class.- Parameters:
sectionsByKey- the value for thesectionsByKeyrecord componentrouteIndex- the value for therouteIndexrecord componentwarnings- the value for thewarningsrecord component
-
-
Method Details
-
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). -
sectionsByKey
Returns the value of thesectionsByKeyrecord component.- Returns:
- the value of the
sectionsByKeyrecord component
-
routeIndex
Returns the value of therouteIndexrecord component.- Returns:
- the value of the
routeIndexrecord component
-
warnings
Returns the value of thewarningsrecord component.- Returns:
- the value of the
warningsrecord component
-