Package com.jalios.jcms
Class Publication.PdateComparator<T extends Publication>
- java.lang.Object
-
- com.jalios.jstore.BasicStorable.CdateComparator<T>
-
- com.jalios.jcms.Publication.PdateComparator<T>
-
- Type Parameters:
T
- a type of Publication
- All Implemented Interfaces:
java.util.Comparator<T>
- Direct Known Subclasses:
PortalManager.PortalRedirectComparator
,Publication.RelatedCategoryComparator
,Publication.SdateComparator
- Enclosing class:
- Publication
public static class Publication.PdateComparator<T extends Publication> extends BasicStorable.CdateComparator<T>
Compares two Publications using their Pdate in descending order (newest date first). Default to Cdate Comparison if the 2 Pdate are the equals. Note: this comparator imposes orderings that are inconsistent with equals.- See Also:
BasicStorable.CdateComparator
-
-
Constructor Summary
Constructors Constructor Description PdateComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(T p1, T p2)
-
Methods inherited from class com.jalios.jstore.BasicStorable.CdateComparator
compareDate
-
-
-
-
Method Detail
-
compare
public int compare(T p1, T p2)
- Specified by:
compare
in interfacejava.util.Comparator<T extends Publication>
- Overrides:
compare
in classBasicStorable.CdateComparator<T extends Publication>
-
-