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

Method isEmpty

api/src/main/java/io/grpc/Metadata.java:215–217  ·  view source on GitHub ↗

checks when #namesAndValues is null or has no elements.

()

Source from the content-addressed store, hash-verified

213
214 /** checks when {@link #namesAndValues} is null or has no elements. */
215 private boolean isEmpty() {
216 return size == 0;
217 }
218
219 /** Constructor called by the application layer when it wants to send metadata. */
220 public Metadata() {}

Callers 15

keysMethod · 0.95
expandMethod · 0.95
removeAllMethod · 0.95
discardAllMethod · 0.95
mergeMethod · 0.95
startTestMethod · 0.45
parseSourceMethod · 0.45
parseHeaderMethod · 0.45
parseRequestMethod · 0.45
parseRulesMethod · 0.45
translateMethod · 0.45

Calls

no outgoing calls

Tested by 15

startTestMethod · 0.36
sendMethod · 0.36
afterMethod · 0.36
testHardcodedClassesMethod · 0.36
detach_detachRootMethod · 0.36
tearDownMethod · 0.36