2 * jFCPlib - CalculatedTrust.java - Copyright © 2009–2016 David Roden
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 package net.pterodactylus.fcp.plugin;
21 * Container that stores the trust that is calculated by taking all trustees
22 * and their trust lists into account.
24 * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
26 public class CalculatedTrust {
28 /** The calculated trust value. */
29 private final Byte trust;
31 /** The calculated score value. */
32 private final Integer score;
34 /** The calculated rank. */
35 private final Integer rank;
38 * Creates a new calculated trust container.
41 * The calculated trust value
43 * The calculated score value
45 * The calculated rank of the
47 public CalculatedTrust(Byte trust, Integer score, Integer rank) {
54 * Returns the calculated trust value.
56 * @return The calculated trust value, or {@code null} if the trust
59 public Byte getTrust() {
64 * Returns the calculated score value.
66 * @return The calculated score value, or {@code null} if the score
69 public Integer getScore() {
74 * Returns the calculated rank.
76 * @return The calculated rank, or {@code null} if the rank is not known
78 public Integer getRank() {