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)
PlayerProfileImplplayerId - the associated player identifierprofileCache - the cache used to provide the datapossibleAssociatedCompetitorIds - a list of possible associated competitor ids (used to prefetch data)locales - the Locales in which the data should be availableexceptionHandlingStrategy - the preferred exception handling strategypublic Urn getId()
Urn identifier representing the current PlayerProfile instancegetId in interface PlayerUrn identifier representing the current PlayerProfile instancepublic Map<Locale,String> getNames()
public String getName(Locale locale)
public String getFullName(Locale locale)
getFullName in interface PlayerProfilelocale - - Locale specifying the language of the returned player namepublic String getType()
getType in interface PlayerProfilepublic Date getDateOfBirth()
Date specifying the date of birth of the player associated with the current instancegetDateOfBirth in interface PlayerProfileDate specifying the date of birth of the player associated with the current instancepublic Integer getHeight()
getHeight in interface PlayerProfilepublic Integer getWeight()
getWeight in interface PlayerProfilepublic String getCountryCode()
String representation of a country codegetCountryCode in interface PlayerProfileString representation of a country codepublic String getNationality(Locale locale)
LocalegetNationality in interface PlayerProfilelocale - - the Locale in which to return the nationalityLocalepublic Map<Locale,String> getNationalities()
Map containing player's nationality in different languagesgetNationalities in interface PlayerProfileMap containing player's nationality in different languagesImmutableMappublic Integer getJerseyNumber()
getJerseyNumber in interface PlayerProfilepublic String getNickname()
getNickname in interface PlayerProfilepublic String getGender()
getGender in interface PlayerProfilepublic String toString()
String describing the current PlayerProfile instancetoString in class ObjectString describing the current PlayerProfile instanceCopyright © 2016–2025. All rights reserved.