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

Method create

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

Factory method for creating instances of Key. The default value of the key is null. @param debugString a debug string that describes this key. @param Key type @return Key object @since 1.13.0

(String debugString)

Source from the content-addressed store, hash-verified

371 * @since 1.13.0
372 */
373 public static <T> Key<T> create(String debugString) {
374 Preconditions.checkNotNull(debugString, "debugString");
375 return new Key<>(debugString, /*defaultValue=*/ null);
376 }
377
378 /**
379 * Factory method for creating instances of {@link Key}.

Callers

nothing calls this directly

Calls 1

checkNotNullMethod · 0.80

Tested by

no test coverage detected