Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enum Type {
- TYPE1(1),
- TYPE2(2),
- ...
- private int constant;
- Type(int constant) {
- this.constant = constant;
- }
- }
- enum SubType {
- SUBTYPE1(1),
- SUBTYPE2(2),
- SUBTYPE3(3),
- ...
- private int constant;
- SubType(int constant) {
- this.constant = constant;
- }
- }
Add Comment
Please, Sign In to add comment