Interface Competitor
- All Superinterfaces:
Player
- All Known Subinterfaces:
TeamCompetitor
- All Known Implementing Classes:
CompetitorImpl,TeamCompetitorImpl
An interface providing methods to access competitor data
-
Method Summary
Modifier and TypeMethodDescriptiongetAbbreviation(Locale locale) Returns the translated competitor abbreviationReturns an unmodifiable map of available translated competitor abbreviationsdefault StringReturns age group of the competitordefault CategorySummaryReturns associated categoryReturns an unmodifiable map of available translated competitor country namesgetCountry(Locale locale) Returns the translated competitor country nameReturns aStringrepresentation of a country codedefault StringReturns gender of the competitorReturns aListof known competitor jerseysReturns the associated competitor managerReturns aListof associated playersdefault RaceDriverProfileReturns race driver of the competitorReturns the reference idsdefault StringReturns the short namedefault SportgetSport()Returns associated sportdefault StringgetState()Returns the state (default method)getVenue()Return the associated competitor home venueReturns a value indicating whether the current instance represents a placeholder team
-
Method Details
-
getCountries
Returns an unmodifiable map of available translated competitor country names- Returns:
- an unmodifiable map of available translated competitor country names
-
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 aStringrepresentation of a country code- Returns:
- - a
Stringrepresentation of a country code
-
getCountry
Returns the translated competitor country name- Parameters:
locale- - aLocalespecifying the language in which to get the country name- Returns:
- - the translated competitor country name
-
getAbbreviation
Returns the translated competitor abbreviation- Parameters:
locale- - aLocalespecifying the language in which to get the abbreviation- Returns:
- - the translated competitor abbreviation
-
getPlayers
Returns aListof associated players- Returns:
Listof associated players
-
getJerseys
Returns aListof known competitor jerseys- Returns:
Listof 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
Returns gender of the competitor- Returns:
- the gender of the competitor if available; otherwise null
-
getRaceDriver
Returns race driver of the competitor- Returns:
- the race driver of the competitor if available; otherwise null
-
getAgeGroup
Returns age group of the competitor- Returns:
- the age group of the competitor if available; otherwise null
-
getState
Returns the state (default method)- Returns:
- state
- Throws:
UnsupportedOperationException- if underlying implementation doesn't provide the state
-
getSport
Returns associated sport- Returns:
- sport if available; otherwise null
-
getCategory
Returns associated category- Returns:
- category if available; otherwise null
-
getShortName
Returns the short name- Returns:
- the short name if available; otherwise null
-
getDivision
Division getDivision()
-