Class SearchTermsImpl<T>
java.lang.Object
org.opencastproject.elasticsearch.impl.SearchTermsImpl<T>
- All Implemented Interfaces:
SearchTerms<T>
Implementation of a list of search terms.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opencastproject.elasticsearch.api.SearchTerms
SearchTerms.Quantifier -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SearchTerms.QuantifierThe quantifierThe search terms -
Constructor Summary
ConstructorsConstructorDescriptionSearchTermsImpl(SearchTerms.Quantifier quantifier, T... values) Creates a list of search terms, to be queried using the given quantifier. -
Method Summary
-
Field Details
-
quantifier
The quantifier -
terms
The search terms
-
-
Constructor Details
-
SearchTermsImpl
Creates a list of search terms, to be queried using the given quantifier.- Parameters:
quantifier- the quantifiervalues- the initial values
-
-
Method Details
-
add
Adds a term to this list of terms.- Specified by:
addin interfaceSearchTerms<T>- Parameters:
term- the new term- See Also:
-
getTerms
Returns the terms.- Specified by:
getTermsin interfaceSearchTerms<T>- Returns:
- the terms
- See Also:
-
contains
Returnstrueiftermis contained in the list of terms.- Specified by:
containsin interfaceSearchTerms<T>- Parameters:
term- the term- Returns:
trueiftermis contained- See Also:
-
size
public int size()Returns the number of terms.- Specified by:
sizein interfaceSearchTerms<T>- Returns:
- the number of terms
- See Also:
-
getQuantifier
Returns this group's quantifier.- Specified by:
getQuantifierin interfaceSearchTerms<T>- Returns:
- the quantifier
- See Also:
-