Class CompetitorImpl
java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.entities.CompetitorImpl
- All Implemented Interfaces:
Competitor,Player
- Direct Known Subclasses:
TeamCompetitorImpl
Represents a player or a team competing in a sport event
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCompetitorImpl(Urn competitorId, ProfileCache profileCache, SportEventCi parentSportEventCi, List<Locale> locales, SportEntityFactory sportEntityFactory, ExceptionHandlingStrategy exceptionHandlingStrategy, Boolean isVirtual) Initializes a new instance of theCompetitorImplclassCompetitorImpl(Urn competitorId, ProfileCache profileCache, Map<Urn, ReferenceIdCi> eventCompetitorsReferences, Boolean isVirtual, List<Locale> locales, SportEntityFactory sportEntityFactory, ExceptionHandlingStrategy exceptionHandlingStrategy) Initializes a new instance of theCompetitorImplclass -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidprotected voidgetAbbreviation(Locale locale) Returns the translated competitor abbreviationReturns an unmodifiable map of available translated competitor abbreviationsReturns age group of the competitorReturns associated categoryReturns an unmodifiable map of available translated competitor country namesgetCountry(Locale locale) Returns the translated competitor country nameReturns aStringrepresentation of a country codeReturns gender of the competitorgetId()Returns the uniqueUrnidentifier representing the currentCompetitorinstanceReturns aListof known competitor jerseysReturns the associated competitor managerReturns the name of the player in the specified languagegetNames()Returns an unmodifiable map of available translated namesReturns aListof associated playersReturns race driver of the competitorReturns the reference idsReturns the short name of the competitorgetSport()Returns associated sportgetState()Returns the state (default method)getVenue()Return the associated competitor home venueReturns a value indicating whether the current instance represents a placeholder teamtoString()Returns aStringdescribing the currentCompetitorinstance
-
Field Details
-
TeamQualifier
-
TeamDivision
-
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 theCompetitorImplclass- Parameters:
competitorId- the associated competitor idprofileCache- the cache instance used to retrieve the cached dataeventCompetitorsReferences- the list of competitors and associated referencesisVirtual- indication if the competitor is marked as virtuallocales- aListin which is provided theCompetitorCisportEntityFactory- the factory used to create additional entitiesexceptionHandlingStrategy- 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 theCompetitorImplclass- Parameters:
competitorId- the associated competitor idprofileCache- the cache instance used to retrieve the cached dataparentSportEventCi- theSportEventCithisCompetitorCibelongs tolocales- aListin which is provided theCompetitorCisportEntityFactory- the factory used to create additional entitiesexceptionHandlingStrategy- the exception handling strategyisVirtual- indication if the competitor is marked as virtual
-
-
Method Details
-
getId
Returns the uniqueUrnidentifier representing the currentCompetitorinstance- Specified by:
getIdin interfacePlayer- Returns:
- - the unique
Urnidentifier representing the currentCompetitorinstance
-
getNames
Returns an unmodifiable map of available translated names -
getName
Returns the name of the player in the specified language -
getCountries
Returns an unmodifiable map of available translated competitor country names- Specified by:
getCountriesin interfaceCompetitor- Returns:
- an unmodifiable map of available translated competitor country names
- See Also:
-
ImmutableMap
-
getAbbreviations
Returns an unmodifiable map of available translated competitor abbreviations- Specified by:
getAbbreviationsin interfaceCompetitor- Returns:
- an unmodifiable map of available translated competitor abbreviations
- See Also:
-
ImmutableMap
-
isVirtual
Returns a value indicating whether the current instance represents a placeholder team- Specified by:
isVirtualin interfaceCompetitor- Returns:
- - a value indicating whether the current instance represents a placeholder team
-
getReferences
Returns the reference ids- Specified by:
getReferencesin interfaceCompetitor- Returns:
- - the reference ids
-
getCountryCode
Returns aStringrepresentation of a country code- Specified by:
getCountryCodein interfaceCompetitor- Returns:
- - a
Stringrepresentation of a country code
-
getCountry
Returns the translated competitor country name- Specified by:
getCountryin interfaceCompetitor- Parameters:
locale- - aLocalespecifying the language in which to get the country name- Returns:
- - the translated competitor country name
-
getAbbreviation
Returns the translated competitor abbreviation- Specified by:
getAbbreviationin interfaceCompetitor- Parameters:
locale- - aLocalespecifying the language in which to get the abbreviation- Returns:
- - the translated competitor abbreviation
-
getPlayers
Returns aListof associated players- Specified by:
getPlayersin interfaceCompetitor- Returns:
Listof associated players
-
getJerseys
Returns aListof known competitor jerseys- Specified by:
getJerseysin interfaceCompetitor- Returns:
Listof known competitor jerseys
-
getManager
Returns the associated competitor manager- Specified by:
getManagerin interfaceCompetitor- Returns:
- the associated competitor manager
-
getVenue
Return the associated competitor home venue- Specified by:
getVenuein interfaceCompetitor- Returns:
- the associated competitor home venue
-
getGender
Returns gender of the competitor- Specified by:
getGenderin interfaceCompetitor- Returns:
- the gender of the competitor if available; otherwise null
-
getRaceDriver
Returns race driver of the competitor- Specified by:
getRaceDriverin interfaceCompetitor- Returns:
- the race driver of the competitor if available; otherwise null
-
getAgeGroup
Returns age group of the competitor- Specified by:
getAgeGroupin interfaceCompetitor- Returns:
- the age group of the competitor if available; otherwise null
-
getState
Description copied from interface:CompetitorReturns the state (default method)- Specified by:
getStatein interfaceCompetitor- Returns:
- state
-
getSport
Returns associated sport- Specified by:
getSportin interfaceCompetitor- Returns:
- sport if available; otherwise null
-
getCategory
Returns associated category- Specified by:
getCategoryin interfaceCompetitor- Returns:
- category if available; otherwise null
-
getShortName
Returns the short name of the competitor- Specified by:
getShortNamein interfaceCompetitor- Returns:
- the dhort name of the competitor if available; otherwise null
-
getDivision
- Specified by:
getDivisionin interfaceCompetitor
-
toString
Returns aStringdescribing the currentCompetitorinstance- Overrides:
toStringin classObject- Returns:
- - a
Stringdescribing the currentCompetitorinstance
-
FetchEventCompetitorsReferenceIds
protected void FetchEventCompetitorsReferenceIds() -
FetchEventCompetitorsQualifiers
protected void FetchEventCompetitorsQualifiers() -
FetchEventCompetitorsDivisions
protected void FetchEventCompetitorsDivisions()
-