Record Class ContentEntryRecord
java.lang.Object
java.lang.Record
io.mindspice.simplypages.components.content.ContentEntryRecord
-
Constructor Summary
Constructors -
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.markdown()Returns the value of themarkdownrecord component.metadata()Returns the value of themetadatarecord component.Returns the value of thepublishedAtrecord component.route()Returns the value of therouterecord component.Returns the value of thesectionKeyrecord component.slug()Returns the value of theslugrecord component.Returns the value of thesourcePathrecord component.summary()Returns the value of thesummaryrecord component.tags()Returns the value of thetagsrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ContentEntryRecord
public ContentEntryRecord(String sectionKey, String slug, String title, String summary, LocalDateTime publishedAt, List<String> tags, String markdown, Path sourcePath, String route, Map<String, String> metadata) Creates an instance of aContentEntryRecordrecord class.- Parameters:
sectionKey- the value for thesectionKeyrecord componentslug- the value for theslugrecord componenttitle- the value for thetitlerecord componentsummary- the value for thesummaryrecord componentpublishedAt- the value for thepublishedAtrecord componenttags- the value for thetagsrecord componentmarkdown- the value for themarkdownrecord componentsourcePath- the value for thesourcePathrecord componentroute- the value for therouterecord componentmetadata- the value for themetadatarecord 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). -
sectionKey
Returns the value of thesectionKeyrecord component.- Returns:
- the value of the
sectionKeyrecord component
-
slug
Returns the value of theslugrecord component.- Returns:
- the value of the
slugrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
summary
Returns the value of thesummaryrecord component.- Returns:
- the value of the
summaryrecord component
-
publishedAt
Returns the value of thepublishedAtrecord component.- Returns:
- the value of the
publishedAtrecord component
-
tags
-
markdown
Returns the value of themarkdownrecord component.- Returns:
- the value of the
markdownrecord component
-
sourcePath
Returns the value of thesourcePathrecord component.- Returns:
- the value of the
sourcePathrecord component
-
route
Returns the value of therouterecord component.- Returns:
- the value of the
routerecord component
-
metadata
-