mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 10:20:56 +07:00
26 lines
663 B
Java
26 lines
663 B
Java
|
|
import java.util.List;
|
|
import java.util.function.Consumer;
|
|
import java.util.function.Function;
|
|
import java.util.logging.Logger;
|
|
|
|
class MyTest
|
|
{
|
|
private final static Logger LOGGER = Logger.getLogger(MyTest.class.getName());
|
|
|
|
public static void test(List<List<String>> testList) {
|
|
testList.forEach( MyTest.bind(MyTest.cast(LOGGER::info), iterable -> ""));
|
|
}
|
|
|
|
private static <A1, A2> TestConsumer<A1, A2> bind(Consumer<? super A2> delegate, Function<A1, A2> function) {
|
|
return null;
|
|
}
|
|
|
|
private static <C1> Consumer<C1> cast(Consumer<C1> consumer)
|
|
{
|
|
return consumer;
|
|
}
|
|
|
|
private interface TestConsumer<T1, T2> extends Consumer<T1> { }
|
|
|
|
} |