||Enums in Java (One More Time)|
|Subject:||enum-as-objects as array-index|
Since the presented enums-as-objects pattern as an .ord() method which returns a unique int for each, I dispute that the pattern doesn't solve any part of #4 (efficiency for arrays/swithces).
enum-as-objects as array-index
2003-04-25 11:55:18 jimoore [View]