Does Java have anything like any of the following
note I'm trying to emulate enums for blackckbery (and a little worried about speed for a simple string-> int dictionary ) which I'm fairly sure doesn't have them please try not to include code-just references I would like to code it up myself.
Reflection seems interesting is it that difficult to use simply? can you access field names with it? can you use it with a normal blackbery java program?
enum
is basically some nice syntactic sugar for the type-safe enum pattern that can be implemented in pre-Java 5 as well. equals()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.