public class CommentComparator extends Object implements Comparator<Comment>, Serializable
Comment
s based on date created.Modifier and Type | Field and Description |
---|---|
static Comparator<Comment> |
COMPARATOR
Comparator for sorting comments based on creation date.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(Comment o1,
Comment o2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public static final Comparator<Comment> COMPARATOR
public int compare(Comment o1, Comment o2)
compare
in interface Comparator<Comment>
Copyright © 2002-2019 Atlassian. All Rights Reserved.