code: public static Schema enumWith(Class<Enum<?>> enumClass) {
      Enum<?>[] enumConstants = enumClass.getEnumConstants();
      String[] names = new String[enumConstants.length];
      for (int i = 0; i < enumConstants.length; i++) {
        names[i] = enumConstants[i].name();
      }
      return enumWith(names);
    }
docs: Creates a {@link Schema} of {@link Type#ENUM ENUM} type, with values extracted from the given {@link Enum} class.
  The ordering of values in the enum type schema would be the same as the {@link Enum#ordinal()} order.
  
  @param enumClass Enum values.
  @return A {@link Schema} of {@link Type#ENUM ENUM} type.