Skip to content

Instantly share code, notes, and snippets.

@os890
Created June 22, 2018 19:15
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 os890/e265a57986ce66a86a9c84910d12c262 to your computer and use it in GitHub Desktop.
Save os890/e265a57986ce66a86a9c84910d12c262 to your computer and use it in GitHub Desktop.
public enum MyLabel implements LabelId {
FIRST_NAME("firstName"), LAST_NAME("lastName");
private final String key;
MyLabel(String key) {
this.key = "{" + key + "}";
}
@Override
public String getId() {
return key;
}
@Override
public String toString() {
return key;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment