Class SortingData.PropertySort.Builder
- java.lang.Object
-
- com.bellotapps.webapps_commons.persistence.repository_utils.SortingData.PropertySort.Builder
-
- Enclosing class:
- SortingData.PropertySort
public static class SortingData.PropertySort.Builder extends java.lang.ObjectBuilder class for aSortingData.PropertySort.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SortingData.Builderand()Builds aSortingData.PropertySortwhich is then added to theSortingData.Builderfrom which this builder was built from.SortingData.PropertySortbuild()Builds aSortingData.PropertySortusing set values.SortingData.PropertySort.Builderby(java.lang.String property)Configures the property to which sorting will be applied.SortingData.PropertySort.BuilderwithDirection(SortingData.SortDirection direction)Configures the sorting direction.SortingData.PropertySort.BuilderwithIgnoreCaseFlag(boolean ignoreCase)Configures the ignore case flag.SortingData.PropertySort.BuilderwithNullHandling(SortingData.NullHandling nullHandling)Configures the null handling strategy.
-
-
-
Method Detail
-
by
public SortingData.PropertySort.Builder by(java.lang.String property)
Configures the property to which sorting will be applied.- Parameters:
property- The property to which the sort will be applied.- Returns:
this(for method chaining).
-
withDirection
public SortingData.PropertySort.Builder withDirection(SortingData.SortDirection direction)
Configures the sorting direction.- Parameters:
direction- The sorting direction (i.e asc or desc).- Returns:
this(for method chaining).
-
withIgnoreCaseFlag
public SortingData.PropertySort.Builder withIgnoreCaseFlag(boolean ignoreCase)
Configures the ignore case flag.- Parameters:
ignoreCase- A flag indicating whether the sorting should be case insensitive (trueif yes,falseif not).- Returns:
this(for method chaining).
-
withNullHandling
public SortingData.PropertySort.Builder withNullHandling(SortingData.NullHandling nullHandling)
Configures the null handling strategy.- Parameters:
nullHandling- The strategy used for handling null values.- Returns:
this(for method chaining).
-
build
public SortingData.PropertySort build()
Builds aSortingData.PropertySortusing set values.- Returns:
- The created
SortingData.PropertySort.
-
and
public SortingData.Builder and()
Builds aSortingData.PropertySortwhich is then added to theSortingData.Builderfrom which this builder was built from. Then returns that builder.- Returns:
- The
SortingData.Builderfrom which this builder was built from. - See Also:
Builder(SortingData.Builder)
-
-