From: David ‘Bombe’ Roden Date: Thu, 14 Oct 2010 04:19:28 +0000 (+0200) Subject: Add copy constructor. X-Git-Tag: 0.1-RC1~448 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=c8a23e47f68e385e890ab485cb819f0e000fcb43 Add copy constructor. --- diff --git a/src/main/java/net/pterodactylus/sone/data/Profile.java b/src/main/java/net/pterodactylus/sone/data/Profile.java index 22e43c3..18ec602 100644 --- a/src/main/java/net/pterodactylus/sone/data/Profile.java +++ b/src/main/java/net/pterodactylus/sone/data/Profile.java @@ -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