Class SortingData.Builder
- java.lang.Object
-
- com.bellotapps.webapps_commons.persistence.repository_utils.SortingData.Builder
-
- Enclosing class:
- SortingData
public static final class SortingData.Builder extends java.lang.ObjectBuilder class for aSortingData.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SortingDatabuild()Builds aSortingDatausing the addedSortingData.PropertySorts.SortingData.PropertySort.Buildersort()Creates a newSortingData.PropertySort.Builderin order to configure aSortingData.PropertySortthat will be added into this builder.SortingData.BuildersortBy(SortingData.PropertySort propertySort)Adds aSortingData.PropertySortinto this builder.
-
-
-
Method Detail
-
sort
public SortingData.PropertySort.Builder sort()
Creates a newSortingData.PropertySort.Builderin order to configure aSortingData.PropertySortthat will be added into this builder.- Returns:
- A
SortingData.PropertySort.Builderthat holds this builder.
-
sortBy
public SortingData.Builder sortBy(SortingData.PropertySort propertySort)
Adds aSortingData.PropertySortinto this builder.- Parameters:
propertySort- TheSortingData.PropertySortto be added.- Returns:
this(for method chaining).
-
build
public SortingData build()
Builds aSortingDatausing the addedSortingData.PropertySorts.- Returns:
- The created
SortingData.
-
-