Package com.jalios.jcms
Class Publication.PopularityComparator<T extends Publication>
- java.lang.Object
-
- com.jalios.jstore.BasicStorable.CdateComparator<T>
-
- com.jalios.jcms.Publication.VoteScoreComparator<T>
-
- com.jalios.jcms.Publication.PopularityComparator<T>
-
- Type Parameters:
T
- a type of Publication
- All Implemented Interfaces:
java.util.Comparator<T>
- Enclosing class:
- Publication
public static class Publication.PopularityComparator<T extends Publication> extends Publication.VoteScoreComparator<T>
Comparator to compare Publication using their score based on votes- Since:
- jcms-8.0.0
-
-
Constructor Summary
Constructors Constructor Description PopularityComparator()
-
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 classPublication.VoteScoreComparator<T extends Publication>
-
-