Enumerations, or enums, manage options in drop-down lists in TeamConnect. Unlike lookup tables, you cannot add options to these drop-down lists.
All enums are model API classes that include a list of the enum constants. The purpose of these enums is to specify the selected option for a drop-down field, so that you can use the field in API code. Enum classes always include the following two methods:
•valueOf()—Returns the enum constant for a given field name.
•values()—Returns the list of enum constants.
For example, accounts in TeamConnect have the drop-down list field of Overdraft Type. The AccountOverdraftType class includes three enum constants for the three options in this drop-down list. You use this class for the Overdraft Type account field.