From 73e1201da32c14d0ef7b37c9d619305d964e20c1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 8 Apr 2011 15:45:12 +0200 Subject: [PATCH] Add method to set a long value. --- .../pterodactylus/sone/freenet/SimpleFieldSetBuilder.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/main/java/net/pterodactylus/sone/freenet/SimpleFieldSetBuilder.java b/src/main/java/net/pterodactylus/sone/freenet/SimpleFieldSetBuilder.java index a596dcd..f440e50 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/SimpleFieldSetBuilder.java +++ b/src/main/java/net/pterodactylus/sone/freenet/SimpleFieldSetBuilder.java @@ -89,4 +89,19 @@ public class SimpleFieldSetBuilder { return this; } + /** + * Stores the given value under the given key, overwriting any previous + * value. + * + * @param key + * The key of the value + * @param value + * The value to store + * @return This simple field set builder + */ + public SimpleFieldSetBuilder put(String key, long value) { + simpleFieldSet.put(key, value); + return this; + } + } -- 2.7.4