java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.entities.RoundImpl
All Implemented Interfaces:
Round

public class RoundImpl extends Object implements Round
Provides basic tournament round information
  • Method Details

    • getType

      public String getType()
      Returns the type of the round
      Specified by:
      getType in interface Round
      Returns:
      - the type of the round
    • getNumber

      public Integer getNumber()
      Returns the value specifying the round number or a null reference if round number is not defined
      Specified by:
      getNumber in interface Round
      Returns:
      - the value specifying the round number or a null reference if round number is not defined
    • getName

      public String getName(Locale locale)
      Returns the round instance name in the requested locale
      Specified by:
      getName in interface Round
      Parameters:
      locale - - a Locale in which the name is requested
      Returns:
      - the round instance name translated in the requested locale
    • getNames

      public Map<Locale,String> getNames()
      Returns an unmodifiable Map which contains translated Round names
      Specified by:
      getNames in interface Round
      Returns:
      - an unmodifiable Map which contains translated Round names
      See Also:
      • ImmutableMap
    • getPhaseOrGroupLongName

      public String getPhaseOrGroupLongName(Locale locale)
      Returns the name or group long name for the specified locale
      Specified by:
      getPhaseOrGroupLongName in interface Round
      Parameters:
      locale - Locale specifying the language of the value
      Returns:
      the name or group long name if exists, or null
    • getOtherMatchId

      public String getOtherMatchId()
      Returns the id of the other match
      Specified by:
      getOtherMatchId in interface Round
      Returns:
      - the id of the other match
    • getCupRoundMatches

      public Integer getCupRoundMatches()
      Returns a value specifying the number of matches in the current cup round or a null reference if number of matches is not applicable to current Round instance
      Specified by:
      getCupRoundMatches in interface Round
      Returns:
      - a value specifying the number of matches in the current cup round or a null reference if number of matches is not applicable to current Round instance
    • getCupRoundMatchNumber

      public Integer getCupRoundMatchNumber()
      Returns a value specifying the number of the match in the current cup round or a null reference if match number is not applicable to current Round instance
      Specified by:
      getCupRoundMatchNumber in interface Round
      Returns:
      - a value specifying the number of the match in the current cup round or a null reference if match number is not applicable to current Round instance
    • getBetradarId

      public Integer getBetradarId()
      Returns the Betradar identifier
      Specified by:
      getBetradarId in interface Round
      Returns:
      - the Betradar identifier; or null if unavailable
    • getGroupId

      public Urn getGroupId()
      Returns the id of the group associated with the current round
      Specified by:
      getGroupId in interface Round
      Returns:
      - the id of the group associated with the current round
    • getPhase

      public String getPhase()
      Returns the phase of the round
      Specified by:
      getPhase in interface Round
      Returns:
      the phase of the round
    • getGroup

      public String getGroup()
      Returns the group of the group associated with the current round
      Specified by:
      getGroup in interface Round
      Returns:
      - the group of the group associated with the current round
    • getBetradarName

      public String getBetradarName()
      Returns the betradar name
      Specified by:
      getBetradarName in interface Round
      Returns:
      - the betradar name
    • toString

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