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 Summary
Modifier and TypeMethodDescriptionandAnyOfSelections(Selection... selections) Appends an OR leg — any one of the provided selections satisfies this leg.andSelection(Selection selection) Appends a single selection as an AND leg to the request.
-
Method Details
-
andSelection
Appends a single selection as an AND leg to the request.- Parameters:
selection- theSelectionto add- Returns:
- this builder instance
-
andAnyOfSelections
Appends an OR leg — any one of the provided selections satisfies this leg.- Parameters:
selections- theSelectioninstances forming the OR leg- Returns:
- this builder instance
-