Build 1.0_r1(from source)

android.content.pm
Class ResolveInfo.DisplayNameComparator

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

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


Constructor Summary
ResolveInfo.DisplayNameComparator(PackageManager pm)
           
 
Method Summary
 int compare(ResolveInfo a, ResolveInfo b)
          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

ResolveInfo.DisplayNameComparator

public ResolveInfo.DisplayNameComparator(PackageManager pm)
Method Detail

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 compare
b - 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