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
FieldsModifier and TypeFieldDescriptionprotected org.opencastproject.elasticsearch.api.SearchTerms.QuantifierThe quantifierThe search terms -
Constructor Summary
ConstructorsConstructorDescriptionSearchTermsImpl(org.opencastproject.elasticsearch.api.SearchTerms.Quantifier quantifier, T... values) Creates a list of search terms, to be queried using the given quantifier. -
Method Summary
-
Field Details
-
quantifier
protected org.opencastproject.elasticsearch.api.SearchTerms.Quantifier quantifierThe quantifier -
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 quantifiervalues- the initial values
-
-
Method Details
-
add
- Specified by:
addin interfaceorg.opencastproject.elasticsearch.api.SearchTerms<T>- See Also:
-
getTerms
- Specified by:
getTermsin interfaceorg.opencastproject.elasticsearch.api.SearchTerms<T>- See Also:
-
contains
- Specified by:
containsin interfaceorg.opencastproject.elasticsearch.api.SearchTerms<T>- See Also:
-
size
public int size()- Specified by:
sizein interfaceorg.opencastproject.elasticsearch.api.SearchTerms<T>- See Also:
-
getQuantifier
public org.opencastproject.elasticsearch.api.SearchTerms.Quantifier getQuantifier()- Specified by:
getQuantifierin interfaceorg.opencastproject.elasticsearch.api.SearchTerms<T>- See Also:
-