Skip to content

Instantly share code, notes, and snippets.

@enrichman
Created February 25, 2016 15:10
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 enrichman/6e03fb1488e14e944343 to your computer and use it in GitHub Desktop.
Save enrichman/6e03fb1488e14e944343 to your computer and use it in GitHub Desktop.
public enum Feature {
A("nameA", "urlA.com"),
B("nameB", "urlB.com");
private String name;
private String url;
Feature(String name, String url) {
this.name = name;
this.url = url;
}
// getter,setter
// from name constructor
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment