MCPcopy Create free account
hub / github.com/EhsanTang/ApiManager / getStrMap

Method getStrMap

api/src/main/java/cn/crap/utils/Tools.java:283–294  ·  view source on GitHub ↗
(String... params)

Source from the content-addressed store, hash-verified

281 }
282
283 public static Map<String, String> getStrMap(String... params) {
284 if (params.length == 0 || params.length % 2 != 0) {
285 return null;
286 }
287 Map<String, String> map = new HashMap<String, String>();
288 for (int i = 0; i < params.length; i = i + 2) {
289 if (!MyString.isEmpty(params[i + 1]))
290 map.put(params[i].toString(), params[i + 1]);
291 }
292 return map;
293
294 }
295
296
297 /**

Callers 2

propertyMethod · 0.95
getAccessTokenMethod · 0.95

Calls 2

isEmptyMethod · 0.95
putMethod · 0.80

Tested by

no test coverage detected