Back to project page FAST.
The source code is released under:
GNU General Public License
If you think the Android project FAST listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.ligi.fast.model; //from w w w. j av a 2 s. c om import java.util.Comparator; public class AppInfoSortByMostUsedComparator implements Comparator<AppInfo> { private final Comparator<AppInfo> sortByLabel = new AppInfoSortByLabelComparator(); @Override public int compare(AppInfo lhs, AppInfo rhs) { int result = 0; if (lhs.getCallCount() == rhs.getCallCount()) { result = sortByLabel.compare(lhs, rhs); } else if (lhs.getCallCount() < rhs.getCallCount()) { result = 1; } else if (lhs.getCallCount() > rhs.getCallCount()) { result = -1; } return result; } @Override public boolean equals(Object object) { return false; } }