From 05744cc00679fb050fceb5009b6f662669a21d29 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 24 Nov 2015 20:29:20 +0100 Subject: [PATCH] Expose method to set field on message --- src/main/java/net/pterodactylus/fcp/FcpMessage.java | 5 +++++ 1 file changed, 5 insertions(+) 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. * -- 2.7.4