Record Class ContentEntryRecord

java.lang.Object
java.lang.Record
io.mindspice.simplypages.components.content.ContentEntryRecord

public record ContentEntryRecord(String sectionKey, String slug, String title, String summary, LocalDateTime publishedAt, List<String> tags, String markdown, Path sourcePath, String route, Map<String,String> metadata) extends Record
Generated static content entry metadata and markdown source.
  • 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 a ContentEntryRecord record class.
      Parameters:
      sectionKey - the value for the sectionKey record component
      slug - the value for the slug record component
      title - the value for the title record component
      summary - the value for the summary record component
      publishedAt - the value for the publishedAt record component
      tags - the value for the tags record component
      markdown - the value for the markdown record component
      sourcePath - the value for the sourcePath record component
      route - the value for the route record component
      metadata - the value for the metadata record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • sectionKey

      public String sectionKey()
      Returns the value of the sectionKey record component.
      Returns:
      the value of the sectionKey record component
    • slug

      public String slug()
      Returns the value of the slug record component.
      Returns:
      the value of the slug record component
    • title

      public String title()
      Returns the value of the title record component.
      Returns:
      the value of the title record component
    • summary

      public String summary()
      Returns the value of the summary record component.
      Returns:
      the value of the summary record component
    • publishedAt

      public LocalDateTime publishedAt()
      Returns the value of the publishedAt record component.
      Returns:
      the value of the publishedAt record component
    • tags

      public List<String> tags()
      Returns the value of the tags record component.
      Returns:
      the value of the tags record component
    • markdown

      public String markdown()
      Returns the value of the markdown record component.
      Returns:
      the value of the markdown record component
    • sourcePath

      public Path sourcePath()
      Returns the value of the sourcePath record component.
      Returns:
      the value of the sourcePath record component
    • route

      public String route()
      Returns the value of the route record component.
      Returns:
      the value of the route record component
    • metadata

      public Map<String,String> metadata()
      Returns the value of the metadata record component.
      Returns:
      the value of the metadata record component