Class CalculateRequestBuilderImpl
java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.CalculateRequestBuilderImpl
- All Implemented Interfaces:
CalculateRequestBuilder
Implementation of
CalculateRequestBuilder.
Maintains an ordered list of items (AND selections and OR groups) in insertion order.
Used internally by CustomBetManagerImpl to build calculate probability requests.
-
Constructor Summary
Constructors -
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.getItems()Returns the ordered list of items.
-
Constructor Details
-
CalculateRequestBuilderImpl
public CalculateRequestBuilderImpl()
-
-
Method Details
-
andSelection
Description copied from interface:CalculateRequestBuilderAppends a single selection as an AND leg to the request.- Specified by:
andSelectionin interfaceCalculateRequestBuilder- Parameters:
selection- theSelectionto add- Returns:
- this builder instance
-
andAnyOfSelections
Description copied from interface:CalculateRequestBuilderAppends an OR leg — any one of the provided selections satisfies this leg.- Specified by:
andAnyOfSelectionsin interfaceCalculateRequestBuilder- Parameters:
selections- theSelectioninstances forming the OR leg- Returns:
- this builder instance
-
getItems
Returns the ordered list of items.Each item is either a
Selection(AND leg) or aList<Selection>(OR group).- Returns:
- unmodifiable view of the items list
-