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

public class PitcherCi extends Object
A pitcher representation used by caching components
  • Method Details

    • merge

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

      public String getName()
      Returns the name of the pitcher
      Returns:
      - the name of the pitcher
    • getCompetitor

      public HomeAway getCompetitor()
      Returns the indication if the pitcher is home or away
      Returns:
      - the indication if the pitcher is home or away
    • getHand

      public PitcherHand getHand()
      Returns which hand the pitcher uses
      Returns:
      - which hand the pitcher uses
    • export

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