Win a copy of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

SlimEnum - is the enum as we know it...

 
Greenhorn
Posts: 5
Scala IntelliJ IDE C++
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Well don't expect me to do the dishes! This ad has been cleaned for your convenience:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic