Package com.braintrustdata.api.models
Interface CodeBundle.Location.Experiment.Position.Visitor
-
- All Implemented Interfaces:
public interface CodeBundle.Location.Experiment.Position.Visitor<T extends Object>
-
-
Method Summary
Modifier and Type Method Description abstract TvisitType(CodeBundle.Location.Experiment.Position.Type type)abstract TvisitScorer(CodeBundle.Location.Experiment.Position.Scorer scorer)Tunknown(JsonValue json)Maps an unknown variant of Position to a value of type T. -
-
Method Detail
-
visitType
abstract T visitType(CodeBundle.Location.Experiment.Position.Type type)
-
visitScorer
abstract T visitScorer(CodeBundle.Location.Experiment.Position.Scorer scorer)
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of Position to a value of type T.
An instance of Position 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.
-
-
-
-