Class PrometheusSheetCellRange
java.lang.Object
io.github.tonywasher.joceanus.prometheus.service.sheet.PrometheusSheetCellRange
Utility class to parse/format CellRanges.
-
Constructor Summary
ConstructorsConstructorDescriptionPrometheusSheetCellRange(PrometheusSheetCellAddress pSingleCell) Constructor.PrometheusSheetCellRange(PrometheusSheetCellAddress pFirstCell, PrometheusSheetCellAddress pLastCell) Constructor.PrometheusSheetCellRange(String pAddress) Constructor.PrometheusSheetCellRange(String pSheetName, PrometheusSheetCellPosition pSingleCell) Constructor.PrometheusSheetCellRange(String pSheetName, PrometheusSheetCellPosition pFirstCell, PrometheusSheetCellPosition pLastCell) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionObtain the first cell Address.Obtain the BottomRight Address.protected booleanIs this range a single cell address?protected booleanIs this range a single sheet range?toString()
-
Constructor Details
-
PrometheusSheetCellRange
public PrometheusSheetCellRange(String pSheetName, PrometheusSheetCellPosition pFirstCell, PrometheusSheetCellPosition pLastCell) Constructor.- Parameters:
pSheetName- the sheet namepFirstCell- the first cellpLastCell- the last cell
-
PrometheusSheetCellRange
Constructor.- Parameters:
pSheetName- the sheet namepSingleCell- the single cell
-
PrometheusSheetCellRange
public PrometheusSheetCellRange(PrometheusSheetCellAddress pFirstCell, PrometheusSheetCellAddress pLastCell) Constructor.- Parameters:
pFirstCell- the first cellpLastCell- the last cell
-
PrometheusSheetCellRange
Constructor.- Parameters:
pSingleCell- the cell
-
PrometheusSheetCellRange
Constructor.- Parameters:
pAddress- the cell address
-
-
Method Details
-
getFirstCell
Obtain the first cell Address.- Returns:
- the address
-
getLastCell
Obtain the BottomRight Address.- Returns:
- the address
-
isSingleCell
protected boolean isSingleCell()Is this range a single cell address?- Returns:
- true/false
-
isSingleSheet
protected boolean isSingleSheet()Is this range a single sheet range?- Returns:
- true/false
-
toString
-