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

Method create

api/src/main/java/io/grpc/Metadata.java:924–926  ·  view source on GitHub ↗
(Key<T> key, T value)

Source from the content-addressed store, hash-verified

922 private volatile byte[] serialized;
923
924 static <T> LazyValue<T> create(Key<T> key, T value) {
925 return new LazyValue<>(checkNotNull(getBinaryStreamMarshaller(key)), value);
926 }
927
928 /** A value set by the application. */
929 LazyValue(BinaryStreamMarshaller<T> marshaller, T value) {

Callers 1

putMethod · 0.95

Calls 2

checkNotNullMethod · 0.80

Tested by

no test coverage detected