Interface Competitor

All Superinterfaces:
Player
All Known Subinterfaces:
TeamCompetitor
All Known Implementing Classes:
CompetitorImpl, TeamCompetitorImpl

public interface Competitor extends Player
An interface providing methods to access competitor data
  • Method Details

    • getCountries

      Map<Locale,String> getCountries()
      Returns an unmodifiable map of available translated competitor country names
      Returns:
      an unmodifiable map of available translated competitor country names
    • getAbbreviations

      Map<Locale,String> getAbbreviations()
      Returns an unmodifiable map of available translated competitor abbreviations
      Returns:
      an unmodifiable map of available translated competitor abbreviations
    • isVirtual

      Boolean isVirtual()
      Returns a value indicating whether the current instance represents a placeholder team
      Returns:
      - a value indicating whether the current instance represents a placeholder team
    • getReferences

      Reference getReferences()
      Returns the reference ids
      Returns:
      - the reference ids
    • getCountryCode

      String getCountryCode()
      Returns a String representation of a country code
      Returns:
      - a String representation of a country code
    • getCountry

      String getCountry(Locale locale)
      Returns the translated competitor country name
      Parameters:
      locale - - a Locale specifying the language in which to get the country name
      Returns:
      - the translated competitor country name
    • getAbbreviation

      String getAbbreviation(Locale locale)
      Returns the translated competitor abbreviation
      Parameters:
      locale - - a Locale specifying the language in which to get the abbreviation
      Returns:
      - the translated competitor abbreviation
    • getPlayers

      List<Player> getPlayers()
      Returns a List of associated players
      Returns:
      List of associated players
    • getJerseys

      List<Jersey> getJerseys()
      Returns a List of known competitor jerseys
      Returns:
      List of known competitor jerseys
    • getManager

      Manager getManager()
      Returns the associated competitor manager
      Returns:
      the associated competitor manager
    • getVenue

      Venue getVenue()
      Return the associated competitor home venue
      Returns:
      the associated competitor home venue
    • getGender

      default String getGender()
      Returns gender of the competitor
      Returns:
      the gender of the competitor if available; otherwise null
    • getRaceDriver

      default RaceDriverProfile getRaceDriver()
      Returns race driver of the competitor
      Returns:
      the race driver of the competitor if available; otherwise null
    • getAgeGroup

      default String getAgeGroup()
      Returns age group of the competitor
      Returns:
      the age group of the competitor if available; otherwise null
    • getState

      default String getState()
      Returns the state (default method)
      Returns:
      state
      Throws:
      UnsupportedOperationException - if underlying implementation doesn't provide the state
    • getSport

      default Sport getSport()
      Returns associated sport
      Returns:
      sport if available; otherwise null
    • getCategory

      default CategorySummary getCategory()
      Returns associated category
      Returns:
      category if available; otherwise null
    • getShortName

      default String getShortName()
      Returns the short name
      Returns:
      the short name if available; otherwise null
    • getDivision

      Division getDivision()