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

Method get

api/src/main/java/io/grpc/Attributes.java:63–67  ·  view source on GitHub ↗

Gets the value for the key, or null if it's not present.

(Key<T> key)

Source from the content-addressed store, hash-verified

61 * Gets the value for the key, or {@code null} if it's not present.
62 */
63 @SuppressWarnings("unchecked")
64 @Nullable
65 public <T> T get(Key<T> key) {
66 return (T) data.get(key);
67 }
68
69 /**
70 * Returns set of keys stored in container.

Callers 15

startNewTransportMethod · 0.95
appendTimeoutInsightMethod · 0.95
createNewSubchannelMethod · 0.95
getSecurityLevelMethod · 0.95
maybeUpdatePickerMethod · 0.95
streamCreatedMethod · 0.95
buildAttributesMethod · 0.95
duplicatesMethod · 0.95
toBuilderMethod · 0.95
discard_noBaseMethod · 0.95

Calls 1

getMethod · 0.65

Tested by 9

buildAttributesMethod · 0.76
duplicatesMethod · 0.76
toBuilderMethod · 0.76
discard_noBaseMethod · 0.76
discard_emptyMethod · 0.76
transportAttributesMethod · 0.76