Add copy constructor.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 14 Oct 2010 04:19:28 +0000 (06:19 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 14 Oct 2010 04:19:28 +0000 (06:19 +0200)
src/main/java/net/pterodactylus/sone/data/Profile.java

index 22e43c3..18ec602 100644 (file)
@@ -38,6 +38,16 @@ 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