From: David ‘Bombe’ Roden Date: Thu, 11 Jun 2009 20:12:14 +0000 (+0200) Subject: Add IdentityTrust container. X-Git-Tag: v0.1.1~35 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=c396744376667b3034b95063f6f0734f92ed3b33;p=jFCPlib.git Add IdentityTrust container. --- diff --git a/src/net/pterodactylus/fcp/plugin/WebOfTrustPlugin.java b/src/net/pterodactylus/fcp/plugin/WebOfTrustPlugin.java index b0c6ea4..1805af6 100644 --- a/src/net/pterodactylus/fcp/plugin/WebOfTrustPlugin.java +++ b/src/net/pterodactylus/fcp/plugin/WebOfTrustPlugin.java @@ -333,6 +333,52 @@ public class WebOfTrustPlugin { } /** + * Container for the trust given from one identity to another. + * + * @author David ‘Bombe’ Roden <bombe@freenetproject.org> + */ + public static class IdentityTrust { + + /** The trust given to the identity. */ + private final byte trust; + + /** The command for the trust value. */ + private final String comment; + + /** + * Creates a new identity trust container. + * + * @param trust + * The trust given to the identity + * @param comment + * The comment for the trust value + */ + public IdentityTrust(byte trust, String comment) { + this.trust = trust; + this.comment = comment; + } + + /** + * Returns the trust value given to the identity. + * + * @return The trust value + */ + public byte getTrust() { + return trust; + } + + /** + * Returns the comment for the trust value. + * + * @return The comment for the trust value + */ + public String getComment() { + return comment; + } + + } + + /** * Container that stores the trust that is calculated by taking all trustees * and their trust lists into account. *