Common superclass of 8-bit and 16-bit versions
| Modifier and Type | Class and Description |
|---|---|
| public static enum | CellRangeAddressBase.
Indicates a cell or range is in the given relative position in a range. |
| private static class | CellRangeAddressBase.
Iterates over the cell addresses in a cell range in row major order The iterator is unaffected by changes to the CellRangeAddressBase instance after the iterator is created. |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private int | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the range contains the column [colInd]the column to check colInd)Check if the column is in the specified cell range |
| public boolean | Returns: true if the range contains the row [rowInd]the row to check rowInd)Check if the row is in the specified cell range |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public final int | |
| public Map | |
| public final int | |
| public final int | |
| protected int | |
| protected int | |
| protected int | |
| protected int | |
| public int | |
| public Set | Returns: set ofCellPositions occupied by the given coordinates. Empty if the coordinates are not in the range, never null.Useful for logic like table/range styling, where some elements apply based on relative position in a range. |
| public int | |
| public boolean | Returns: returns true if this range and other range have at least 1 cell in commona candidate cell range address to check for intersection with this range other)Determines whether or not this CellRangeAddress and the specified CellRangeAddress intersect. |
| public final boolean | |
| public final boolean | |
| public boolean | Returns: True if the coordinates lie within the bounds, false otherwise.The row, 0-based. rowInd, int The column, 0-based. colInd)Determines if the given coordinates lie within the bounds of this range. |
| public boolean | Returns: True if the reference lies within the bounds, false otherwise.the CellReference to check ref)Determines if the given |
| public boolean | Returns: True if the reference lies within the bounds, false otherwise.the CellAddress to check ref)Determines if the given |
| public boolean | |
| public Iterator | iterator()
Implements java. Returns an iterator over the CellAddresses in this cell range in row-major order. |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public Spliterator | spliterator()
Overrides default java. Returns a spliterator over the CellAddresses in this cell range in row-major order. |
| public final String | |
| public void | validate(SpreadsheetVersion
the version of Excel to validate against ssVersion)Validate the range limits against the supplied version of Excel |
| private static void | |
| private static void |
| _firstCol | back to summary |
|---|---|
| private int _firstCol | |
| _firstRow | back to summary |
|---|---|
| private int _firstRow | |
| _lastCol | back to summary |
|---|---|
| private int _lastCol | |
| _lastRow | back to summary |
|---|---|
| private int _lastRow | |
| CellRangeAddressBase | back to summary |
|---|---|
| protected CellRangeAddressBase(int firstRow, int lastRow, int firstCol, int lastCol) | |
| containsColumn | back to summary |
|---|---|
| public boolean containsColumn(int colInd) Check if the column is in the specified cell range
| |
| containsRow | back to summary |
|---|---|
| public boolean containsRow(int rowInd) Check if the row is in the specified cell range
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getFirstColumn | back to summary |
|---|---|
public final int getFirstColumn()
| |
| getFirstRow | back to summary |
|---|---|
public final int getFirstRow()
| |
| getGenericProperties | back to summary |
|---|---|
| public Map Implements org.
| |
| getLastColumn | back to summary |
|---|---|
public final int getLastColumn()
| |
| getLastRow | back to summary |
|---|---|
public final int getLastRow()
| |
| getMaxColumn | back to summary |
|---|---|
| protected int getMaxColumn() | |
| getMaxRow | back to summary |
|---|---|
| protected int getMaxRow() | |
| getMinColumn | back to summary |
|---|---|
| protected int getMinColumn() | |
| getMinRow | back to summary |
|---|---|
| protected int getMinRow() | |
| getNumberOfCells | back to summary |
|---|---|
public int getNumberOfCells()
| |
| getPosition | back to summary |
|---|---|
| public Set Useful for logic like table/range styling, where some elements apply based on relative position in a range.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| intersects | back to summary |
|---|---|
| public boolean intersects(CellRangeAddressBase other) Determines whether or not this CellRangeAddress and the specified CellRangeAddress intersect.
| |
| isFullColumnRange | back to summary |
|---|---|
| public final boolean isFullColumnRange() | |
| isFullRowRange | back to summary |
|---|---|
| public final boolean isFullRowRange() | |
| isInRange | back to summary |
|---|---|
| public boolean isInRange(int rowInd, int colInd) Determines if the given coordinates lie within the bounds of this range.
| |
| isInRange | back to summary |
|---|---|
| public boolean isInRange(CellReference ref) Determines if the given Note It is up to the caller to ensure the reference is for the correct sheet, since this instance doesn't have a sheet reference.
| |
| isInRange | back to summary |
|---|---|
| public boolean isInRange(CellAddress ref) Determines if the given Note It is up to the caller to ensure the reference is for the correct sheet, since this instance doesn't have a sheet reference.
| |
| isInRange | back to summary |
|---|---|
| public boolean isInRange(Cell cell) Determines if the given Note It is up to the caller to ensure the reference is for the correct sheet, since this instance doesn't have a sheet reference.
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Returns an iterator over the CellAddresses in this cell range in row-major order.
| |
| setFirstColumn | back to summary |
|---|---|
public final void setFirstColumn(int firstCol)
| |
| setFirstRow | back to summary |
|---|---|
public final void setFirstRow(int firstRow)
| |
| setLastColumn | back to summary |
|---|---|
public final void setLastColumn(int lastCol)
| |
| setLastRow | back to summary |
|---|---|
public final void setLastRow(int lastRow)
| |
| spliterator | back to summary |
|---|---|
| public Spliterator Overrides default java. Returns a spliterator over the CellAddresses in this cell range in row-major order.
| |
| toString | back to summary |
|---|---|
| public final String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| validate | back to summary |
|---|---|
| public void validate(SpreadsheetVersion ssVersion) Validate the range limits against the supplied version of Excel
| |
| validateColumn | back to summary |
|---|---|
| private static void validateColumn(int column, SpreadsheetVersion ssVersion) Runs a bounds check for column numbers | |
| validateRow | back to summary |
|---|---|
| private static void validateRow(int row, SpreadsheetVersion ssVersion) Runs a bounds check for row numbers | |
| Modifier and Type | Field and Description |
|---|---|
| public static final CellRangeAddressBase. | BOTTOM
range ending rows are equal |
| public static final CellRangeAddressBase. | INSIDE
a cell or range is completely inside another range, without touching any edges (a cell in this position can't be in any others) |
| public static final CellRangeAddressBase. | LEFT
range starting columns are equal |
| public static final CellRangeAddressBase. | RIGHT
range ending columns are equal |
| public static final CellRangeAddressBase. | TOP
range starting rows are equal |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static CellRangeAddressBase. | |
| public static CellRangeAddressBase. |
| BOTTOM | back to summary |
|---|---|
| public static final CellRangeAddressBase. range ending rows are equal | |
| INSIDE | back to summary |
|---|---|
| public static final CellRangeAddressBase. a cell or range is completely inside another range, without touching any edges (a cell in this position can't be in any others) | |
| LEFT | back to summary |
|---|---|
| public static final CellRangeAddressBase. range starting columns are equal | |
| RIGHT | back to summary |
|---|---|
| public static final CellRangeAddressBase. range ending columns are equal | |
| TOP | back to summary |
|---|---|
| public static final CellRangeAddressBase. range starting rows are equal | |
| CellPosition | back to summary |
|---|---|
| private CellPosition() | |
| valueOf | back to summary |
|---|---|
| public static CellRangeAddressBase. | |
| values | back to summary |
|---|---|
| public static CellRangeAddressBase. | |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private final int | |
| private final int | |
| private final int | |
| private final int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public CellAddress |
| c | back to summary |
|---|---|
| private int c | |
| firstCol | back to summary |
|---|---|
| private final int firstCol | |
| firstRow | back to summary |
|---|---|
| private final int firstRow | |
| lastCol | back to summary |
|---|---|
| private final int lastCol | |
| lastRow | back to summary |
|---|---|
| private final int lastRow | |
| r | back to summary |
|---|---|
| private int r | |
| RowMajorCellAddressIterator | back to summary |
|---|---|
| public RowMajorCellAddressIterator(CellRangeAddressBase ref) | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public CellAddress next() Implements java. Doc from java. Returns the next element in the iteration.
| |