Interface TeamStatistics
public interface TeamStatistics
Defines methods used to access team statistics
-
Method Summary
Modifier and TypeMethodDescriptiongetCards()Returns the total count of received cardsReturns the total amount of played corner kicksdefault IntegerReturns the received green cards numberReturns an indication if the statistics are for the home or away teamdefault StringgetName()Returns the nameReturns the received red cards numberReturns the received yellow cards numberReturns the received yellow-red cards number
-
Method Details
-
getHomeAway
HomeAway getHomeAway()Returns an indication if the statistics are for the home or away team- Returns:
HomeAway.Homeif the statistics are for the home team;HomeAway.Awayif the statistics are for the away team
-
getCards
Integer getCards()Returns the total count of received cards- Returns:
- the total count of received cards, could be null
-
getYellowCards
Integer getYellowCards()Returns the received yellow cards number- Returns:
- the received yellow cards number, could be null
-
getRedCards
Integer getRedCards()Returns the received red cards number- Returns:
- the received red cards number, could be null
-
getYellowRedCards
Integer getYellowRedCards()Returns the received yellow-red cards number- Returns:
- the received yellow-red cards number, could be null
-
getCornerKicks
Integer getCornerKicks()Returns the total amount of played corner kicks- Returns:
- the total amount of played corner kicks
-
getGreenCards
Returns the received green cards number- Returns:
- the received green cards number, could be null
-
getName
Returns the name- Returns:
- the name
-