SlimEnum - is the enum as we know it, a
fat-free alternative to Java enums.. It was created as part of
java source code, generated by the
BlackBox.
SlimEnum utilize annotations construction, but in contrast with
Android IntDef it fill annotation body with constants to provide required enum functionality over any, even primitive(byte,int..etc.), data types.
SlimEnum uses annotation declaration with defined constant in their body, as named constants set for
certain type. Constants type is define to which type this constants set can be applied.
SlimEnum can be nested.
apply it to variables, fields, methods return type and method arguments
and use it
To bring support SlimEnum to the
IDE and make using it easy and efficiently SlimEnum plugin for
Android Studio / IDEA was created. It is available in the
Intellij plugin repository.
SlimEnum plugin can recognize applied to variables annotation, data type, and provide correct constants set for the code completion.
Compile by yourself or just download SlimEnum.jar and install as plugin to the