Package org.eclipse.equinox.p2.query
Interface IQueryable<T>
- All Known Subinterfaces:
IArtifactRepository
,IArtifactRepositoryManager
,ICompositeRepository<T>
,IFileArtifactRepository
,IMetadataRepository
,IMetadataRepositoryManager
,IProfile
,IQueryResult<T>
,IRepository<T>
,IRepositoryManager<T>
- All Known Implementing Classes:
AbstractArtifactRepository
,AbstractMetadataRepository
,AbstractRepository
,CollectionResult
,Collector
,CompoundQueryable
,org.eclipse.equinox.internal.p2.metadata.index.IndexProvider
public interface IQueryable<T>
An IQueryable contains objects, and is able to perform queries on those
objects.
This interface may be implemented by clients.
- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
Returns true if this queryable contains the given element, else false.query
(IQuery<T> query, IProgressMonitor monitor) Performs a query, passing any objects that satisfy the query to the provided collector.
-
Method Details
-
query
Performs a query, passing any objects that satisfy the query to the provided collector.This method is long-running; progress and cancellation are provided by the given progress monitor.
- Parameters:
query
- The query to performmonitor
- a progress monitor, ornull
if progress reporting is not desired- Returns:
- The collector argument
-
contains
Returns true if this queryable contains the given element, else false.- Parameters:
element
- the element to query for- Returns:
- true if the given element is found in this queryable
- Since:
- 2.8
-