java.lang.Object
io.github.tonywasher.joceanus.prometheus.service.sheet.PrometheusSheetCellRange

public class PrometheusSheetCellRange extends Object
Utility class to parse/format CellRanges.
  • Constructor Details

    • PrometheusSheetCellRange

      public PrometheusSheetCellRange(String pSheetName, PrometheusSheetCellPosition pFirstCell, PrometheusSheetCellPosition pLastCell)
      Constructor.
      Parameters:
      pSheetName - the sheet name
      pFirstCell - the first cell
      pLastCell - the last cell
    • PrometheusSheetCellRange

      public PrometheusSheetCellRange(String pSheetName, PrometheusSheetCellPosition pSingleCell)
      Constructor.
      Parameters:
      pSheetName - the sheet name
      pSingleCell - the single cell
    • PrometheusSheetCellRange

      public PrometheusSheetCellRange(PrometheusSheetCellAddress pFirstCell, PrometheusSheetCellAddress pLastCell)
      Constructor.
      Parameters:
      pFirstCell - the first cell
      pLastCell - the last cell
    • PrometheusSheetCellRange

      public PrometheusSheetCellRange(PrometheusSheetCellAddress pSingleCell)
      Constructor.
      Parameters:
      pSingleCell - the cell
    • PrometheusSheetCellRange

      public PrometheusSheetCellRange(String pAddress)
      Constructor.
      Parameters:
      pAddress - the cell address
  • Method Details

    • getFirstCell

      public PrometheusSheetCellAddress getFirstCell()
      Obtain the first cell Address.
      Returns:
      the address
    • getLastCell

      public PrometheusSheetCellAddress 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

      public String toString()
      Overrides:
      toString in class Object