Interface TeamStatistics


public interface TeamStatistics
Defines methods used to access team statistics
  • Method Details

    • getHomeAway

      HomeAway getHomeAway()
      Returns an indication if the statistics are for the home or away team
      Returns:
      HomeAway.Home if the statistics are for the home team; HomeAway.Away if 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

      default Integer getGreenCards()
      Returns the received green cards number
      Returns:
      the received green cards number, could be null
    • getName

      default String getName()
      Returns the name
      Returns:
      the name