public class WinLoss extends java.lang.Object implements java.lang.Comparable<WinLoss>
| Constructor and Description |
|---|
WinLoss() |
WinLoss(int wins,
int losses)
Convienence constructor that takes the wins and losses
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(WinLoss o)
Compare the value of this WinLoss with that one.
|
double |
getValue()
Get the numeric value of this WinLoss
|
java.lang.String |
toString()
Get the String value of this WinLoss
|
public WinLoss(int wins,
int losses)
wins - The number of times you have beaten this opponent.losses - The number of times you have lost to this opponent.public WinLoss()