class EnumUtils {
/**
* <p>Gets the <code>List</code> of <code>Enum</code> objects using
* the <code>Enum</code> class.</p>
*
* <p>The list is in the order that the objects were created
* (source code order).</p>
*
* <p>If the requested class has no enum objects an empty
* <code>List</code> is returned. The <code>List</code> is unmodifiable.</p>
*
* @param enumClass the class of the Enum to get
* @return the enum object Map
* @throws IllegalArgumentException if the enum class is <code>null</code>
* @throws IllegalArgumentException if the enum class is not a subclass
* of <code>Enum</code>
*/
public static List getEnumList(Class enumClass) {
return Enum.getEnumList(enumClass);
}
}
|