Package com.braintrustdata.api.models
Interface ProjectScoreReplaceParams.Categories.Visitor
-
- All Implemented Interfaces:
public interface ProjectScoreReplaceParams.Categories.Visitor<T extends Object>An interface that defines how to map each variant of Categories to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract TvisitCategorical(List<ProjectScoreCategory> categorical)For categorical-type project scores, the list of all categories abstract TvisitWeighted(ProjectScoreReplaceParams.Categories.Weighted weighted)For weighted-type project scores, the weights of each score abstract TvisitMinimum(List<String> minimum)For minimum-type project scores, the list of included scores Tunknown(JsonValue json)Maps an unknown variant of Categories to a value of type T. -
-
Method Detail
-
visitCategorical
abstract T visitCategorical(List<ProjectScoreCategory> categorical)
For categorical-type project scores, the list of all categories
-
visitWeighted
abstract T visitWeighted(ProjectScoreReplaceParams.Categories.Weighted weighted)
For weighted-type project scores, the weights of each score
-
visitMinimum
abstract T visitMinimum(List<String> minimum)
For minimum-type project scores, the list of included scores
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of Categories to a value of type T.
An instance of Categories can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-