1 10 11 package league.util; 12 13 import java.util.Date ; 14 import java.util.Hashtable ; 15 import java.util.Vector ; 16 17 21 public class Round extends Object implements java.io.Serializable { 22 private Vector groups=null; 23 private String name=null; 24 private Integer id=null; 25 private Date startDate=null; 26 27 public Round() { 28 } 29 30 31 public Round(Integer id, String name, Date startDate, Vector groups) { 32 this.id=id; 33 this.name=name; 34 this.startDate=startDate; 35 this.groups=groups; 36 37 } 38 39 public String getName() { 40 return name; 41 } 42 public Integer getId() { 43 return id; 44 } 45 46 47 public Date getStartDate() { 48 return startDate; 49 } 50 public Vector getGroups() { 51 return groups; 52 } 53 public int getGroupsCount() { 54 if (groups==null) return -1; 55 return groups.size(); 56 } 57 public Group getGroupAt(int i) { 58 if (groups==null) return null; 59 return (Group) groups.elementAt(i); 60 } 61 public String toString() { 62 return getName(); 63 } 64 } 65 | Popular Tags |