mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 08:50:57 +07:00
23 lines
546 B
Java
23 lines
546 B
Java
import java.util.function.Function;
|
|
import java.util.*;
|
|
|
|
class Test {
|
|
void m(Set<String> i) {
|
|
final List<String> getters = new ArrayList<String>(map(i, new Func<caret>tion<String, String>() {
|
|
@Override
|
|
public String apply(String propertyName) {
|
|
return propertyName;
|
|
}
|
|
}));
|
|
}
|
|
|
|
|
|
public static <T,V> List<V> map(Iterable<? extends T> iterable, Function<T, V> mapping) {
|
|
return null;
|
|
}
|
|
|
|
public static <T,V> List<V> map(Collection<? extends T> iterable, Function<T, V> mapping) {
|
|
return null;
|
|
}
|
|
}
|