Class Analyzer.Builder

  • Enclosing class:
    Analyzer

    public static class Analyzer.Builder
    extends Object
    Builder.
    • Constructor Detail

      • Builder

        public Builder()
        Instantiates a new builder.
    • Method Detail

      • build

        public Analyzer build()
        Builds a Analyzer.
        Returns:
        the new Analyzer instance
      • addStopwords

        public Analyzer.Builder addStopwords​(String stopwords)
        Adds an stopwords to stopwords.
        Parameters:
        stopwords - the new stopwords
        Returns:
        the Analyzer builder
      • name

        public Analyzer.Builder name​(String name)
        Set the name.
        Parameters:
        name - the name
        Returns:
        the Analyzer builder
      • stopwords

        public Analyzer.Builder stopwords​(List<String> stopwords)
        Set the stopwords. Existing stopwords will be replaced.
        Parameters:
        stopwords - the stopwords
        Returns:
        the Analyzer builder