Class LoadableRoundCiImpl

java.lang.Object
com.sportradar.unifiedodds.sdk.internal.caching.ci.LoadableRoundCiImpl
All Implemented Interfaces:
LoadableRoundCi, RoundCi

public class LoadableRoundCiImpl extends Object implements LoadableRoundCi
A round representation used by caching components. The cache item properties are loaded on demand.
  • Constructor Details

  • Method Details

    • getType

      public String getType()
      Returns the type of the round
      Specified by:
      getType in interface RoundCi
      Returns:
      the type of the round
    • getGroup

      public String getGroup()
      Returns the name of the group associated with the current round
      Specified by:
      getGroup in interface RoundCi
      Returns:
      the name of the group associated with the current round
    • getGroupId

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

      public String getOtherMatchId()
      Returns the id of the other match
      Specified by:
      getOtherMatchId in interface RoundCi
      Returns:
      the id of the other match
    • getNumber

      public Integer getNumber()
      Returns a value specifying the round number or a null reference if round number is not defined
      Specified by:
      getNumber in interface RoundCi
      Returns:
      a value specifying the round number or a null reference if round number is not defined
    • 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 instance
      Specified by:
      getCupRoundMatches in interface RoundCi
      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 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 instance
      Specified by:
      getCupRoundMatchNumber in interface RoundCi
      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 instance
    • getBetradarId

      public Integer getBetradarId()
      Returns the betradar identifier
      Specified by:
      getBetradarId in interface RoundCi
      Returns:
      the betradar identifier; or null if unavailable
    • getName

      public String getName(Locale locale)
      Returns the name for specific locale
      Specified by:
      getName in interface RoundCi
      Parameters:
      locale - Locale specifying the language of the returned name
      Returns:
      the name if exists, or null
    • getPhaseOrGroupLongName

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

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

      public String getBetradarName()
      Returns the betradar name
      Specified by:
      getBetradarName in interface RoundCi
      Returns:
      the betradar name
    • merge

      public void merge(com.sportradar.uf.sportsapi.datamodel.SapiMatchRound round, Locale locale, boolean isFixtureEndpoint)
      Merges the information from the provided SapiMatchRound into the current instance
      Specified by:
      merge in interface LoadableRoundCi
      Parameters:
      round - SapiMatchRound containing information about the round
      locale - Locale specifying the language of the provided data
      isFixtureEndpoint - an indication if the data provided was extracted from the fixture endpoint
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • export

      public ExportableLoadableRoundCi export()