Add Field constructor that takes all values.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 22 Oct 2013 21:05:43 +0000 (23:05 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 28 Feb 2014 21:25:33 +0000 (22:25 +0100)
src/main/java/net/pterodactylus/sone/data/Profile.java

index 3e287d7..2792f46 100644 (file)
@@ -425,6 +425,12 @@ public class Profile implements Fingerprintable {
                        this.id = checkNotNull(id, "id must not be null");
                }
 
+               public Field(String id, String name, String value) {
+                       this.id = checkNotNull(id, "id must not be null");
+                       this.name = name;
+                       this.value = value;
+               }
+
                /**
                 * Returns the ID of this field.
                 *