From: David ‘Bombe’ Roden Date: Tue, 22 Oct 2013 21:05:43 +0000 (+0200) Subject: Add Field constructor that takes all values. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=01a3dd65fb1bf371a6b0febcaf203d40e430f7a9;p=Sone.git Add Field constructor that takes all values. --- diff --git a/src/main/java/net/pterodactylus/sone/data/Profile.java b/src/main/java/net/pterodactylus/sone/data/Profile.java index 3e287d7..2792f46 100644 --- a/src/main/java/net/pterodactylus/sone/data/Profile.java +++ b/src/main/java/net/pterodactylus/sone/data/Profile.java @@ -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. *