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

Method getAll

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

Returns all the metadata entries named 'name', in the order they were received, parsed as T, or null if there are none. The iterator is not guaranteed to be "live." It may or may not be accurate if Metadata is mutated.

(final Key<T> key)

Source from the content-addressed store, hash-verified

306 * accurate if Metadata is mutated.
307 */
308 @Nullable
309 public <T> Iterable<T> getAll(final Key<T> key) {
310 for (int i = 0; i < size; i++) {
311 if (bytesEqual(key.asciiName(), name(i))) {
312 return new IterableAt<>(key, i);
313 }
314 }
315 return null;
316 }
317
318 /**
319 * Returns set of all keys in store.

Calls 3

bytesEqualMethod · 0.95
nameMethod · 0.95
asciiNameMethod · 0.80