コード例 #1
0
 private int getToolPriority(int id) {
   ToolType type = ToolType.getById(id);
   if (type == null) return 0;
   int[] ids = type.getIds();
   for (int i = 0; i < ids.length; i++) if (id == ids[i]) return i + 1;
   return 0;
 }