Skip to content

Instantly share code, notes, and snippets.

@osscontributor
Created June 27, 2014 08:39
Show Gist options
  • Save osscontributor/bebdb7f2282667fd1eca to your computer and use it in GitHub Desktop.
Save osscontributor/bebdb7f2282667fd1eca to your computer and use it in GitHub Desktop.
/*
Apparently http://stackoverflow.com/users/2970947/elliott-frisch doesn't believe that
Java enums can have state.
http://stackoverflow.com/questions/24447233/store-enum-class-reference?noredirect=1#comment37829803_24447233
*/
public enum MyEnum {
ONE(1), TWO(2);
public int value;
MyEnum(int value) {
this.value = value;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment