This class supports the creation of multiple enumeration subclasses. In each subclass the enumeration values start at 0.
Documentation for this class can be found here. Apparently TypeSafeEnums are supported in the new version of Java. So at some point the classes that use this class should be replaced with something more generic.
Public Member Functions | |
TypeSafeEnum (String name, Class cls) | |
String | getName () |
int | getValue () |
String | toString () |
Static Public Member Functions | |
Iterator | enumValues (Class cls) |
Static Private Member Functions | |
enumInfo | findInfo (Class cls, boolean add) |
Find the entry for the enumeration, if it exists. | |
Private Attributes | |
String | mName |
int | mValue |
Static Private Attributes | |
ArrayList | infoVec = new ArrayList() |
|
|
|
|
|
Find the entry for the enumeration, if it exists. If not, add it to the end of the enumInfo. Note that this function has linear time, but the assumption is that there will not a large number of enumeration classes.
|
|
|
|
|
|
|
|
|
|
|
|
|