java.lang.Object
com.sportradar.unifiedodds.sdk.internal.caching.ci.SeasonCi

public class SeasonCi extends Object
A season representation used by caching components
  • Constructor Details

    • SeasonCi

      public SeasonCi(com.sportradar.uf.sportsapi.datamodel.SapiSeasonExtended season, Locale locale)
      Initializes a new instance of the SeasonCi class
      Parameters:
      season - - SapiSeasonExtended containing information about the season
      locale - - Locale specifying the language of the season
    • SeasonCi

      public SeasonCi(ExportableSeasonCi exportable)
  • Method Details

    • merge

      public void merge(com.sportradar.uf.sportsapi.datamodel.SapiSeasonExtended season, Locale locale)
      Merges the information from the provided SapiSeasonExtended into the current instance
      Parameters:
      season - - SapiSeasonExtended containing information about the season
      locale - - Locale specifying the language of the season
    • merge

      public void merge(SeasonCi season, Locale locale)
      Merges the information from the provided SeasonCi into the current instance
      Parameters:
      season - - SeasonCi containing information about the season
      locale - - Locale specifying the language of the season
    • getStartDate

      public Date getStartDate()
      Returns the Date specifying the start date of the season
      Returns:
      - the Date specifying the start date of the season
    • getEndDate

      public Date getEndDate()
      Returns the Date specifying the end date of the season
      Returns:
      - the Date specifying the end date of the season
    • getYear

      public String getYear()
      Returns the String representation the year of the season
      Returns:
      - the String representation the year of the season
    • getTournamentId

      public Urn getTournamentId()
      Returns the associated tournament identifier
      Returns:
      the associated tournament identifier
    • getName

      public String getName(Locale locale)
      Returns the name of the season in the specified language
      Parameters:
      locale - - Locale specifying the language of the returned abbreviation
      Returns:
      - The name of the season in the specified language if it exists. Null otherwise.
    • hasTranslationsFor

      public boolean hasTranslationsFor(List<Locale> locales)
    • export

      public ExportableSeasonCi export()
    • getId

      public Urn getId()
      Returns the Urn of the represented sport entity
      Returns:
      - the Urn of the represented sport entity
    • equals

      public boolean equals(Object obj)
      Determines whether the specified object is equal to the current object
      Overrides:
      equals in class Object
      Parameters:
      obj - - the object to compare with the current object
      Returns:
      - true if the specified object is equal to the current object. otherwise, false
    • hashCode

      public int hashCode()
      Serves as the default hash function
      Overrides:
      hashCode in class Object
      Returns:
      - a hash code for the current object