MCPcopy Index your code
hub / github.com/bazelbuild/bazel / copyOf

Method copyOf

src/main/java/net/starlark/java/eval/Tuple.java:70–75  ·  view source on GitHub ↗

Returns a tuple containing the given elements.

(Iterable<?> seq)

Source from the content-addressed store, hash-verified

68
69 /** Returns a tuple containing the given elements. */
70 public static Tuple copyOf(Iterable<?> seq) {
71 if (seq instanceof Tuple) {
72 return (Tuple) seq;
73 }
74 return wrap(Iterables.toArray(seq, Object.class));
75 }
76
77 /** Returns a tuple containing the given elements. */
78 public static Tuple of(Object... elems) {

Callers 3

formatWithListMethod · 0.95
ofMethod · 0.45
wrapImmutableMethod · 0.45

Calls 2

wrapMethod · 0.95
toArrayMethod · 0.45

Tested by

no test coverage detected