Class ApiCallContextOptions (2.15.0)

public final class ApiCallContextOptions

ApiCallContextOptions encapsulates additional call options to pass in a ApiCallContext

Inheritance

java.lang.Object > ApiCallContextOptions

Static Methods

getDefaultOptions()

public static ApiCallContextOptions getDefaultOptions()
Returns
TypeDescription
ApiCallContextOptions

Methods

<T>getOption(ApiCallContext.Key<T> key)

public T <T>getOption(ApiCallContext.Key<T> key)

Get an option.

Parameter
NameDescription
keyKey<T>
Returns
TypeDescription
T

<T>withOption(ApiCallContext.Key<T> key, T value)

public ApiCallContextOptions <T>withOption(ApiCallContext.Key<T> key, T value)

Add an option. Any existing value of the key is overwritten.

Parameters
NameDescription
keyKey<T>
valueT
Returns
TypeDescription
ApiCallContextOptions

merge(ApiCallContextOptions newOptions)

public ApiCallContextOptions merge(ApiCallContextOptions newOptions)

Merge new options into existing ones. Any existing values of the keys are overwritten.

Parameter
NameDescription
newOptionsApiCallContextOptions
Returns
TypeDescription
ApiCallContextOptions