|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Sortable
The role of an object that has contents that can be sorted.
Field Summary | |
---|---|
static Sortable |
DEFAULT
A default Sortable which does nothing (useful for implementing the NullObject pattern). |
static Class<Sortable> |
Sortable
|
Method Summary | |
---|---|
Finder.SortCriterion |
getSortCriterion()
Returns the current sort criterion. |
Finder.SortDirection |
getSortDirection()
Returns the current sort direction. |
void |
setSortCriterion(Finder.SortCriterion sortCriterion)
Sets the sort criterion. |
void |
setSortDirection(Finder.SortDirection sortDirection)
Sets the sort direction. |
Field Detail |
---|
static final Class<Sortable> Sortable
static final Sortable DEFAULT
Sortable
which does nothing (useful for implementing the NullObject pattern). This object
always returns Finder.SortCriterion.UNSORTED
as sortCriterion
and
SortDirection.ASCENDING
as sortDirection
.
Method Detail |
---|
void setSortCriterion(@Nonnull Finder.SortCriterion sortCriterion)
sortCriterion
- the sort criterionvoid setSortDirection(@Nonnull Finder.SortDirection sortDirection)
sortDirection
- the sort direction@Nonnull Finder.SortCriterion getSortCriterion()
@Nonnull Finder.SortDirection getSortDirection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |