/** 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; }
/** 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; }