Package com.braintrustdata.api.models
Interface CodeBundle.Location.Visitor
-
- All Implemented Interfaces:
public interface CodeBundle.Location.Visitor<T extends Object>
-
-
Method Summary
Modifier and Type Method Description abstract TvisitExperiment(CodeBundle.Location.Experiment experiment)abstract TvisitFunction(CodeBundle.Location.Function function)Tunknown(JsonValue json)Maps an unknown variant of Location to a value of type T. -
-
Method Detail
-
visitExperiment
abstract T visitExperiment(CodeBundle.Location.Experiment experiment)
-
visitFunction
abstract T visitFunction(CodeBundle.Location.Function function)
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of Location to a value of type T.
An instance of Location 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.
-
-
-
-