Class Sort

    • Constructor Detail

      • Sort

        public Sort​(Sort.Order... orders)
        Creates a new Sort with the given Sort.Orders.
        Parameters:
        orders - The orders to use for sorting
      • Sort

        public Sort​(String... paths)
        Creates a new Sort with the given paths and the Sort.Direction.ASC.
        Parameters:
        paths - The paths by which to sort
      • Sort

        public Sort​(Sort.Direction direction,
                    String... paths)
        Creates a new Sort with the given paths the given direction.
        Parameters:
        direction - The direction to use for sorting
        paths - The paths by which to sort
      • Sort

        public Sort​(Sort.Direction direction,
                    List<String> paths)
        Creates a new Sort with the given paths and given direction.
        Parameters:
        direction - The direction to use for sorting
        paths - The paths by which to sort