Class EnumUtils

java.lang.Object
com.aoapps.lang.EnumUtils

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

    • 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.