mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-21 21:50:54 +07:00
16 lines
340 B
Java
16 lines
340 B
Java
public class Foo {
|
|
public<T> void foo() {
|
|
Predicate<T> predicate = new MyPredicate<>();
|
|
}
|
|
|
|
private interface Predicate<K> {
|
|
boolean test(K t);
|
|
}
|
|
|
|
private static class MyPredicate<T> implements Predicate<T> {
|
|
@Override
|
|
public boolean test(T t) {
|
|
return false;
|
|
}
|
|
}
|
|
} |