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

Method forLoneKey

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

Creates a new query parameter with a "lone" key. 'key' can contain any character. It will be URL encoded for you later, as necessary. @param key the decoded key, must not be null @return a new Entry

(String key)

Source from the content-addressed store, hash-verified

222 * @return a new {@code Entry}
223 */
224 public static Entry forLoneKey(String key) {
225 checkNotNull(key, "key");
226 return new Entry(encode(key), null, key, null);
227 }
228
229 static Entry forRawKeyValue(String rawKey, String rawValue) {
230 checkNotNull(rawKey, "rawKey");

Callers 5

toStringMethodMethod · 0.95
entryPropertiesMethod · 0.95
asListMethodMethod · 0.80

Calls 2

checkNotNullMethod · 0.80
encodeMethod · 0.45

Tested by 5

toStringMethodMethod · 0.76
entryPropertiesMethod · 0.76
asListMethodMethod · 0.64