Class CommentSorter

  • All Implemented Interfaces:
    java.io.Serializable, java.util.Comparator<CommentInfo>

    public class CommentSorter
    extends java.lang.Object
    implements java.util.Comparator<CommentInfo>, java.io.Serializable
    Author:
    tfr
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      CommentSorter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(CommentInfo o1, CommentInfo 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
    • Constructor Detail

      • CommentSorter

        public CommentSorter()
    • Method Detail

      • compare

        public int compare​(CommentInfo o1,
                           CommentInfo o2)
        Specified by:
        compare in interface java.util.Comparator<CommentInfo>
        See Also:
        Comparator.compare(java.lang.Object, java.lang.Object)