Exemplo n.º 1
0
 public static String[] getFunctionNames() {
   String[] names = new String[SupportAggMFFunc.values().length];
   for (int i = 0; i < names.length; i++) {
     names[i] = SupportAggMFFunc.values()[i].getName();
   }
   return names;
 }
Exemplo n.º 2
0
 public static SupportAggMFFunc fromFunctionName(String functionName) {
   for (SupportAggMFFunc func : SupportAggMFFunc.values()) {
     if (func.getName().equals(functionName)) {
       return func;
     }
   }
   throw new RuntimeException("Unrecognized function name '" + functionName + "'");
 }