Interface Outcome

All Known Subinterfaces:
OutcomeOdds, OutcomeProbabilities, OutcomeRollbackSettlement, OutcomeSettlement, PlayerOutcomeOdds
All Known Implementing Classes:
OutcomeProbabilitiesImpl, PlayerOutcomeOddsImpl

public interface Outcome
Describes an outcome for a particular market
  • Method Details

    • getId

      String getId()
      Returns the outcome id
      Returns:
      - the outcome id
    • getName

      String getName()
      Returns the outcome name
      Returns:
      - the outcome name
    • getName

      String getName(Locale locale)
      Returns the outcome name translated in the provided locale
      Parameters:
      locale - - the locale in which the name should be translated
      Returns:
      - the outcome name translated in the provided Locale
    • getOutcomeDefinition

      OutcomeDefinition getOutcomeDefinition()
      Returns the description of this outcome
      Returns:
      - the description of this outcome
    • getNames

      default Map<Locale,String> getNames(List<Locale> locales)
      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)