public class PlayerProfileImpl extends Object implements PlayerProfile
Constructor and Description |
---|
PlayerProfileImpl(Urn playerId,
ProfileCache profileCache,
List<Urn> possibleAssociatedCompetitorIds,
List<Locale> locales,
ExceptionHandlingStrategy exceptionHandlingStrategy)
Initializes a new instance of
PlayerProfileImpl |
Modifier and Type | Method and Description |
---|---|
String |
getCountryCode()
Returns a
String representation of a country code |
Date |
getDateOfBirth()
Returns the
Date specifying the date of birth of the player associated with the current instance |
String |
getFullName(Locale locale)
Returns the player full name in the specified language
|
String |
getGender()
Returns gender of the player
|
Integer |
getHeight()
Returns the height in centimeters of the player represented by the current instance or a null reference if height is not known
|
Urn |
getId()
Returns the unique
Urn identifier representing the current PlayerProfile instance |
Integer |
getJerseyNumber()
Returns the player jersey number
|
String |
getName(Locale locale)
Returns the name of the player in the specified language
|
Map<Locale,String> |
getNames()
Returns an unmodifiable map of available translated names
|
Map<Locale,String> |
getNationalities()
Returns an unmodifiable
Map containing player's nationality in different languages |
String |
getNationality(Locale locale)
Returns the nationality of the player in the requested
Locale |
String |
getNickname()
Returns the player nickname
|
String |
getType()
Returns the value describing the type(e.g.
|
Integer |
getWeight()
Returns the weight in kilograms of the player represented by the current instance or a null reference if weight is not known
|
String |
toString()
Returns a
String describing the current PlayerProfile instance |
public PlayerProfileImpl(Urn playerId, ProfileCache profileCache, List<Urn> possibleAssociatedCompetitorIds, List<Locale> locales, ExceptionHandlingStrategy exceptionHandlingStrategy)
PlayerProfileImpl
playerId
- the associated player identifierprofileCache
- the cache used to provide the datapossibleAssociatedCompetitorIds
- a list of possible associated competitor ids (used to prefetch data)locales
- the Locale
s in which the data should be availableexceptionHandlingStrategy
- the preferred exception handling strategypublic Urn getId()
Urn
identifier representing the current PlayerProfile
instancegetId
in interface Player
Urn
identifier representing the current PlayerProfile
instancepublic Map<Locale,String> getNames()
public String getName(Locale locale)
public String getFullName(Locale locale)
getFullName
in interface PlayerProfile
locale
- - Locale
specifying the language of the returned player namepublic String getType()
getType
in interface PlayerProfile
public Date getDateOfBirth()
Date
specifying the date of birth of the player associated with the current instancegetDateOfBirth
in interface PlayerProfile
Date
specifying the date of birth of the player associated with the current instancepublic Integer getHeight()
getHeight
in interface PlayerProfile
public Integer getWeight()
getWeight
in interface PlayerProfile
public String getCountryCode()
String
representation of a country codegetCountryCode
in interface PlayerProfile
String
representation of a country codepublic String getNationality(Locale locale)
Locale
getNationality
in interface PlayerProfile
locale
- - the Locale
in which to return the nationalityLocale
public Map<Locale,String> getNationalities()
Map
containing player's nationality in different languagesgetNationalities
in interface PlayerProfile
Map
containing player's nationality in different languagesImmutableMap
public Integer getJerseyNumber()
getJerseyNumber
in interface PlayerProfile
public String getNickname()
getNickname
in interface PlayerProfile
public String getGender()
getGender
in interface PlayerProfile
public String toString()
String
describing the current PlayerProfile
instancetoString
in class Object
String
describing the current PlayerProfile
instanceCopyright © 2016–2025. All rights reserved.