/* * Created on Jun 25, 2004 */ package baseball; /** Information about an entire collection of baseball teams. *
In addition to the methods specified here, the class should * provide a constructor which takes one parameter, a file identifier. * The file is expected to contain information about teams. * @author dickey */ public interface ILeague { /** Read player information from a file and remember it. * * @param fileID identifier (local name or URL) of a file containing * information about players who are hitters. * @return the number of players added. */ public int addHitterInformation(String fileID); /** Read player information from a file and remember it. * * @param fileID identifier (local name or URL) of a file containing * information about players who are pitchers. * @return the number of players added. */ public int addPitcherInformation(String fileID); /** Print the teams in order, one per line. */ public void printTeams(); /** Print all the players in order, one per line. */ public void printPlayers(); /** Print in order, one per line, the players who play for * the given team. * @param teamName the name of a team. The name should treated * case-insensitively. */ public void printPlayers(String teamName); }