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

public class RefereeCi extends Object
A referee representation used by caching components
  • Method Details

    • merge

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

      public String getName()
      Returns the name of the referee
      Returns:
      - the name of the referee
    • getNationality

      public String getNationality(Locale locale)
      Returns the nationality of the referee in the specified language
      Parameters:
      locale - - Locale specifying the language of the returned nationality
      Returns:
      - The nationality of the referee in the specified language if it exists. Null otherwise.
    • export

      public ExportableRefereeCi 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