We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.data.sort.
Class SortOrder
- java.lang.Object
-
- com.vaadin.data.sort.SortOrder
-
All Implemented Interfaces:
public class SortOrder extends Object implements Serializable
Sort order descriptor. Links together a
SortDirection
value and a Vaadin container property ID.Since:
7.4
Author:
Vaadin Ltd
See Also:
-
-
Constructor Summary
Constructors Constructor and Description SortOrder(Object propertyId, SortDirection direction)
Create a SortOrder object.
-
Method Summary
All Methods Modifier and Type Method and Description boolean
equals(Object obj)
SortDirection
getDirection()
Returns the
SortDirection
value.Object
getPropertyId()
Returns the property ID.
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
SortOrder
public SortOrder(Object propertyId, SortDirection direction)
Create a SortOrder object. Both arguments must be non-null.
Parameters:
propertyId
- id of the data source property to sort bydirection
- value indicating whether the property id should be sorted in ascending or descending order
-
-
Method Detail
-
getPropertyId
public Object getPropertyId()
Returns the property ID.
Returns:
a property ID
-
getDirection
public SortDirection getDirection()
Returns the
SortDirection
value.Returns:
a sort direction value
-
-