mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-14 17:25:38 +07:00
18 lines
500 B
Java
18 lines
500 B
Java
class Collection<T> {}
|
|
class Comparator<T> {}
|
|
|
|
public class Collections {
|
|
public static <T> T min(Collection<? extends T> coll, Comparator<? super T> comp) {
|
|
if (comp==null)
|
|
return (T)<ref>min((Collection<SelfComparable>) (Collection) coll);
|
|
|
|
return null;
|
|
}
|
|
|
|
public static <T extends Object & Comparable<? super T>> T min(Collection<? extends T> coll) {
|
|
return null;
|
|
}
|
|
|
|
private interface SelfComparable extends Comparable<SelfComparable> {}
|
|
}
|