Class TableCell

    • Method Detail

      • value

        public final String value()

        The actual value or content within a table cell. A table cell could contain a date value of a year, or a string value of text, for example.

        Returns:
        The actual value or content within a table cell. A table cell could contain a date value of a year, or a string value of text, for example.
      • topAnswer

        public final Boolean topAnswer()

        TRUE if the response of the table cell is the top answer. This is the cell value or content with the highest confidence score or is the most relevant to the query.

        Returns:
        TRUE if the response of the table cell is the top answer. This is the cell value or content with the highest confidence score or is the most relevant to the query.
      • highlighted

        public final Boolean highlighted()

        TRUE means that the table cell has a high enough confidence and is relevant to the query, so the value or content should be highlighted.

        Returns:
        TRUE means that the table cell has a high enough confidence and is relevant to the query, so the value or content should be highlighted.
      • header

        public final Boolean header()

        TRUE means that the table cell should be treated as a header.

        Returns:
        TRUE means that the table cell should be treated as a header.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)