Skip to content

Instantly share code, notes, and snippets.

@edgars
Created October 13, 2009 21:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edgars/209602 to your computer and use it in GitHub Desktop.
Save edgars/209602 to your computer and use it in GitHub Desktop.
public enum Enumeration {
ENUM_1(1),
ENUM_2(2),
ENUM_3(3),
ENUM_4(4);
private int code;
private Enumeration(final int code) {
this.code = code;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment