asEnumName<T extends Enum> method

T asEnumName<T extends Enum>(
  1. Iterable<T> values
)

As enum frum name (string) value

Implementation

T asEnumName<T extends Enum>(Iterable<T> values)
{
  assertIsNotNull();
  String name = asString();
  return values.byName(name);
}