mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
17 lines
375 B
Java
17 lines
375 B
Java
import java.util.*;
|
|
|
|
class Test {
|
|
class Predicate<T> {
|
|
<S extends T> boolean test(final Collection<T> src) {
|
|
return true;
|
|
}
|
|
<S extends T> boolean test(final Iterable<T> iterable) {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
public void testPredicate() {
|
|
final Predicate<Integer> predicate = new Predicate<>();
|
|
predicate.test(new ArrayList<Integer>());
|
|
}
|
|
} |