Class SortBy
java.lang.Object
com.vaadin.featurepack.data.jpacontainer.SortBy
- All Implemented Interfaces:
Serializable
Data structure class representing a field to sort by and the direction of the
sort (ascending or descending). Once created, the instances of this class are
immutable.
- Since:
- 1.0
- Author:
- Petter Holmström (Vaadin Ltd)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the property ID to sort by.inthashCode()booleanReturns true to sort ascendingly, false to sort descendingly.
-
Constructor Details
-
SortBy
Creates a newSortByinstance.- Parameters:
propertyId- the property ID to sort by (must not be null).ascending- true to sort ascendingly, false to sort descendingly.
-
-
Method Details