Class Cell.Builder

  • Enclosing class:
    Cell

    public static class Cell.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • text

        public Cell.Builder text​(String text)
        The text recognized in the cell.
        Parameters:
        text - the value to set
        Returns:
        this builder
      • rowIndex

        public Cell.Builder rowIndex​(Integer rowIndex)
        The index of the cell inside the row.
        Parameters:
        rowIndex - the value to set
        Returns:
        this builder
      • columnIndex

        public Cell.Builder columnIndex​(Integer columnIndex)
        The index of the cell inside the column.
        Parameters:
        columnIndex - the value to set
        Returns:
        this builder
      • confidence

        public Cell.Builder confidence​(Float confidence)
        The confidence score between 0 and 1.
        Parameters:
        confidence - the value to set
        Returns:
        this builder
      • wordIndexes

        public Cell.Builder wordIndexes​(List<Integer> wordIndexes)
        The words detected in the cell.
        Parameters:
        wordIndexes - the value to set
        Returns:
        this builder
      • build

        public Cell build()