MCPcopy Create free account
hub / github.com/grpc/grpc-java / of

Method of

api/src/main/java/io/grpc/CallOptions.java:357–362  ·  view source on GitHub ↗

Factory method for creating instances of Key. @param debugString a string used to describe this key, used for debugging. @param defaultValue default value to return when value for key not set @param Key type @return Key object @deprecated Use #create or {@link #createWithDefault

(String debugString, T defaultValue)

Source from the content-addressed store, hash-verified

355 * be removed.
356 */
357 @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1869")
358 @Deprecated
359 public static <T> Key<T> of(String debugString, T defaultValue) {
360 Preconditions.checkNotNull(debugString, "debugString");
361 return new Key<>(debugString, defaultValue);
362 }
363
364 /**
365 * Factory method for creating instances of {@link Key}. The default value of the

Callers

nothing calls this directly

Calls 1

checkNotNullMethod · 0.80

Tested by

no test coverage detected