From c8a23e47f68e385e890ab485cb819f0e000fcb43 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 14 Oct 2010 06:19:28 +0200 Subject: [PATCH] Add copy constructor. --- src/main/java/net/pterodactylus/sone/data/Profile.java | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- 2.7.4