Class Orderings

    • Constructor Detail

      • Orderings

        public Orderings()
      • Orderings

        public Orderings​(int initialCapacity)
      • Orderings

        public Orderings​(Ordering ordering)
      • Orderings

        public Orderings​(Ordering... orderings)
    • Method Detail

      • then

        public Orderings then​(Ordering nextOrdering)
        Adds the given sort ordering to the end of this list and returns "this" so it can be chained again.
        Parameters:
        nextOrdering - the sort ordering to add
        Returns:
        this (with nextOrdering appended)
      • then

        public Orderings then​(Orderings nextOrderings)
        Adds the given sort orderings to the end of this list and returns "this" so it can be chained again.
        Parameters:
        nextOrderings - the sort ordering to add
        Returns:
        this (with nextOrderings appended)
      • orderedList

        public <T> List<T> orderedList​(List<T> list)
        Returns an list sorted with these Orderings.
        Type Parameters:
        T - the type of the list
        Parameters:
        list - the list to sort
        Returns:
        a sorted copy of the list
      • orderList

        public <T> void orderList​(List<T> list)
        Sorts the given array with these Orderings.
        Type Parameters:
        T - the type of the list
        Parameters:
        list - the list to sort