From 01a3dd65fb1bf371a6b0febcaf203d40e430f7a9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 22 Oct 2013 23:05:43 +0200 Subject: [PATCH] Add Field constructor that takes all values. --- src/main/java/net/pterodactylus/sone/data/Profile.java | 6 ++++++ 1 file changed, 6 insertions(+) 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. * -- 2.7.4