Interface SearchTerms<T>

All Known Implementing Classes:
SearchTermsImpl

public interface SearchTerms<T>
Interface for a data structure that is wrapping a group of search terms.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    The search quantifier
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(T term)
    Adds a term to this list of terms.
    boolean
    contains(T term)
    Returns true if term is contained in the list of terms.
    Returns this group's quantifier.
    Returns the terms.
    int
    Returns the number of terms.
  • Method Details

    • add

      void add(T term)
      Adds a term to this list of terms.
      Parameters:
      term - the new term
    • getTerms

      Collection<T> getTerms()
      Returns the terms.
      Returns:
      the terms
    • contains

      boolean contains(T term)
      Returns true if term is contained in the list of terms.
      Parameters:
      term - the term
      Returns:
      true if term is contained
    • size

      int size()
      Returns the number of terms.
      Returns:
      the number of terms
    • getQuantifier

      SearchTerms.Quantifier getQuantifier()
      Returns this group's quantifier.
      Returns:
      the quantifier