MCPcopy Create free account
hub / github.com/apache/groovy / union

Method union

src/main/java/groovy/util/GroovyCollections.java:266–268  ·  view source on GitHub ↗

Returns an ordered set of all the unique items found in the provided argument iterables. assert GroovyCollections.union([1, 2], [2, 3], [1, 4]) == [1, 2, 3, 4] @param iterables the sources of items @return the ordered list of unique values found @

(Iterable<T>... iterables)

Source from the content-addressed store, hash-verified

264 * @since 4.0.0
265 */
266 public static <T> List<T> union(Iterable<T>... iterables) {
267 return union(Arrays.asList(iterables));
268 }
269
270 /**
271 * Returns an ordered set of all the unique items found in the provided argument iterables.

Callers

nothing calls this directly

Calls 3

addMethod · 0.65
asListMethod · 0.45

Tested by

no test coverage detected