|
Betty v1.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchristophedelory.betty.better.BetterRank
public final class BetterRank
The association between a better and its rank, based on the following statistics: total score and result.
Method Summary | |
---|---|
static BetterRank |
addBet(List<BetterRank> betterRanks,
LocalBet dbBet)
Returns the better rank instance from the list that corresponds to the specified bet. |
int |
getResult()
Returns the current total result. |
int |
getScore()
Returns the current total score. |
LocalUser |
getUser()
Returns the better EJB object. |
String |
toString()
Returns a string representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static BetterRank addBet(List<BetterRank> betterRanks, LocalBet dbBet)
betterRanks
- a list of better ranks. Should not be null
.dbBet
- a bet. Should not be null
.
null
.
NullPointerException
- if betterRanks
is null
.
NullPointerException
- if dbBet
is null
.
EJBException
- if any exception occurred during the execution of this method.public LocalUser getUser()
null
.public int getScore()
public int getResult()
public String toString()
toString
in class Object
|
© 2008-2009 Christophe Delory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |