Record Class SearchIndex.Entry
java.lang.Object
java.lang.Record
ai.redouble.docs.SearchIndex.Entry
- Enclosing class:
SearchIndex
public static record SearchIndex.Entry(String url, String title, String part, String heading, String text)
extends Record
One place a search lands on: the address relative to the site's root, the title of
the page or the name of the class, the part of the contents the page belongs to (null
for the front matter), the heading of the section (null for a page's opening and for a
class) and the text searched.
- Since:
- 0.1 (2026-10-01)
- 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.heading()Returns the value of theheadingrecord component.part()Returns the value of thepartrecord component.text()Returns the value of thetextrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
Entry
Creates an instance of aEntryrecord class.- Parameters:
url- the value for theurlrecord componenttitle- the value for thetitlerecord componentpart- the value for thepartrecord componentheading- the value for theheadingrecord componenttext- the value for thetextrecord 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). -
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
part
Returns the value of thepartrecord component.- Returns:
- the value of the
partrecord component
-
heading
Returns the value of theheadingrecord component.- Returns:
- the value of the
headingrecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-