|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jalios.util.DateComparator<T>
com.jalios.util.DateDescendingComparator<T>
com.jalios.jstore.BasicStorable.CdateComparator<T>
com.jalios.jcms.Publication.PdateComparator<T>
com.jalios.jcms.Publication.SdateComparator<T>
public static class Publication.SdateComparator<T extends Publication>
Compares two Publications using their Sdate in descending order (newest date first). If for one of the publication the Sdate null, uses the pdate to compare it to the other sdate, and if the pdate is null, uses the cdate. Note: this comparator imposes orderings that are inconsistent with equals.
| Field Summary |
|---|
| Fields inherited from class com.jalios.util.DateDescendingComparator |
|---|
REVISION |
| Constructor Summary | |
|---|---|
Publication.SdateComparator()
|
|
| Method Summary | |
|---|---|
int |
compare(T p1,
T p2)
|
| Methods inherited from class com.jalios.util.DateDescendingComparator |
|---|
compareDate |
| 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 Publication.SdateComparator()
| Method Detail |
|---|
public int compare(T p1,
T p2)
compare in interface java.util.Comparator<T extends Publication>compare in class Publication.PdateComparator<T extends Publication>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||