Have you looked at Java enums?
Java Enum Tutorial: 10 Examples of Enum in Java
The syntax seems similar to what you describe.
Type: Posts; User: Starstreak
Have you looked at Java enums?
Java Enum Tutorial: 10 Examples of Enum in Java
The syntax seems similar to what you describe.