I have been searching around for days to find an answer to this performance based issue.
After digging the Internet so far I have learned that there are couple of ways
Enums are, generally speaking, comparable in performance to int constants, if used in a switch statement (1).
Maybe you should rather consider something along the lines of constant specific method implementations? e.g.
public enum Mode {
ON { Color color() {return Color.GREEN;}},
OFF { Color color() {return Color.RED;}},
STANDBY { Color color() {return Color.YELLOW;}},
DEFAULT { Color color() {return Color.BLACK;}};
abstract Color color();
}//enum Mode
And then use
getMode().color();
instead of a switch statement?!
However, I think that for a "get a color only case", there is maybe no need for methods at all.
In general, I highly recommend you Effective Java for your bookshelf. Chapter 6 would be the one that discusses Enums and Annotations.