Package org.silverpeas.core.comment.dao
Class CommentedPublicationInfoComparator
- java.lang.Object
-
- org.silverpeas.core.comment.dao.CommentedPublicationInfoComparator
-
- All Implemented Interfaces:
Comparator<CommentedPublicationInfo>
public class CommentedPublicationInfoComparator extends Object implements Comparator<CommentedPublicationInfo>
A comparator of commented publication information instances. The comparator compares two commented publications by their number of comments.
-
-
Constructor Summary
Constructors Constructor Description CommentedPublicationInfoComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(CommentedPublicationInfo o1, CommentedPublicationInfo o2)
-
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
-
-
-
-
Method Detail
-
compare
public int compare(CommentedPublicationInfo o1, CommentedPublicationInfo o2)
- Specified by:
compare
in interfaceComparator<CommentedPublicationInfo>
-
-