Interface PlayerProfile
- All Superinterfaces:
Player
- All Known Subinterfaces:
CompetitorPlayer
- All Known Implementing Classes:
CompetitorPlayerImpl,PlayerProfileImpl
Defines methods implemented by classes representing a player profile
-
Method Summary
Modifier and TypeMethodDescriptionReturns aStringrepresentation of a country codeReturns theDatespecifying the date of birth of the player associated with the current instancegetFullName(Locale locale) Returns the player full name in the specified languagedefault StringReturns gender of the playerReturns the height in centimeters of the player represented by the current instance or a null reference if height is not knownReturns the player jersey numberReturns an unmodifiableMapcontaining player's nationality in different languagesgetNationality(Locale locale) Returns the nationality of the player in the requestedLocaleReturns the player nicknamegetType()Returns the value describing the type(e.g.Returns the weight in kilograms of the player represented by the current instance or a null reference if weight is not known
-
Method Details
-
getFullName
Returns the player full name in the specified language- Parameters:
locale- -Localespecifying the language of the returned player name- Returns:
- - The player full name in the specified language if it exists. Null otherwise.
-
getType
String getType()Returns the value describing the type(e.g. forward, defense, ...) of the player represented by current instance- Returns:
- - the value describing the type(e.g. forward, defense, ...) of the player represented by current instance
-
getDateOfBirth
Date getDateOfBirth()Returns theDatespecifying the date of birth of the player associated with the current instance- Returns:
- - the
Datespecifying the date of birth of the player associated with the current instance
-
getHeight
Integer getHeight()Returns the height in centimeters of the player represented by the current instance or a null reference if height is not known- Returns:
- - the height in centimeters of the player represented by the current instance or a null reference if height is not known
-
getWeight
Integer getWeight()Returns the weight in kilograms of the player represented by the current instance or a null reference if weight is not known- Returns:
- - the weight in kilograms of the player represented by the current instance or a null reference if weight is not known
-
getCountryCode
String getCountryCode()Returns aStringrepresentation of a country code- Returns:
- - a
Stringrepresentation of a country code
-
getNationality
Returns the nationality of the player in the requestedLocale -
getNationalities
Returns an unmodifiableMapcontaining player's nationality in different languages- Returns:
- - an unmodifiable
Mapcontaining player's nationality in different languages
-
getJerseyNumber
Integer getJerseyNumber()Returns the player jersey number- Returns:
- the jersey number if available; otherwise null
-
getNickname
String getNickname()Returns the player nickname- Returns:
- the player nickname if available; otherwise null
-
getGender
Returns gender of the player- Returns:
- the gender of the player if available; otherwise null
-