Package io.keikai.axyra.sheets
Record Class CellRef
java.lang.Object
java.lang.Record
io.keikai.axyra.sheets.CellRef
- Record Components:
sheetIndex- the 0-based sheet index in the workbookrow- the 0-based row indexcolumn- the 0-based column index
A workbook-wide cell coordinate: a 0-based sheet index plus 0-based row and
column. Returned by formula-tracing calls (
Workbook.precedents(io.keikai.axyra.sheets.Sheet, int, int),
Workbook.dependents(io.keikai.axyra.sheets.Sheet, int, int), Workbook.allDependents(io.keikai.axyra.sheets.Sheet, int, int)), which may cross
sheet boundaries.-
Constructor Summary
ConstructorsConstructorDescriptionCellRef(int sheetIndex, int row, int column) Creates an instance of aCellRefrecord class. -
Method Summary
Modifier and TypeMethodDescriptiona1()Returns the A1 reference within its sheet, e.g.intcolumn()Returns the value of thecolumnrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.introw()Returns the value of therowrecord component.intReturns the value of thesheetIndexrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CellRef
public CellRef(int sheetIndex, int row, int column) Creates an instance of aCellRefrecord class.- Parameters:
sheetIndex- the value for thesheetIndexrecord componentrow- the value for therowrecord componentcolumn- the value for thecolumnrecord component
-
-
Method Details
-
a1
Returns the A1 reference within its sheet, e.g."C4", without a sheet name or$markers. -
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 with '=='. -
sheetIndex
public int sheetIndex()Returns the value of thesheetIndexrecord component.- Returns:
- the value of the
sheetIndexrecord component
-
row
public int row()Returns the value of therowrecord component.- Returns:
- the value of the
rowrecord component
-
column
public int column()Returns the value of thecolumnrecord component.- Returns:
- the value of the
columnrecord component
-