Class SearchSortOption.Builder
java.lang.Object
org.hansken.plugin.extraction.api.SearchSortOption.Builder
- Enclosing class:
SearchSortOption
Builder for creating
SearchSortOption instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newSearchSortOptioninstance with the configured values.direction(SearchSortOption.Direction direction) Sets the sort direction.Sets the field to sort by.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
field
Sets the field to sort by.- Parameters:
field- the field name to sort on.- Returns:
- this builder instance for chaining.
-
direction
Sets the sort direction.- Parameters:
direction- the sort direction.- Returns:
- this builder instance for chaining.
-
build
Builds a newSearchSortOptioninstance with the configured values.- Returns:
- a new
SearchSortOption.
-