public class Order<T> extends Object implements Serializable
Constructor and Description |
---|
Order(SortableField<T> field,
boolean ascending) |
Modifier and Type | Method and Description |
---|---|
static <U> Order<U> |
ascending(SortableField<U> field)
Creates an ascending order on the given sortable field
|
static <U> Order<U> |
descending(SortableField<U> field)
Creates an descending order on the given sortable field
|
SortableField<T> |
getField() |
boolean |
isAscending() |
public Order(SortableField<T> field, boolean ascending)
field
- The field on which the sort appliesascending
- Represent the sort direction, true is ascending, false is
descending.public final SortableField<T> getField()
public final boolean isAscending()
public static <U> Order<U> ascending(SortableField<U> field)
field
- the field to sortpublic static <U> Order<U> descending(SortableField<U> field)
field
- the field to sortCopyright © 2011 OW2 Consortium. All Rights Reserved.