com.jalios.jcms
Class Publication.UdateComparator<T extends Publication>
java.lang.Object
com.jalios.util.DateComparator<T>
com.jalios.util.DateDescendingComparator<T>
com.jalios.jstore.BasicStorable.CdateComparator<T>
com.jalios.jcms.Publication.UdateComparator<T>
- All Implemented Interfaces:
- Comparator<T>
- Enclosing class:
- Publication
public static class Publication.UdateComparator<T extends Publication>
- extends BasicStorable.CdateComparator<T>
Compares two Publications using their udate in descending order (newest date first).
Default to Cdate Comparison if the 2 udate are the equals.
Note: this comparator imposes orderings that are inconsistent with equals.
- Since:
- jcms-5.7.0
- See Also:
BasicStorable.CdateComparator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Publication.UdateComparator
public Publication.UdateComparator()
compare
public int compare(T p1,
T p2)
- Specified by:
compare
in interface Comparator<T extends Publication>
- Overrides:
compare
in class BasicStorable.CdateComparator<T extends Publication>
Copyright © 2001-2010 Jalios SA. All Rights Reserved.