コード例 #1
0
 private Project createProject(String title, String description) {
   Project p = new Project();
   p.setName(title);
   p.setDescription(description);
   p.setSponsor("yanning");
   p.setAuthorized_funds(1000L);
   p.setAuthorized_hours(100L);
   return p;
 }
コード例 #2
0
 public Project findByName(String name) {
   for (Project p : projects) {
     if (p.getName().equals(name)) return p;
   }
   return null;
 }