java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.entities.PlayerImpl
All Implemented Interfaces:
Player
Direct Known Subclasses:
AssistImpl, EventPlayerImpl, GoalScorerImpl

public class PlayerImpl extends Object implements Player
Represents a player or driver in a sport event
  • Field Details

    • names

      protected final Map<Locale,String> names
      An unmodifiable Map containing the available player name translations
      See Also:
      • ImmutableMap
  • Method Details

    • getId

      public Urn getId()
      Returns the unique Urn identifier representing the current Player instance
      Specified by:
      getId in interface Player
      Returns:
      - the unique Urn identifier representing the current Player instance
    • getNames

      public Map<Locale,String> getNames()
      Returns an unmodifiable map of available translated names
      Specified by:
      getNames in interface Player
      Returns:
      - an unmodifiable map of available translated names
      See Also:
      • ImmutableMap
    • getName

      public String getName(Locale locale)
      Returns the name of the player in the specified language
      Specified by:
      getName in interface Player
      Parameters:
      locale - - a Locale specifying the language of the returned name
      Returns:
      - the name of the player in the specified language
    • toString

      public String toString()
      Returns a String describing the current Player instance
      Overrides:
      toString in class Object
      Returns:
      - a String describing the current Player instance