Package net.i2p.router.sybil
Class Points
java.lang.Object
net.i2p.router.sybil.Points
- All Implemented Interfaces:
Comparable<Points>
A total score and a List of reason Strings
- Since:
- 0.9.38 moved from SybilRenderer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
int
static Points
fromString
(String s) For persistence.double
toString()
void
toString
(StringBuilder buf) For persistence.
-
Constructor Details
-
Points
- Parameters:
reason
- may not contain '%'
-
-
Method Details
-
getPoints
public double getPoints()- Since:
- 0.9.38
-
getReasons
- Since:
- 0.9.38
-
addPoints
- Parameters:
reason
- may not contain '%'- Since:
- 0.9.38
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Points>
-
toString
-
toString
For persistence. Total points and reasons, '%' separated, no newline. The separation character is chosen to not conflict with decimal point in various locales, or chars in reasons, including HTML links, or special chars in Pattern.- Since:
- 0.9.38
-
fromString
For persistence.- Returns:
- null on failure
- Since:
- 0.9.38
-