Record Class Report.Section
java.lang.Object
java.lang.Record
com.quantfinlib.report.Report.Section
- Enclosing class:
Report
public static record Report.Section(String title, List<String> headers, List<List<String>> rows, String html)
extends Record
A report section: either tabular (headers + rows) or raw HTML content
such as an inline SVG chart (
html != null). HTML sections are
rendered by the HTML exporter only; tabular exporters skip them.-
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.headers()Returns the value of theheadersrecord component.html()Returns the value of thehtmlrecord component.booleanisHtml()rows()Returns the value of therowsrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Section
-
Section
Creates an instance of aSectionrecord class.- Parameters:
title- the value for thetitlerecord componentheaders- the value for theheadersrecord componentrows- the value for therowsrecord componenthtml- the value for thehtmlrecord component
-
-
Method Details
-
isHtml
public boolean isHtml() -
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). -
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
headers
-
rows
-
html
Returns the value of thehtmlrecord component.- Returns:
- the value of the
htmlrecord component
-