MCPcopy Index your code
hub / github.com/apache/groovy / of

Method of

src/main/java/org/apache/groovy/util/Maps.java:34–40  ·  view source on GitHub ↗

Returns an immutable map containing the supplied key-value pairs in encounter order.

(K k1, V v1)

Source from the content-addressed store, hash-verified

32 * Returns an immutable map containing the supplied key-value pairs in encounter order.
33 */
34 public static <K, V> Map<K, V> of(K k1, V v1) {
35 Map<K, V> map = new LinkedHashMap<K, V>();
36
37 map.put(k1, v1);
38
39 return Collections.unmodifiableMap(map);
40 }
41
42 /**
43 * Returns an immutable map containing the supplied key-value pairs in encounter order.

Callers 15

MatchingHighlighterClass · 0.95
getMethod · 0.95
valuesMethod · 0.95
keysMethod · 0.95
containsKeyMethod · 0.95
sizeMethod · 0.95
removeMethod · 0.95
clearMethod · 0.95
cleanUpNullReferencesMethod · 0.95
getMethod · 0.95
valuesMethod · 0.95
keysMethod · 0.95

Calls 1

putMethod · 0.65

Tested by 15

getMethod · 0.76
valuesMethod · 0.76
keysMethod · 0.76
containsKeyMethod · 0.76
sizeMethod · 0.76
removeMethod · 0.76
clearMethod · 0.76
cleanUpNullReferencesMethod · 0.76
getMethod · 0.76
valuesMethod · 0.76
keysMethod · 0.76
containsKeyMethod · 0.76