Example usage for org.apache.commons.lang.enums EnumUtils getEnumList

List of usage examples for org.apache.commons.lang.enums EnumUtils getEnumList

Introduction

In this page you can find the example usage for org.apache.commons.lang.enums EnumUtils getEnumList.

Prototype

public static List getEnumList(Class enumClass) 

Source Link

Document

Gets the List of Enum objects using the Enum class.

The list is in the order that the objects were created (source code order).

If the requested class has no enum objects an empty List is returned.

Usage

From source file:org.sipfoundry.sipxconfig.components.EnumPropertySelectionModel.java

public void setEnumClass(Class enumeration) {
    List list = EnumUtils.getEnumList(enumeration);
    m_options = (Enum[]) list.toArray(new Enum[list.size()]);
}