KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > league > util > Group


1 /*
2  * Group.java
3  *
4  * Created on March 16, 2005, 2:16 PM
5  *
6  * To change this template, choose Tools | Options and locate the template under
7  * the Source Creation and Management node. Right-click the template and choose
8  * Open. You can then make changes to the template in the Source Editor.
9  */

10
11 package league.util;
12
13 import java.util.Vector JavaDoc;
14
15 /**
16  *
17  * @author honza
18  */

19 public class Group extends Object JavaDoc implements java.io.Serializable JavaDoc{
20     private Vector JavaDoc teams=null;
21     private String JavaDoc name=null;
22     private Integer JavaDoc id=null;
23     
24     public Group() {
25     }
26     
27     /** Creates a new instance of Group */
28     public Group(Integer JavaDoc id, String JavaDoc name, Vector JavaDoc teams) {
29         this.name=name;
30         this.id=id;
31         this.teams=teams;
32     }
33     
34     public String JavaDoc getName(){
35         return name;
36     }
37     
38     public Integer JavaDoc getId() {
39         return id;
40     }
41     
42     public Vector JavaDoc 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 JavaDoc toString() {
52         return getName();
53     }
54     
55 }
56
Popular Tags