From: David ‘Bombe’ Roden Date: Tue, 24 Nov 2015 19:29:20 +0000 (+0100) Subject: Expose method to set field on message X-Git-Tag: v0.1.4^2~16 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=05744cc00679fb050fceb5009b6f662669a21d29;p=jFCPlib.git Expose method to set field on message --- diff --git a/src/main/java/net/pterodactylus/fcp/FcpMessage.java b/src/main/java/net/pterodactylus/fcp/FcpMessage.java index ed4ae46..d9fff9b 100644 --- a/src/main/java/net/pterodactylus/fcp/FcpMessage.java +++ b/src/main/java/net/pterodactylus/fcp/FcpMessage.java @@ -110,6 +110,11 @@ public class FcpMessage implements Iterable { fields.put(field, value); } + public FcpMessage put(String field, String value) { + setField(field, value); + return this; + } + /** * Returns the value of the given field. *