java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.oddsentities.markets.OutcomeProbabilitiesImpl
All Implemented Interfaces:
Outcome, OutcomeProbabilities
Direct Known Subclasses:
PlayerOutcomeOddsImpl

public class OutcomeProbabilitiesImpl extends Object implements OutcomeProbabilities
Created on 16/10/2017. // TODO @eti: Javadoc
  • Method Details

    • isActive

      public boolean isActive()
      If this outcome is deactivated this will return false
      Specified by:
      isActive in interface OutcomeProbabilities
      Returns:
      true if the outcome is active, false if it is deactivated and should be removed
    • getProbability

      public double getProbability()
      The probability for this outcome (how likely is this outcome)
      Specified by:
      getProbability in interface OutcomeProbabilities
      Returns:
      the likelihood of this outcome happening in percent (i.e. 0-100)
    • getAdditionalProbabilities

      public AdditionalProbabilities getAdditionalProbabilities()
      Additional probability attributes for markets which potentially will be (partly) refunded
      Specified by:
      getAdditionalProbabilities in interface OutcomeProbabilities
      Returns:
      additional probability attributes for markets which potentially will be (partly) refunded
    • getId

      public String getId()
      Returns the outcome id
      Specified by:
      getId in interface Outcome
      Returns:
      - the outcome id
    • getName

      public String getName()
      Returns the outcome name
      Specified by:
      getName in interface Outcome
      Returns:
      - the outcome name
    • getName

      public String getName(Locale locale)
      Description copied from interface: Outcome
      Returns the outcome name translated in the provided locale
      Specified by:
      getName in interface Outcome
      Parameters:
      locale - - the locale in which the name should be translated
      Returns:
      - the outcome name translated in the provided Locale
    • getOutcomeDefinition

      public OutcomeDefinition getOutcomeDefinition()
      Returns the description of this outcome
      Specified by:
      getOutcomeDefinition in interface Outcome
      Returns:
      - the description of this outcome
    • getNames

      public Map<Locale,String> getNames(List<Locale> locales)
      Specified by:
      getNames in interface Outcome
      Parameters:
      locales - the list of Locale in which the name should be returned
      Returns:
      - the names of the market translated in the specified Locale (specifier placeholders are replaced with actual values)