Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java cached enum

private static final YourEnum[] values = values();

public static YourEnum[] getValues() {
  return values;
}
 
PREVIOUS NEXT
Tagged: #java #cached #enum
ADD COMMENT
Topic
Name
1+8 =