java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.entities.CompetitorImpl
All Implemented Interfaces:
Competitor, Player
Direct Known Subclasses:
TeamCompetitorImpl

public class CompetitorImpl extends Object implements Competitor
Represents a player or a team competing in a sport event
  • Field Details

    • TeamQualifier

      protected String TeamQualifier
    • TeamDivision

      protected Integer TeamDivision
    • IsVirtual

      protected Boolean IsVirtual
  • Constructor Details

    • CompetitorImpl

      public CompetitorImpl(Urn competitorId, ProfileCache profileCache, Map<Urn,ReferenceIdCi> eventCompetitorsReferences, Boolean isVirtual, List<Locale> locales, SportEntityFactory sportEntityFactory, ExceptionHandlingStrategy exceptionHandlingStrategy)
      Initializes a new instance of the CompetitorImpl class
      Parameters:
      competitorId - the associated competitor id
      profileCache - the cache instance used to retrieve the cached data
      eventCompetitorsReferences - the list of competitors and associated references
      isVirtual - indication if the competitor is marked as virtual
      locales - a List in which is provided the CompetitorCi
      sportEntityFactory - the factory used to create additional entities
      exceptionHandlingStrategy - the exception handling strategy
    • CompetitorImpl

      public CompetitorImpl(Urn competitorId, ProfileCache profileCache, SportEventCi parentSportEventCi, List<Locale> locales, SportEntityFactory sportEntityFactory, ExceptionHandlingStrategy exceptionHandlingStrategy, Boolean isVirtual)
      Initializes a new instance of the CompetitorImpl class
      Parameters:
      competitorId - the associated competitor id
      profileCache - the cache instance used to retrieve the cached data
      parentSportEventCi - the SportEventCi this CompetitorCi belongs to
      locales - a List in which is provided the CompetitorCi
      sportEntityFactory - the factory used to create additional entities
      exceptionHandlingStrategy - the exception handling strategy
      isVirtual - indication if the competitor is marked as virtual
  • Method Details

    • getId

      public Urn getId()
      Returns the unique Urn identifier representing the current Competitor instance
      Specified by:
      getId in interface Player
      Returns:
      - the unique Urn identifier representing the current Competitor instance
    • getNames

      public Map<Locale,String> getNames()
      Returns an unmodifiable map of available translated names
      Specified by:
      getNames in interface Player
      Returns:
      - an unmodifiable map of available translated names
    • getName

      public String getName(Locale locale)
      Returns the name of the player in the specified language
      Specified by:
      getName in interface Player
      Parameters:
      locale - - a Locale specifying the language of the returned name
      Returns:
      - the name of the player in the specified language
    • getCountries

      public Map<Locale,String> getCountries()
      Returns an unmodifiable map of available translated competitor country names
      Specified by:
      getCountries in interface Competitor
      Returns:
      an unmodifiable map of available translated competitor country names
      See Also:
      • ImmutableMap
    • getAbbreviations

      public Map<Locale,String> getAbbreviations()
      Returns an unmodifiable map of available translated competitor abbreviations
      Specified by:
      getAbbreviations in interface Competitor
      Returns:
      an unmodifiable map of available translated competitor abbreviations
      See Also:
      • ImmutableMap
    • isVirtual

      public Boolean isVirtual()
      Returns a value indicating whether the current instance represents a placeholder team
      Specified by:
      isVirtual in interface Competitor
      Returns:
      - a value indicating whether the current instance represents a placeholder team
    • getReferences

      public Reference getReferences()
      Returns the reference ids
      Specified by:
      getReferences in interface Competitor
      Returns:
      - the reference ids
    • getCountryCode

      public String getCountryCode()
      Returns a String representation of a country code
      Specified by:
      getCountryCode in interface Competitor
      Returns:
      - a String representation of a country code
    • getCountry

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

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

      public List<Player> getPlayers()
      Returns a List of associated players
      Specified by:
      getPlayers in interface Competitor
      Returns:
      List of associated players
    • getJerseys

      public List<Jersey> getJerseys()
      Returns a List of known competitor jerseys
      Specified by:
      getJerseys in interface Competitor
      Returns:
      List of known competitor jerseys
    • getManager

      public Manager getManager()
      Returns the associated competitor manager
      Specified by:
      getManager in interface Competitor
      Returns:
      the associated competitor manager
    • getVenue

      public Venue getVenue()
      Return the associated competitor home venue
      Specified by:
      getVenue in interface Competitor
      Returns:
      the associated competitor home venue
    • getGender

      public String getGender()
      Returns gender of the competitor
      Specified by:
      getGender in interface Competitor
      Returns:
      the gender of the competitor if available; otherwise null
    • getRaceDriver

      public RaceDriverProfile getRaceDriver()
      Returns race driver of the competitor
      Specified by:
      getRaceDriver in interface Competitor
      Returns:
      the race driver of the competitor if available; otherwise null
    • getAgeGroup

      public String getAgeGroup()
      Returns age group of the competitor
      Specified by:
      getAgeGroup in interface Competitor
      Returns:
      the age group of the competitor if available; otherwise null
    • getState

      public String getState()
      Description copied from interface: Competitor
      Returns the state (default method)
      Specified by:
      getState in interface Competitor
      Returns:
      state
    • getSport

      public Sport getSport()
      Returns associated sport
      Specified by:
      getSport in interface Competitor
      Returns:
      sport if available; otherwise null
    • getCategory

      public CategorySummary getCategory()
      Returns associated category
      Specified by:
      getCategory in interface Competitor
      Returns:
      category if available; otherwise null
    • getShortName

      public String getShortName()
      Returns the short name of the competitor
      Specified by:
      getShortName in interface Competitor
      Returns:
      the dhort name of the competitor if available; otherwise null
    • getDivision

      public Division getDivision()
      Specified by:
      getDivision in interface Competitor
    • toString

      public String toString()
      Returns a String describing the current Competitor instance
      Overrides:
      toString in class Object
      Returns:
      - a String describing the current Competitor instance
    • FetchEventCompetitorsReferenceIds

      protected void FetchEventCompetitorsReferenceIds()
    • FetchEventCompetitorsQualifiers

      protected void FetchEventCompetitorsQualifiers()
    • FetchEventCompetitorsDivisions

      protected void FetchEventCompetitorsDivisions()