Package com.jalios.jcms
Class Publication.VoteScoreComparator<T extends Publication>
java.lang.Object
com.jalios.jstore.BasicStorable.CdateComparator<T>
com.jalios.jcms.Publication.VoteScoreComparator<T>
- Type Parameters:
T- a type of Publication
- All Implemented Interfaces:
Comparator<T>
- Direct Known Subclasses:
Publication.PopularityComparator
- Enclosing class:
Publication
public static class Publication.VoteScoreComparator<T extends Publication>
extends BasicStorable.CdateComparator<T>
Comparator to compare Publication using their score based the score of votes (positive votes - negative votes)
- Since:
- jcms-8.0.0
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.jalios.jstore.BasicStorable.CdateComparator
compareDateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
VoteScoreComparator
public VoteScoreComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<T extends Publication>- Overrides:
comparein classBasicStorable.CdateComparator<T extends Publication>
-