FileDocCategorySizeDatePackage
MessageDateComparator.javaAPI DocAndroid 1.5 API1123Wed May 06 22:42:46 BST 2009com.android.email.mail

MessageDateComparator

public class MessageDateComparator extends Object implements Comparator

Fields Summary
Constructors Summary
Methods Summary
public intcompare(Message o1, Message o2)

        try {
            if (o1.getSentDate() == null) {
                return 1;
            } else if (o2.getSentDate() == null) {
                return -1;
            } else
                return o2.getSentDate().compareTo(o1.getSentDate());
        } catch (Exception e) {
            return 0;
        }