java.lang.Object
com.sportradar.unifiedodds.sdk.internal.caching.ci.ChildRaceCi
Direct Known Subclasses:
ParentRaceCi

public class ChildRaceCi extends Object
A child race representation used by caching components
  • Constructor Summary

    Constructors
    Constructor
    Description
    ChildRaceCi(com.sportradar.uf.sportsapi.datamodel.SapiSportEventChildren.SapiSportEvent sportEvent, Locale locale)
    Initializes a new instance of the ChildRaceCi class
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Determines whether the specified object is equal to the current object
    Returns the Urn of the represented sport entity
    Returns the name of the race represented by the current instance
    Returns a Date specifying the scheduled start date for the sport event associated with the current instance
    Returns a Date specifying the scheduled end time of the sport event associated with the current instance
    Returns a SportEventType specifying the type of the associated sport event or a null reference if property is not applicable for the associated race
    int
    Serves as the default hash function

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ChildRaceCi

      public ChildRaceCi(com.sportradar.uf.sportsapi.datamodel.SapiSportEventChildren.SapiSportEvent sportEvent, Locale locale)
      Initializes a new instance of the ChildRaceCi class
      Parameters:
      sportEvent - - SapiSportEventChildren.SapiSportEvent instance containing information about the child race
      locale - - Locale specifying the language of the sportEvent
  • Method Details

    • getType

      public SportEventType getType()
      Returns a SportEventType specifying the type of the associated sport event or a null reference if property is not applicable for the associated race
      Returns:
      - a SportEventType specifying the type of the associated sport event or a null reference if property is not applicable for the associated race
    • getName

      public String getName()
      Returns the name of the race represented by the current instance
      Returns:
      - the name of the race represented by the current instance
    • getSchedule

      public Date getSchedule()
      Returns a Date specifying the scheduled start date for the sport event associated with the current instance
      Returns:
      - a Date specifying the scheduled start date for the sport event associated with the current instance
    • getScheduleEnd

      public Date getScheduleEnd()
      Returns a Date specifying the scheduled end time of the sport event associated with the current instance
      Returns:
      - a Date specifying the scheduled end time of the sport event associated with the current instance
    • 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