mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-03 15:50:52 +07:00
switch tests on new inference
(cherry picked from commit d2cbf3f2833104c3a0381059b0d6ef8ac0b3c94c)
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
class Collector<C> {
|
||||
}
|
||||
|
||||
interface S<T> {
|
||||
|
||||
/**
|
||||
* Gets a result.
|
||||
*
|
||||
* @return a result
|
||||
*/
|
||||
T get();
|
||||
}
|
||||
|
||||
|
||||
interface F<TF> {}
|
||||
|
||||
public final class Collectors {
|
||||
public static <T>
|
||||
Collector<List<T>> toList() {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
public static <K1> Collector<ArrayList<K1>> groupingBy(F<K1> classifier) {
|
||||
return groupingBy(classifier, ArrayList ::new);
|
||||
}
|
||||
|
||||
public static <K, M extends ArrayList<K>>
|
||||
Collector<M> groupingBy(F<K> classifier,
|
||||
S<M> mapFactory) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user