2 * FreenetSone - Profile.java - Copyright © 2010 David Roden
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 package net.pterodactylus.sone.data;
21 * A profile stores personal information about a {@link User}. All information
22 * is optional and can be {@code null}.
24 * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
26 public class Profile {
28 /** The first name. */
29 private String firstName;
31 /** The middle name(s). */
32 private String middleName;
35 private String lastName;
38 * Creates a new empty profile.
45 * Creates a copy of a profile.
50 public Profile(Profile profile) {
51 this.firstName = profile.firstName;
52 this.middleName = profile.middleName;
53 this.lastName = profile.lastName;
61 * Returns the first name.
63 * @return The first name
65 public String getFirstName() {
70 * Sets the first name.
73 * The first name to set
75 public void setFirstName(String firstName) {
76 this.firstName = firstName;
80 * Returns the middle name(s).
82 * @return The middle name
84 public String getMiddleName() {
89 * Sets the middle name.
92 * The middle name to set
94 public void setMiddleName(String middleName) {
95 this.middleName = middleName;
99 * Returns the last name.
101 * @return The last name
103 public String getLastName() {
108 * Sets the last name.
111 * The last name to set
113 public void setLastName(String lastName) {
114 this.lastName = lastName;