Class Publication.VoteScoreComparator<T extends Publication>

  • Type Parameters:
    T - a type of Publication
    All Implemented Interfaces:
    java.util.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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(T p1, T p2)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong