mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 08:50:57 +07:00
15 lines
266 B
Java
15 lines
266 B
Java
interface OfInt extends Sink<Integer> {
|
|
default void accept(Integer i) {}
|
|
}
|
|
interface Sink<T> extends Block<T> {
|
|
}
|
|
|
|
interface Block<T> {
|
|
public void accept(T t);
|
|
}
|
|
|
|
|
|
class Hello1 implements Sink<Integer>, OfInt {}
|
|
class Hello2 implements OfInt, Sink<Integer>{}
|
|
|