Package com.vaadin.data.sort
Class SortOrder
- java.lang.Object
-
- com.vaadin.data.sort.SortOrder
-
- All Implemented Interfaces:
Serializable
public class SortOrder extends Object implements Serializable
Sort order descriptor. Links together aSortDirectionvalue and a Vaadin container property ID.- Since:
- 7.4
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SortOrder(Object propertyId, SortDirection direction)Create a SortOrder object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)SortDirectiongetDirection()Returns theSortDirectionvalue.ObjectgetPropertyId()Returns the property ID.inthashCode()StringtoString()
-
-
-
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 theSortDirectionvalue.- Returns:
- a sort direction value
-
-