From: David ‘Bombe’ Roden Date: Tue, 24 Mar 2009 23:31:37 +0000 (+0100) Subject: Add accessor for “seed” property. X-Git-Tag: v0.1.1~64 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=806fe50f92bfb973202e10d6e2dff73e520684f0;p=jFCPlib.git Add accessor for “seed” property. --- diff --git a/src/net/pterodactylus/fcp/Peer.java b/src/net/pterodactylus/fcp/Peer.java index 1fa13e3..aec2959 100644 --- a/src/net/pterodactylus/fcp/Peer.java +++ b/src/net/pterodactylus/fcp/Peer.java @@ -92,6 +92,16 @@ public class Peer extends BaseMessage { } /** + * Returns whether this peer is a seed. + * + * @return true if the peer is a seed, false + * otherwise + */ + public boolean isSeed() { + return Boolean.valueOf(getField("seed")); + } + + /** * Returns the “y” part of the peer’s public DSA key. * * @return The public DSA key