FileDocCategorySizeDatePackage
GlobalSortKeyComparator.javaAPI DocAndroid 5.1 API1293Thu Mar 12 22:22:42 GMT 2015com.android.server.notification

GlobalSortKeyComparator

public class GlobalSortKeyComparator extends Object implements Comparator
Sorts notifications by their global sort key.

Fields Summary
Constructors Summary
Methods Summary
public intcompare(NotificationRecord left, NotificationRecord right)

        if (left.getGlobalSortKey() == null) {
            throw new IllegalStateException("Missing left global sort key: " + left);
        }
        if (right.getGlobalSortKey() == null) {
            throw new IllegalStateException("Missing right global sort key: " + right);
        }
        return left.getGlobalSortKey().compareTo(right.getGlobalSortKey());