mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 00:20:54 +07:00
19 lines
472 B
Java
19 lines
472 B
Java
|
|
import java.util.function.Function;
|
|
import java.util.stream.Stream;
|
|
|
|
class Test {
|
|
|
|
public Long getKey() {
|
|
return 0L;
|
|
}
|
|
|
|
public static void main(Stream<Test> stream) {
|
|
stream.map(s -> Inner.of(Test::get<caret>Key, s));
|
|
}
|
|
|
|
public static final class Inner<K> {
|
|
public static <T> Inner<T> of(final Object key, final Test value) {return null;}
|
|
public static <T> Inner<T> of(final Function< T, Long> keyMapper, final Test value) {return null;}
|
|
}
|
|
} |