I'm trying to retrieving a value depending on the enum value. Basically, let's say I have the following enum:
private enum Auth{
KEY, PASSWORD, MAIL;
public String get(){
return "";
}
}
By doing Auth.KEY.get() it would return "mykey", while Auth.MAIL.get() would return "mymail" I googled a bit but I couldn't find an answer, I didn't try anything before because I totally hadn't an idea on how I could start.