Record Class SpreadsheetCellsModel
java.lang.Object
java.lang.Record
org.exoplatform.onlyoffice.mcp.model.SpreadsheetCellsModel
- Record Components:
id- the spreadsheet idname- the spreadsheet titlesheet- the name of the sheet readrange- the range read, in A1 notationsheets- every sheet of the workbook, in ordercells- the non-empty cells of the range, row by rowmergedRanges- the merged ranges touching the range readtruncated- true when the range holds more cells than one call returnsnextRange- 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 Summary
ConstructorsConstructorDescriptionSpreadsheetCellsModel(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 aSpreadsheetCellsModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncells()Returns the value of thecellsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of themergedRangesrecord component.name()Returns the value of thenamerecord component.Returns the value of thenextRangerecord component.range()Returns the value of therangerecord component.sheet()Returns the value of thesheetrecord component.sheets()Returns the value of thesheetsrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetruncatedrecord component.
-
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 aSpreadsheetCellsModelrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentsheet- the value for thesheetrecord componentrange- the value for therangerecord componentsheets- the value for thesheetsrecord componentcells- the value for thecellsrecord componentmergedRanges- the value for themergedRangesrecord componenttruncated- the value for thetruncatedrecord componentnextRange- the value for thenextRangerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
-
name
-
sheet
-
range
-
sheets
-
cells
-
mergedRanges
Returns the value of themergedRangesrecord component.- Returns:
- the value of the
mergedRangesrecord component
-
truncated
-
nextRange
-