mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
26 lines
440 B
Java
26 lines
440 B
Java
import java.util.concurrent.atomic.AtomicInteger;
|
|
|
|
class Test {
|
|
static class List<T> {
|
|
public Stream<T> stream() {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
interface IntFunction<T> {
|
|
public int applyAsInt(T t);
|
|
}
|
|
|
|
static class Stream<E> {
|
|
public Stream map(IntFunction<? super E> mapper) {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public static void main(List<AtomicInteger> list) {
|
|
list.stream().map(atomic -> atomic.get());
|
|
}
|
|
}
|
|
|
|
|