mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 00:20:54 +07:00
16 lines
310 B
Java
16 lines
310 B
Java
|
|
import java.util.*;
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Stream;
|
|
|
|
class Foo {
|
|
|
|
public void foo(Set<String> types) { }
|
|
|
|
public void foo(Collection<Integer> types) { }
|
|
|
|
void m(final Stream<String> stringStream) {
|
|
foo(stringStream.collect(Collectors.toSet()));
|
|
}
|
|
}
|