Interface Sortable


public interface Sortable
The role of an object that has contents that can be sorted.
Author:
Fabrizio Giudici
Status: stable API
  • Field Details

  • Method Details

    • setSortCriterion

      void setSortCriterion(@Nonnull Finder.SortCriterion sortCriterion)
      Sets the sort criterion.
      Parameters:
      sortCriterion - the sort criterion
    • setSortDirection

      void setSortDirection(@Nonnull Finder.SortDirection sortDirection)
      Sets the sort direction.
      Parameters:
      sortDirection - the sort direction
    • getSortCriterion

      @Nonnull Finder.SortCriterion getSortCriterion()
      Returns the current sort criterion.
      Returns:
      the sort criterion
    • getSortDirection

      @Nonnull Finder.SortDirection getSortDirection()
      Returns the current sort direction.
      Returns:
      the sort direction