Package org.kohsuke.github
Class GHSearchBuilder<T>
- java.lang.Object
-
- org.kohsuke.github.GHQueryBuilder<T>
-
- org.kohsuke.github.GHSearchBuilder<T>
-
- Type Parameters:
T- the type parameter
- Direct Known Subclasses:
GHCommitSearchBuilder,GHContentSearchBuilder,GHIssueSearchBuilder,GHRepositorySearchBuilder,GHUserSearchBuilder
public abstract class GHSearchBuilder<T> extends GHQueryBuilder<T>
Base class for various search builders.- Author:
- Kohsuke Kawaguchi
-
-
Field Summary
Fields Modifier and Type Field Description protected List<String>termsThe terms.-
Fields inherited from class org.kohsuke.github.GHQueryBuilder
req
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected abstract StringgetApiUrl()Gets api url.GitHubgetRoot()Deprecated.For access to theGitHubinstance, use a local copy instead of pulling it out of objects.PagedSearchIterable<T>list()Performs the search.GHQueryBuilder<T>q(String term)Search terms.
-
-
-
Method Detail
-
q
public GHQueryBuilder<T> q(String term)
Search terms.- Parameters:
term- the term- Returns:
- the gh query builder
-
list
public PagedSearchIterable<T> list()
Performs the search.- Specified by:
listin classGHQueryBuilder<T>- Returns:
- the paged search iterable
-
getApiUrl
protected abstract String getApiUrl()
Gets api url.- Returns:
- the api url
-
getRoot
@Deprecated public GitHub getRoot()
Deprecated.For access to theGitHubinstance, use a local copy instead of pulling it out of objects.Get the rootGitHubinstance for this object.- Returns:
- the root
GitHubinstance
-
-