Interface Location

All Superinterfaces:
Serializable

@Immutable public interface Location extends Serializable
A location within a Sheet as defined by a 0-indexed row, column pair.
  • Method Summary

    Modifier and Type
    Method
    Description
    0-indexed column.
    default Optional<org.apache.poi.ss.usermodel.Cell>
    getCell(org.apache.poi.ss.usermodel.Sheet sheet)
     
    static Location
    of(String cellName)
    Create from a String cell name, such as "A1".
    static Location
    relative(Location location, int rowOffset, int columnOffset)
    Create a new Location relative to an existing Location.
    row()
    0-indexed row.
  • Method Details

    • row

      Integer row()
      0-indexed row.
    • column

      Integer column()
      0-indexed column.
    • of

      static Location of(String cellName)
      Create from a String cell name, such as "A1".
    • relative

      static Location relative(Location location, int rowOffset, int columnOffset)
      Create a new Location relative to an existing Location.
    • getCell

      default Optional<org.apache.poi.ss.usermodel.Cell> getCell(org.apache.poi.ss.usermodel.Sheet sheet)