mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
16 lines
339 B
Java
16 lines
339 B
Java
public class kt5912<T> {
|
|
public static interface Action<T> {
|
|
void call(T t);
|
|
}
|
|
|
|
public static class Some<T> {
|
|
public Some(T t) {
|
|
}
|
|
}
|
|
|
|
public static interface OnSubscribe<T> extends Action<Some<T>> {}
|
|
|
|
void perform(T t, OnSubscribe<T> subscribe) {
|
|
subscribe.call(new Some(t));
|
|
}
|
|
} |