Record Class GenerateDocs.Page
java.lang.Object
java.lang.Record
ai.redouble.docs.GenerateDocs.Page
- Enclosing class:
GenerateDocs
public static record GenerateDocs.Page(String id, String title, Path source, String part, String origin)
extends Record
One page of the site: its id (the file name without .html), its title from the
contents, its markdown source, the part it belongs to as the breadcrumb reads it (null
for the front matter) and the package and module the source documents (null for a
document outside every module's source tree).
- Since:
- 0.1 (2026-09-17)
- Author:
- Andrey Santrosyan
-
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.id()Returns the value of theidrecord component.origin()Returns the value of theoriginrecord component.part()Returns the value of thepartrecord component.source()Returns the value of thesourcerecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Page
Creates an instance of aPagerecord class.- Parameters:
id- the value for theidrecord componenttitle- the value for thetitlerecord componentsource- the value for thesourcerecord componentpart- the value for thepartrecord componentorigin- the value for theoriginrecord 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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
part
Returns the value of thepartrecord component.- Returns:
- the value of the
partrecord component
-
origin
Returns the value of theoriginrecord component.- Returns:
- the value of the
originrecord component
-