Package com.vaadin.data.provider
Class SortOrder<T>
- java.lang.Object
-
- com.vaadin.data.provider.SortOrder<T>
-
- Type Parameters:
T- the type of the sorting information, usually a String (field id) or aComparator.
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
GridSortOrder,QuerySortOrder
public class SortOrder<T> extends java.lang.Object implements java.io.SerializableSorting information for one field.- Since:
- 8.0
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.vaadin.shared.data.sort.SortDirectiongetDirection()Sorting direction.TgetSorted()Sorting information.
-
-
-
Constructor Detail
-
SortOrder
public SortOrder(T sorted, com.vaadin.shared.data.sort.SortDirection direction)
Constructs a field sorting information.- Parameters:
sorted- sorting information, usually field id orComparatordirection- sorting direction
-
-
Method Detail
-
getSorted
public T getSorted()
Sorting information.- Returns:
- sorting entity, usually field id or
Comparator
-
getDirection
public com.vaadin.shared.data.sort.SortDirection getDirection()
Sorting direction.- Returns:
- sorting direction
-
-