setValue abstract method

Context setValue(
  1. ContextKey key,
  2. Object value
)

Returns a new context created from this one with the given key/value pair set.

If key was already set in this context, it will be overridden. The rest of the context values will be inherited.

Implementation

Context setValue(ContextKey key, Object value);