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

Method toRawQuery

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

Returns the "raw" query string representation of these parameters, suitable for passing to the io.grpc.Uri.Builder#setRawQuery method. @return the raw query string

()

Source from the content-addressed store, hash-verified

125 * @return the raw query string
126 */
127 @Nullable
128 public String toRawQuery() {
129 if (entries.isEmpty()) {
130 return null;
131 }
132 StringBuilder resultBuilder = new StringBuilder();
133 boolean first = true;
134 for (Entry entry : entries) {
135 if (!first) {
136 resultBuilder.append('&');
137 }
138 entry.appendToRawQueryStringBuilder(resultBuilder);
139 first = false;
140 }
141 return resultBuilder.toString();
142 }
143
144 @Override
145 public String toString() {

Calls 4

appendMethod · 0.80
isEmptyMethod · 0.45
toStringMethod · 0.45