View Javadoc
1   package info.mikethomas.fahweb.model;
2   
3   /*
4    * #%L
5    * This file is part of FAHWeb.
6    * %%
7    * Copyright (C) 2012 - 2017 Michael Thomas <mikepthomas@outlook.com>
8    * %%
9    * This program is free software: you can redistribute it and/or modify
10   * it under the terms of the GNU General Public License as
11   * published by the Free Software Foundation, either version 3 of the
12   * License, or (at your option) any later version.
13   * 
14   * This program is distributed in the hope that it will be useful,
15   * but WITHOUT ANY WARRANTY; without even the implied warranty of
16   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17   * GNU General Public License for more details.
18   * 
19   * You should have received a copy of the GNU General Public
20   * License along with this program.  If not, see
21   * <http://www.gnu.org/licenses/gpl-3.0.html>.
22   * #L%
23   */
24  
25  import java.io.Serializable;
26  
27  /**
28   * <p>Team class.</p>
29   *
30   * @author Michael Thomas (mikepthomas@outlook.com)
31   * @version $Id: $Id
32   */
33  public class Team implements Serializable {
34  
35      private int uniqueId;
36      private int team;
37      private String teamName;
38      private long score;
39      private int wu;
40  
41      /**
42       * <p>Constructor for Team.</p>
43       */
44      public Team() {
45          super();
46      }
47  
48      /**
49       * <p>Constructor for Team.</p>
50       *
51       * @param team a int.
52       * @param teamName a {@link java.lang.String} object.
53       * @param score a long.
54       * @param wu a int.
55       */
56      public Team(int team, String teamName, long score, int wu) {
57          this.team = team;
58          this.teamName = teamName;
59          this.score = score;
60          this.wu = wu;
61      }
62  
63      /**
64       * Get the value of uniqueId
65       *
66       * @return the value of uniqueId
67       */
68      public int getUniqueId() {
69          return uniqueId;
70      }
71  
72      /**
73       * Set the value of uniqueId
74       *
75       * @param uniqueId new value of uniqueId
76       */
77      public void setUniqueId(int uniqueId) {
78          this.uniqueId = uniqueId;
79      }
80  
81      /**
82       * Get the value of Team
83       *
84       * @return the value of Team
85       */
86      public int getTeam() {
87          return team;
88      }
89  
90      /**
91       * Set the value of Team
92       *
93       * @param team new value of Team
94       */
95      public void setTeam(int team) {
96          this.team = team;
97      }
98  
99      /**
100      * Get the value of teamName
101      *
102      * @return the value of teamName
103      */
104     public String getTeamName() {
105         return teamName;
106     }
107 
108     /**
109      * Set the value of teamName
110      *
111      * @param teamName new value of teamName
112      */
113     public void setTeamName(String teamName) {
114         this.teamName = teamName;
115     }
116 
117     /**
118      * Get the value of score
119      *
120      * @return the value of score
121      */
122     public long getScore() {
123         return score;
124     }
125 
126     /**
127      * Set the value of score
128      *
129      * @param score new value of score
130      */
131     public void setScore(long score) {
132         this.score = score;
133     }
134 
135     /**
136      * Get the value of wu
137      *
138      * @return the value of wu
139      */
140     public int getWu() {
141         return wu;
142     }
143 
144     /**
145      * Set the value of wu
146      *
147      * @param wu new value of wu
148      */
149     public void setWu(int wu) {
150         this.wu = wu;
151     }
152 }