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 Type
    Method
    Description
    default boolean
    contains(T element)
    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

      IQueryResult<T> query(IQuery<T> query, IProgressMonitor monitor)
      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 perform
      monitor - a progress monitor, or null if progress reporting is not desired
      Returns:
      The collector argument
    • contains

      default boolean contains(T element)
      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