android.content.pm
Class ResolveInfo.DisplayNameComparator
java.lang.Object
android.content.pm.ResolveInfo.DisplayNameComparator
- All Implemented Interfaces:
- Comparator<ResolveInfo>
- Enclosing class:
- ResolveInfo
public static class ResolveInfo.DisplayNameComparator
- extends Object
- implements Comparator<ResolveInfo>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResolveInfo.DisplayNameComparator
public ResolveInfo.DisplayNameComparator(PackageManager pm)
compare
public final int compare(ResolveInfo a,
ResolveInfo b)
- Description copied from interface:
Comparator
- Compare the two objects to determine the relative ordering.
- Specified by:
compare in interface Comparator<ResolveInfo>
- Parameters:
a - an Object to compareb - an Object to compare
- Returns:
- an int < 0 if object1 is less than object2, 0 if they are equal,
and > 0 if object1 is greater
Please submit a feedback, bug or feature