Build 1.0_r1(from source)

android.content.pm
Class PackageItemInfo.DisplayNameComparator

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

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


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

PackageItemInfo.DisplayNameComparator

public PackageItemInfo.DisplayNameComparator(PackageManager pm)
Method Detail

compare

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

Specified by:
compare in interface Comparator<PackageItemInfo>
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