Class Line.Builder

  • Enclosing class:
    Line

    public static class Line.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • text

        public Line.Builder text​(String text)
        The text recognized.
        Parameters:
        text - the value to set
        Returns:
        this builder
      • confidence

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

        public Line.Builder wordIndexes​(List<Integer> wordIndexes)
        The array of words.
        Parameters:
        wordIndexes - the value to set
        Returns:
        this builder
      • build

        public Line build()