MCPcopy Index your code
hub / github.com/grpc/grpc-java / keyWithDefault

Method keyWithDefault

api/src/context/java/io/grpc/Context.java:160–162  ·  view source on GitHub ↗

Create a Key with the given debug name and default value. @param debugString a name intended for debugging purposes and does not impact behavior. Multiple different keys may have the same debugString. The value should be not null.

(String debugString, T defaultValue)

Source from the content-addressed store, hash-verified

158 * The value should be not null.
159 */
160 public static <T> Key<T> keyWithDefault(String debugString, T defaultValue) {
161 return new Key<>(debugString, defaultValue);
162 }
163
164 /**
165 * Return the context associated with the current scope, will never return {@code null}.

Callers 2

ContextTestClass · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected