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)
| 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"); |