Interface CalculateRequestBuilder

All Known Implementing Classes:
CalculateRequestBuilderImpl

public interface CalculateRequestBuilder
Builder for creating calculate probability requests that support both AND and OR selections.

Use this builder when you need to include OR groups (alternative outcomes) in a custom bet request. For simple AND-only requests, the existing CustomBetManager.calculateProbability(java.util.List) overload remains available.

Example usage:


 CalculateRequestBuilder request = manager.getCalculateRequestBuilder()
     .andSelection(selA)              // leg 1: AND selection
     .andSelection(selB)              // leg 2: AND selection
     .andAnyOfSelections(selC, selD)   // leg 3: any of C or D
     .andAnyOfSelections(selE, selF);  // leg 4: any of E or F

 Calculation result = manager.calculateProbability(request);
 
  • Method Details

    • andSelection

      CalculateRequestBuilder andSelection(Selection selection)
      Appends a single selection as an AND leg to the request.
      Parameters:
      selection - the Selection to add
      Returns:
      this builder instance
    • andAnyOfSelections

      CalculateRequestBuilder andAnyOfSelections(Selection... selections)
      Appends an OR leg — any one of the provided selections satisfies this leg.
      Parameters:
      selections - the Selection instances forming the OR leg
      Returns:
      this builder instance