Interface PlayerProfile

All Superinterfaces:
Player
All Known Subinterfaces:
CompetitorPlayer
All Known Implementing Classes:
CompetitorPlayerImpl, PlayerProfileImpl

public interface PlayerProfile extends Player
Defines methods implemented by classes representing a player profile
  • Method Details

    • getFullName

      String getFullName(Locale locale)
      Returns the player full name in the specified language
      Parameters:
      locale - - Locale specifying 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 the Date specifying the date of birth of the player associated with the current instance
      Returns:
      - the Date specifying 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 a String representation of a country code
      Returns:
      - a String representation of a country code
    • getNationality

      String getNationality(Locale locale)
      Returns the nationality of the player in the requested Locale
      Parameters:
      locale - - the Locale in which to return the nationality
      Returns:
      - the nationality of the player in the requested Locale
    • getNationalities

      Map<Locale,String> getNationalities()
      Returns an unmodifiable Map containing player's nationality in different languages
      Returns:
      - an unmodifiable Map containing 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

      default String getGender()
      Returns gender of the player
      Returns:
      the gender of the player if available; otherwise null