Record Class ReportSpreadsheetContent

java.lang.Object
java.lang.Record
io.jmix.reportsspreadsheetflowui.view.ReportSpreadsheetContent
Record Components:
documentContent - generated report content, or null if the document is taken from a file storage
fileRef - reference to the stored report document, or null if the content is passed directly
documentName - report document name shown by the view and used for download, or null to derive it from fileRef
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 Details

    • ReportSpreadsheetContent

      public ReportSpreadsheetContent(byte @Nullable [] documentContent, @Nullable FileRef fileRef, @Nullable String documentName)
      Creates an instance of a ReportSpreadsheetContent record class.
      Parameters:
      documentContent - the value for the documentContent record component
      fileRef - the value for the fileRef record component
      documentName - the value for the documentName 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.
    • documentContent

      public byte @Nullable [] documentContent()
      Returns the value of the documentContent record component.
      Returns:
      the value of the documentContent record component
    • fileRef

      public @Nullable FileRef fileRef()
      Returns the value of the fileRef record component.
      Returns:
      the value of the fileRef record component
    • documentName

      public @Nullable String documentName()
      Returns the value of the documentName record component.
      Returns:
      the value of the documentName record component