Package org.conical.common.bbl.enums.ifc
Interface Coded
- All Known Implementing Classes:
Ethnicity
,Handedness
,Race
,Sex
public interface Coded
This interface helps ensure that enum values that have integer equivalents
(usually stored in database tables) are easily distinguishable from those
that aren't. The return value for the lone method should be the int value
stored when this enum value is chosen.
- Author:
- rdoherty
-
Method Summary
Modifier and TypeMethodDescriptionint
getCode()
Returns a integer code for this enum value, generally the representative value stored in a database.
-
Method Details
-
getCode
int getCode()Returns a integer code for this enum value, generally the representative value stored in a database.- Returns:
- code for this value
-