public class BasketballStats extends java.lang.Object implements IParticipantStats
Constructor and Description |
---|
BasketballStats(int totalScore,
int hasQuarterScore,
int firstQuarterScore,
int secondQuarterScore,
int thirdQuarterScore,
int fourthQuarterScore,
int overtimeScore) |
BasketballStats(java.util.List<java.lang.Integer> scoreList) |
Modifier and Type | Method and Description |
---|---|
int |
getHalfScore(int segmentNum)
Retrieve first/second half score and overtime basketball score.This
method only applies to NCAA league (men), will return -1 for other
league.SegmentNum indicates the basketball segment, segmentNum = 1 will
retrieve first half score whereas segmentNum = 2 will retrieve second
half score.
|
int |
getQuarterScore(int quarterNum)
Retrieve first/second/third/fourth quarter score and overtime basketball
score.
|
java.util.List<java.lang.Integer> |
getScores()
Retrieve a list of basketball score information.First element is the
total score, followed by hasQuarterScore(indicator to show if the
basketball match provide quarter 1/2/3/4 scores, return false for NCAA
(men) league), first quarter score, second quarter score, third quarter
score, fourth quarter score, and over time score.
|
int |
getTotalScore()
Retrieve the total score of host/guest
|
boolean |
hasQuarterScore()
To check if the match provide quarter 1/2/3/4 basketball score or
first/second half score (for NCAA league (men)).
|
public BasketballStats(int totalScore, int hasQuarterScore, int firstQuarterScore, int secondQuarterScore, int thirdQuarterScore, int fourthQuarterScore, int overtimeScore)
public BasketballStats(java.util.List<java.lang.Integer> scoreList)
public java.util.List<java.lang.Integer> getScores()
getScores
in interface IParticipantStats
public int getQuarterScore(int quarterNum)
quarterNum
- - The specific quater number that you want to get the score frompublic int getHalfScore(int segmentNum)
segmentNum
- public boolean hasQuarterScore()
public int getTotalScore()