From: David ‘Bombe’ Roden Date: Fri, 8 Apr 2011 13:45:12 +0000 (+0200) Subject: Add method to set a long value. X-Git-Tag: 0.6.5^2~39^2~42 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=73e1201da32c14d0ef7b37c9d619305d964e20c1;p=Sone.git Add method to set a long value. --- 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; + } + }