Class SearchTermsImpl<T>

java.lang.Object
org.opencastproject.elasticsearch.impl.SearchTermsImpl<T>
All Implemented Interfaces:
org.opencastproject.elasticsearch.api.SearchTerms<T>

public class SearchTermsImpl<T> extends Object implements org.opencastproject.elasticsearch.api.SearchTerms<T>
Implementation of a list of search terms.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.opencastproject.elasticsearch.api.SearchTerms

    org.opencastproject.elasticsearch.api.SearchTerms.Quantifier
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.opencastproject.elasticsearch.api.SearchTerms.Quantifier
    The quantifier
    protected List<T>
    The search terms
  • Constructor Summary

    Constructors
    Constructor
    Description
    SearchTermsImpl(org.opencastproject.elasticsearch.api.SearchTerms.Quantifier quantifier, T... values)
    Creates a list of search terms, to be queried using the given quantifier.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(T term)
    boolean
    contains(T term)
    org.opencastproject.elasticsearch.api.SearchTerms.Quantifier
    int

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • quantifier

      protected org.opencastproject.elasticsearch.api.SearchTerms.Quantifier quantifier
      The quantifier
    • terms

      protected List<T> terms
      The search terms
  • Constructor Details

    • SearchTermsImpl

      public SearchTermsImpl(org.opencastproject.elasticsearch.api.SearchTerms.Quantifier quantifier, T... values)
      Creates a list of search terms, to be queried using the given quantifier.
      Parameters:
      quantifier - the quantifier
      values - the initial values
  • Method Details

    • add

      public void add(T term)
      Specified by:
      add in interface org.opencastproject.elasticsearch.api.SearchTerms<T>
      See Also:
      • SearchTerms.add(java.lang.Object)
    • getTerms

      public Collection<T> getTerms()
      Specified by:
      getTerms in interface org.opencastproject.elasticsearch.api.SearchTerms<T>
      See Also:
      • SearchTerms.getTerms()
    • contains

      public boolean contains(T term)
      Specified by:
      contains in interface org.opencastproject.elasticsearch.api.SearchTerms<T>
      See Also:
      • SearchTerms.contains(java.lang.Object)
    • size

      public int size()
      Specified by:
      size in interface org.opencastproject.elasticsearch.api.SearchTerms<T>
      See Also:
      • SearchTerms.size()
    • getQuantifier

      public org.opencastproject.elasticsearch.api.SearchTerms.Quantifier getQuantifier()
      Specified by:
      getQuantifier in interface org.opencastproject.elasticsearch.api.SearchTerms<T>
      See Also:
      • SearchTerms.getQuantifier()