I have often the situation where I need a variable for a class that could be represented as simple enum type, for example:
private enum PageOrder {DOWN_THEN_OVER, OVER_THEN_DOWN};
If a declare the enum type within the class that holds the variable then I have to use the qualified name MyClass.PageOrder
which is not comfortable.
But if I create a new class I have a class for just a simple enum declaration, which seems overkill for me.
For that reason, I frequently use integers instead of enum type.
Any comments/suggestions on this topic?