1 package info.mikethomas.fahview.v6project.model; 2 3 /* 4 * #%L 5 * This file is part of FAHView-v6project. 6 * %% 7 * Copyright (C) 2011 - 2017 Mike Thomas <mikepthomas@outlook.com> 8 * %% 9 * FAHView is free software: you can redistribute it and/or modify 10 * it under the terms of the GNU General Public License as published by 11 * the Free Software Foundation, either version 3 of the License, or 12 * (at your option) any later version. 13 * % 14 * FAHView 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 License 20 * along with FAHView. If not, see <http://www.gnu.org/licenses/>. 21 * #L% 22 */ 23 24 import java.util.Date; 25 26 /** 27 * <p>User class.</p> 28 * 29 * @author <a href="mailto:mikepthomas@outlook.com">Michael Thomas</a> 30 * @version $Id: $Id 31 */ 32 public class User implements java.io.Serializable { 33 34 private Date date; 35 private String name; 36 private int newcredit, sum, team; 37 38 /** 39 * No-arg constructor (takes no arguments). 40 */ 41 public User() { 42 } 43 44 /** 45 * Get the value of date 46 * 47 * @return the value of date 48 */ 49 public Date getDate() { 50 return date; 51 } 52 53 /** 54 * Set the value of date 55 * 56 * @param date new value of date 57 */ 58 public void setDate(Date date) { 59 this.date = date; 60 } 61 62 /** 63 * Get the value of name 64 * 65 * @return the value of name 66 */ 67 public String getName() { 68 return name; 69 } 70 71 /** 72 * Set the value of name 73 * 74 * @param name new value of name 75 */ 76 public void setName(String name) { 77 this.name = name; 78 } 79 80 /** 81 * Get the value of newcredit 82 * 83 * @return the value of newcredit 84 */ 85 public int getNewcredit() { 86 return newcredit; 87 } 88 89 /** 90 * Set the value of newcredit 91 * 92 * @param newcredit new value of newcredit 93 */ 94 public void setNewcredit(int newcredit) { 95 this.newcredit = newcredit; 96 } 97 98 /** 99 * Get the value of sum 100 * 101 * @return the value of sum 102 */ 103 public int getSum() { 104 return sum; 105 } 106 107 /** 108 * Set the value of sum 109 * 110 * @param sum new value of sum 111 */ 112 public void setSum(int sum) { 113 this.sum = sum; 114 } 115 116 /** 117 * Get the value of team 118 * 119 * @return the value of team 120 */ 121 public int getTeam() { 122 return team; 123 } 124 125 /** 126 * Set the value of team 127 * 128 * @param team new value of team 129 */ 130 public void setTeam(int team) { 131 this.team = team; 132 } 133 134 /** {@inheritDoc} */ 135 @Override 136 public String toString() { 137 return "User{" + "date=" + date + ", name=" + name + ", newcredit=" + 138 newcredit + ", sum=" + sum + ", team=" + team + '}'; 139 } 140 141 }