Record Class SpreadsheetCellsModel

java.lang.Object
java.lang.Record
org.exoplatform.onlyoffice.mcp.model.SpreadsheetCellsModel
Record Components:
id - the spreadsheet id
name - the spreadsheet title
sheet - the name of the sheet read
range - the range read, in A1 notation
sheets - every sheet of the workbook, in order
cells - the non-empty cells of the range, row by row
mergedRanges - the merged ranges touching the range read
truncated - true when the range holds more cells than one call returns
nextRange - the range to read next when truncated, null otherwise

public record SpreadsheetCellsModel(String id, String name, String sheet, String range, List<SpreadsheetSheetModel> sheets, List<SpreadsheetCellModel> cells, List<String> mergedRanges, boolean truncated, String nextRange) extends Record
The cells of a range of one sheet, as get_spreadsheet_cells returns them: every sheet of the workbook, then the non-empty cells of the range read, each with its A1 position.
  • Constructor Details

    • SpreadsheetCellsModel

      public SpreadsheetCellsModel(String id, String name, String sheet, String range, List<SpreadsheetSheetModel> sheets, List<SpreadsheetCellModel> cells, List<String> mergedRanges, boolean truncated, String nextRange)
      Creates an instance of a SpreadsheetCellsModel record class.
      Parameters:
      id - the value for the id record component
      name - the value for the name record component
      sheet - the value for the sheet record component
      range - the value for the range record component
      sheets - the value for the sheets record component
      cells - the value for the cells record component
      mergedRanges - the value for the mergedRanges record component
      truncated - the value for the truncated record component
      nextRange - the value for the nextRange 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • sheet

      public String sheet()
      Returns the value of the sheet record component.
      Returns:
      the value of the sheet record component
    • range

      public String range()
      Returns the value of the range record component.
      Returns:
      the value of the range record component
    • sheets

      public List<SpreadsheetSheetModel> sheets()
      Returns the value of the sheets record component.
      Returns:
      the value of the sheets record component
    • cells

      public List<SpreadsheetCellModel> cells()
      Returns the value of the cells record component.
      Returns:
      the value of the cells record component
    • mergedRanges

      public List<String> mergedRanges()
      Returns the value of the mergedRanges record component.
      Returns:
      the value of the mergedRanges record component
    • truncated

      public boolean truncated()
      Returns the value of the truncated record component.
      Returns:
      the value of the truncated record component
    • nextRange

      public String nextRange()
      Returns the value of the nextRange record component.
      Returns:
      the value of the nextRange record component