Class EnumUtils


  • public final class EnumUtils
    extends Object
    Utilities that help when working with Enums.
    Author:
    AO Industries, Inc.
    • Method Detail

      • max

        public static <E extends Enum<E>> E max​(E e1,
                                                E e2)
        Gets the greater of two enums.
      • min

        public static <E extends Enum<E>> E min​(E e1,
                                                E e2)
        Gets the lesser of two enums.