mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
type migration: allow add root if type parameters are already exist (example: IDEA-150172)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import com.google.common.base.Function;
|
||||
import com.google.common.collect.FluentIterable;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class FluentTransformer {
|
||||
public <U, V> Fluen<caret>tIterable<V> transformGeneric(FluentIterable<U> p1, Function<U, V> p2) {
|
||||
return p1.transform(p2);
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
import com.google.common.base.Function;
|
||||
|
||||
import java.util.stream.Stream;
|
||||
|
||||
public class FluentTransformer {
|
||||
public <U, V> Stream<V> transformGeneric(Stream<U> p1, Function<U, V> p2) {
|
||||
return p1.map(p2::apply);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user