1 10 11 package league.util; 12 13 import java.util.Vector ; 14 15 19 public class Group extends Object implements java.io.Serializable { 20 private Vector teams=null; 21 private String name=null; 22 private Integer id=null; 23 24 public Group() { 25 } 26 27 28 public Group(Integer id, String name, Vector teams) { 29 this.name=name; 30 this.id=id; 31 this.teams=teams; 32 } 33 34 public String getName(){ 35 return name; 36 } 37 38 public Integer getId() { 39 return id; 40 } 41 42 public Vector getTeams() { 43 return teams; 44 } 45 public int getTeamsCount() { 46 return teams.size(); 47 } 48 public Team getTeamAt(int i) { 49 return (Team) teams.elementAt(i); 50 } 51 public String toString() { 52 return getName(); 53 } 54 55 } 56 | Popular Tags |