|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmodel.ArticleComparator
public class ArticleComparator
Comparitor class to compare articles by date
| Constructor Summary | |
|---|---|
ArticleComparator()
|
|
| Method Summary | |
|---|---|
int |
compare(Article a1,
Article a2)
Compare returns 1 if at was published before at, 0 if they were published at the same time, and -1 if a1 was published after a2 |
| 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 |
|---|
public ArticleComparator()
| Method Detail |
|---|
public int compare(Article a1,
Article a2)
compare in interface java.util.Comparator<Article>a1 - Articlea2 - Article
return int
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||