示例#1
0
 public static List<String> getTypeNames() {
   List<String> names = new ArrayList<>();
   for (ModuleType type : ModuleType.values()) {
     names.add(type.toString());
   }
   return names;
 }
 @NotNull
 public static ModuleType getType(@NotNull String behaviourName) {
   for (ModuleType type : ModuleType.values())
     if (StringUtil.equals(type.behaviourName, behaviourName)) return type;
   return REGULAR;
 }