Class SearchOptions.Builder
java.lang.Object
org.hansken.plugin.extraction.api.SearchOptions.Builder
- Enclosing class:
SearchOptions
Builder for creating
SearchOptions
instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a newSearchOptions
instance with the configured values.offset
(int start) Sets the starting offset for the search results.scope
(SearchScope scope) Sets the search scope.sort
(List<SearchSortOption> sort) Sets the sort options for the search results.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
scope
Sets the search scope.- Parameters:
scope
- theSearchScope
where the search should be performed.- Returns:
- this builder instance for chaining.
-
offset
Sets the starting offset for the search results.- Parameters:
start
- the start offset.- Returns:
- this builder instance for chaining.
-
sort
Sets the sort options for the search results.- Parameters:
sort
- the list ofSearchSortOption
.- Returns:
- this builder instance for chaining.
-
build
Builds a newSearchOptions
instance with the configured values.- Returns:
- a new
SearchOptions
.
-