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

Method data

api/src/main/java/io/grpc/Attributes.java:227–235  ·  view source on GitHub ↗
(int size)

Source from the content-addressed store, hash-verified

225 }
226
227 private IdentityHashMap<Key<?>, Object> data(int size) {
228 if (newdata == null) {
229 newdata = new IdentityHashMap<>(base.data.size() + size);
230 newdata.putAll(base.data);
231 base = null;
232 }
233 assert base == null;
234 return newdata;
235 }
236
237 public <T> Builder set(Key<T> key, T value) {
238 data(1).put(key, value);

Callers 3

setMethod · 0.95
discardMethod · 0.95
setAllMethod · 0.95

Calls 1

sizeMethod · 0.65

Tested by

no test coverage detected