public class WinStats extends Object implements Comparable<WinStats>
| Constructor and Description |
|---|
WinStats() |
WinStats(int wins,
int losses,
int draws) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(WinResult result) |
void |
combine(WinStats combineWith) |
int |
compareTo(WinStats other) |
WinStats |
copyWith(WinStats combineWith) |
int |
getDraws() |
int |
getLosses() |
double |
getPercentage() |
int |
getTotal() |
int |
getWins() |
String |
toString() |
public WinStats()
public WinStats(int wins,
int losses,
int draws)
public void combine(WinStats combineWith)
public void add(WinResult result)
public int getTotal()
public int getWins()
public int getLosses()
public int getDraws()
public double getPercentage()
public int compareTo(WinStats other)
compareTo in interface Comparable<WinStats>Copyright © 2014. All rights reserved.