Class CellMatchers

java.lang.Object
org.springframework.shell.table.CellMatchers

public class CellMatchers extends Object
Contains factory methods for commonly used CellMatchers.
  • Constructor Details

    • CellMatchers

      public CellMatchers()
  • Method Details

    • table

      public static CellMatcher table()
      Returns:
      a matcher that applies to every cell of the table.
    • column

      public static CellMatcher column(int col)
      Parameters:
      col - the column to select
      Returns:
      a matcher that applies to every cell of some column of the table.
    • row

      public static CellMatcher row(int theRow)
      Parameters:
      theRow - the row to select
      Returns:
      a matcher that applies to every cell of some row of the table.
    • at

      public static CellMatcher at(int theRow, int col)
      Parameters:
      theRow - the row to select
      col - the column to select
      Returns:
      a matcher that applies to exactly one cell of the table, identified by its row and colum.
    • ofType

      public static CellMatcher ofType(Class<?> clazz)
      Parameters:
      clazz - the type that cells should contain
      Returns:
      a matcher that matches cells whose content is of a certain type