com.vaadin.flow.component.grid.
Class GridSortOrder<T>
- java.lang.Object
-
- com.vaadin.flow.data.provider.SortOrder<Grid.Column<T>>
-
- com.vaadin.flow.component.grid.GridSortOrder<T>
-
Type Parameters:
T
- the grid typeAll Implemented Interfaces:
public class GridSortOrder<T> extends SortOrder<Grid.Column<T>>
Sorting information for
Grid
.See Also:
-
-
Constructor Summary
Constructors Constructor Description GridSortOrder(Grid.Column<T> column, SortDirection direction)
Construct sorting information for usage in a
Grid
.
-
Method Summary
All Methods Modifier and Type Method Description static <T> GridSortOrderBuilder<T>
asc(Grid.Column<T> by)
Creates a new grid sort builder with given sorting using ascending sort direction.
static <T> GridSortOrderBuilder<T>
desc(Grid.Column<T> by)
Creates a new grid sort builder with given sorting using descending sort direction.
boolean
equals(Object obj)
Grid.Column<T>
getSorted()
Gets the column this sorting information is attached to.
int
hashCode()
-
Methods inherited from class com.vaadin.flow.data.provider.SortOrder
getDirection
-
-
-
-
Constructor Detail
-
GridSortOrder
public GridSortOrder(Grid.Column<T> column, SortDirection direction)
Construct sorting information for usage in a
Grid
.Parameters:
column
- the column to be sorteddirection
- sorting direction
-
-
Method Detail
-
getSorted
public Grid.Column<T> getSorted()
Gets the column this sorting information is attached to.
Overrides:
getSorted
in classSortOrder<Grid.Column<T>>
Returns:
the column being sorted
-
asc
public static <T> GridSortOrderBuilder<T> asc(Grid.Column<T> by)
Creates a new grid sort builder with given sorting using ascending sort direction.
Type Parameters:
T
- the grid typeParameters:
by
- the column to sort byReturns:
the grid sort builder
-
desc
public static <T> GridSortOrderBuilder<T> desc(Grid.Column<T> by)
Creates a new grid sort builder with given sorting using descending sort direction.
Type Parameters:
T
- the grid typeParameters:
by
- the column to sort byReturns:
the grid sort builder
-
-