Add method to set a long value.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 8 Apr 2011 13:45:12 +0000 (15:45 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 8 Apr 2011 13:45:12 +0000 (15:45 +0200)
src/main/java/net/pterodactylus/sone/freenet/SimpleFieldSetBuilder.java

index a596dcd..f440e50 100644 (file)
@@ -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;
+       }
+
 }