Class OrderByItem
java.lang.Object
com.blazebit.persistence.view.metamodel.OrderByItem
An order by item.
- Since:
- 1.5.0
- Author:
- Christian Beikov
-
Constructor Summary
ConstructorsConstructorDescriptionOrderByItem(String expression, boolean ascending, boolean nullsFirst) Creates a new order by item. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the order expression.inthashCode()booleanReturns whether the ordering should be ascending.booleanReturns whether nulls should be ordered first.
-
Constructor Details
-
OrderByItem
Creates a new order by item.- Parameters:
expression- The order expressionascending- Whether the ordering should be ascendingnullsFirst- Whether nulls should be ordered first
-
-
Method Details
-
getExpression
Returns the order expression.- Returns:
- the order expression
-
isAscending
public boolean isAscending()Returns whether the ordering should be ascending.- Returns:
- whether the ordering should be ascending
-
isNullsFirst
public boolean isNullsFirst()Returns whether nulls should be ordered first.- Returns:
- whether nulls should be ordered first
-
equals
-
hashCode
public int hashCode()
-