Java zwischengespeichert
private static final YourEnum[] values = values();
public static YourEnum[] getValues() {
return values;
}
Zwazel
private static final YourEnum[] values = values();
public static YourEnum[] getValues() {
return values;
}