java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.entities.SportSummaryImpl
com.sportradar.unifiedodds.sdk.internal.impl.entities.SportImpl
All Implemented Interfaces:
Sport, SportSummary

public class SportImpl extends SportSummaryImpl implements Sport
Represents a sport
  • Constructor Details

    • SportImpl

      public SportImpl(Urn id, Map<Locale,String> names, List<Category> categories)
      Initializes a new instance of SportImpl
      Parameters:
      id - - an Urn uniquely identifying the sport represented by the current instance
      names - - a Map containing translated sport names
      categories - - a List representing categories which belong to the sport represented by the current instance
  • Method Details

    • getCategories

      public List<Category> getCategories()
      Returns an unmodifiable List representing categories which belong to the sport represented by the current instance
      Specified by:
      getCategories in interface Sport
      Returns:
      - an unmodifiable List representing categories which belong to the sport represented by the current instance
    • toString

      public String toString()
      Returns a String describing the current Sport instance
      Overrides:
      toString in class SportSummaryImpl
      Returns:
      - a String describing the current Sport instance