示例#1
0
 private static ArrayList<TransferView> findTransferViews(SchemeView map, int[] transfers) {
   ArrayList<TransferView> res = new ArrayList<TransferView>();
   for (Integer id : transfers) {
     TransferView view = map.findViewByTransferId(id);
     if (view != null) {
       res.add(view);
     }
   }
   return res;
 }
示例#2
0
 private static ArrayList<StationView> findStationViews(SchemeView map, int[] stations) {
   ArrayList<StationView> res = new ArrayList<StationView>();
   for (Integer id : stations) {
     StationView view = map.findViewByStationId(id);
     if (view != null) {
       res.add(view);
     }
   }
   return res;
 }