Package ball.util

Class Comparators

    • Method Detail

      • orderedBy

        public static <T> Comparator<T> orderedBy​(List<T> list)
        Deprecated.
        Static method to return a Comparator ordering members in the same order as the List.
        Type Parameters:
        T - The type to be ordered.
        Parameters:
        list - The List describing the order.
        Returns:
        A Comparator enforcing the specified order.