public class Points extends Object implements Comparable<Points>
| Constructor and Description |
|---|
Points(double d,
String reason)Create a new Points instance with an initial value. |
| Modifier and Type | Method and Description |
|---|---|
void | addPoints(double d,
String reason)Add points with a reason. |
int | compareTo(Points r) |
boolean | equals(Object o) |
static Points | fromString(String s)For persistence. |
double | getPoints()Get the total points. |
List<String> | getReasons()Get the list of reasons. |
int | hashCode() |
String | toString()Return a string representation. |
void | toString(StringBuilder buf)For persistence. |
public Points(double d,
String reason)reason - may not contain '%'public void addPoints(double d,
String reason)reason - may not contain '%'public int compareTo(Points r)
compareTo in interface Comparable<Points>public double getPoints()
public void toString(StringBuilder buf)