Package com.blazebit.persistence.view
Interface Sorter
public interface Sorter
A sorter is an object that applies an order by on a
OrderByBuilder
for a specific expression.- Since:
- 1.0.0
- Author:
- Christian Beikov
-
Method Summary
Modifier and Type Method Description <T extends OrderByBuilder<T>>
Tapply(T sortable, String expression)
Applies an order by on the given sortable for the given expression.
-
Method Details
-
apply
Applies an order by on the given sortable for the given expression.- Type Parameters:
T
- The actual type of the sortable- Parameters:
sortable
- The sortable on which to apply the order byexpression
- The order by expression- Returns:
- The sortable
-