MCPcopy Create free account
hub / github.com/UniversaBlockchain/universa / map

Method map

common_tools/src/main/java/net/sergeych/tools/Do.java:194–199  ·  view source on GitHub ↗

Convert "key, value" pairs from varargs into a Map. @param args key, value pairs.Can be 0 length or any even length. @return filled Map instance

(Object... args)

Source from the content-addressed store, hash-verified

192 * @return filled Map instance
193 */
194 public static HashMap<String, Object> map(Object... args) {
195 HashMap<String, Object> map = new HashMap<String, Object>();
196 for (int i = 0; i < args.length; i += 2)
197 map.put(args[i].toString(), args[i + 1]);
198 return map;
199 }
200
201 public static <T> Collection<T> collection(Object x) {
202 if (x instanceof Collection)

Callers 15

toHashMethod · 0.95
sendMethod · 0.95
sendMethod · 0.95
hashableToStringMethod · 0.80
checkSimplePackMethod · 0.80
getStateMethod · 0.80
doReacquireMethod · 0.80
TopologyBuilderMethod · 0.80
addPermissionMethod · 0.80
sealAsV2Method · 0.80
sealMethod · 0.80
getMethod · 0.80

Calls 2

putMethod · 0.45
toStringMethod · 0.45

Tested by 15

sendMethod · 0.76
sendMethod · 0.76
hashableToStringMethod · 0.64
checkSimplePackMethod · 0.64
startNodeMethod · 0.64