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

Method forKeyValue

api/src/main/java/io/grpc/QueryParams.java:210–214  ·  view source on GitHub ↗

Creates a new key/value pair entry. Both key and value can contain any character. They will be URL encoded for you if necessary.

(String key, String value)

Source from the content-addressed store, hash-verified

208 * necessary.
209 */
210 public static Entry forKeyValue(String key, String value) {
211 checkNotNull(key, "key");
212 checkNotNull(value, "value");
213 return new Entry(encode(key), encode(value), key, value);
214 }
215
216 /**
217 * Creates a new query parameter with a "lone" key.

Calls 2

checkNotNullMethod · 0.80
encodeMethod · 0.45