Record Class ReportSpreadsheetContent
java.lang.Object
java.lang.Record
io.jmix.reportsspreadsheetflowui.view.ReportSpreadsheetContent
- Record Components:
documentContent- generated report content, ornullif the document is taken from a file storagefileRef- reference to the stored report document, ornullif the content is passed directlydocumentName- report document name shown by the view and used for download, ornullto derive it fromfileRef
- All Implemented Interfaces:
Serializable
public record ReportSpreadsheetContent(byte @Nullable [] documentContent, @Nullable FileRef fileRef, @Nullable String documentName)
extends Record
implements Serializable
Generated report content to be shown by a
ReportSpreadsheetView.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionReportSpreadsheetContent(byte @Nullable [] documentContent, @Nullable FileRef fileRef, @Nullable String documentName) Creates an instance of aReportSpreadsheetContentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte @Nullable []Returns the value of thedocumentContentrecord component.@Nullable StringReturns the value of thedocumentNamerecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable FileReffileRef()Returns the value of thefileRefrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReportSpreadsheetContent
public ReportSpreadsheetContent(byte @Nullable [] documentContent, @Nullable FileRef fileRef, @Nullable String documentName) Creates an instance of aReportSpreadsheetContentrecord class.- Parameters:
documentContent- the value for thedocumentContentrecord componentfileRef- the value for thefileRefrecord componentdocumentName- the value for thedocumentNamerecord component
-
-
Method Details
-
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. -
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. -
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). -
documentContent
public byte @Nullable [] documentContent()Returns the value of thedocumentContentrecord component.- Returns:
- the value of the
documentContentrecord component
-
fileRef
Returns the value of thefileRefrecord component.- Returns:
- the value of the
fileRefrecord component
-
documentName
Returns the value of thedocumentNamerecord component.- Returns:
- the value of the
documentNamerecord component
-