Class Sort


  • public class Sort
    extends Object
    Class representing a sort criterion.
    • Constructor Detail

      • Sort

        public Sort​(String field,
                    Sort.Order order)
        Build a new Sort criterion.
        Parameters:
        field - The sort field as a String.
        order - The sort order.
    • Method Detail

      • getField

        public String getField()
        Get the sort field.
        Returns:
        The sort field.
      • setField

        public void setField​(String field)
        Set the sort field.
        Parameters:
        field - The sort field.
      • setOrder

        public void setOrder​(Sort.Order order)
        Set the sort order.
        Parameters:
        order - The sort order.