Java Enums with String values.
public enum aEnum {
aValue ("value"),
aOtherValue ("string for value"),
aAddValue ("another value");
private final String name;
private aEnum(String name) {
this.name = name;
}
public boolean equalsName(String otherName) {
return name.equals(otherName);
}
public String toString() {
return this.name;
}
}