Back to project page ClinicalTrialTracker.
The source code is released under:
Apache License
If you think the Android project ClinicalTrialTracker 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 com.yuanwei.android; /* w w w. j av a 2 s .c o m*/ import java.util.Comparator; import com.yuanwei.android.rss.domain.Article; public class ComparatorArticle implements Comparator<Article>{ @Override public int compare(Article a0, Article a1) { int flag =a1.getUpdateDate().compareTo(a0.getUpdateDate()); if (flag==0) flag = a1.getPubDate().compareTo(a0.getPubDate()); return flag; } }