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