Slide 32
Slide 32 text
Dealing with Variants and Generics
android.content.pm.ApplicationInfo.DisplayNameComparator
implements java.util.Comparator
class Comparator {
abstract int compare (T t1, T t2);
}
class Comparator {
int Compare (Object o1,Object o2);
}
class DisplayNameComparator {
int compare (ApplicationInfo a1,
ApplicationInfo a2) { ... }
}
class DisplayNameComparator {
int compare (ApplicationInfo a1,
ApplicationInfo a2) { ... }
}