Build 1.0_r1(from source)

android.content.pm
Class ApplicationInfo.DisplayNameComparator

java.lang.Object
  extended by android.content.pm.ApplicationInfo.DisplayNameComparator
All Implemented Interfaces:
Comparator<ApplicationInfo>
Enclosing class:
ApplicationInfo

public static class ApplicationInfo.DisplayNameComparator
extends Object
implements Comparator<ApplicationInfo>


Constructor Summary
ApplicationInfo.DisplayNameComparator(PackageManager pm)
           
 
Method Summary
 int compare(ApplicationInfo aa, ApplicationInfo ab)
          Compare the two objects to determine the relative ordering.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

ApplicationInfo.DisplayNameComparator

public ApplicationInfo.DisplayNameComparator(PackageManager pm)
Method Detail

compare

public final int compare(ApplicationInfo aa,
                         ApplicationInfo ab)
Description copied from interface: Comparator
Compare the two objects to determine the relative ordering.

Specified by:
compare in interface Comparator<ApplicationInfo>
Parameters:
aa - an Object to compare
ab - 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

Build 1.0_r1(from source)

Please submit a feedback, bug or feature