Created
June 22, 2018 19:15
-
-
Save os890/e265a57986ce66a86a9c84910d12c262 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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