Ejemplo n.º 1
0
 /** Teams by their names. */
 public Map<String, GHTeam> getTeams() throws IOException {
   Map<String, GHTeam> r = new TreeMap<String, GHTeam>();
   for (GHTeam t : listTeams()) {
     r.put(t.getName(), t);
   }
   return r;
 }
Ejemplo n.º 2
0
 /** Finds a team that has the given name in its {@link GHTeam#getName()} */
 public GHTeam getTeamByName(String name) throws IOException {
   for (GHTeam t : listTeams()) {
     if (t.getName().equals(name)) return t;
   }
   return null;
 }