Add copy constructor.
[Sone.git] / src / main / java / net / pterodactylus / sone / data / Profile.java
index b1040b3..18ec602 100644 (file)
@@ -38,11 +38,21 @@ public class Profile {
        }
 
        /**
+        * Creates a copy of a profile.
+        *
+        * @param profile
+        *            The profile to copy
+        */
+       public Profile(Profile profile) {
+               this.username = profile.username;
+       }
+
+       /**
         * Returns the name of the user this profile belongs to.
         *
         * @return The name of the user this profile belongs to
         */
-       public String username() {
+       public String getUsername() {
                return username;
        }