Class ApiCallContextOptions (2.48.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
Type Description
ApiCallContextOptions

Methods

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

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

Get an option.

Parameter
Name Description
key Key<T>
Returns
Type Description
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
Name Description
key Key<T>
value T
Returns
Type Description
ApiCallContextOptions

merge(ApiCallContextOptions newOptions)

public ApiCallContextOptions merge(ApiCallContextOptions newOptions)

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

Parameter
Name Description
newOptions ApiCallContextOptions
Returns
Type Description
ApiCallContextOptions