com.atlassian.jira.issue.comments
Class CommentComparator

java.lang.Object
  extended by com.atlassian.jira.issue.comments.CommentComparator
All Implemented Interfaces:
java.io.Serializable, java.util.Comparator<Comment>

public class CommentComparator
extends java.lang.Object
implements java.util.Comparator<Comment>, java.io.Serializable

Compares Comments based on date created.

See Also:
Serialized Form

Field Summary
static java.util.Comparator<Comment> COMPARATOR
          Comparator for sorting comments based on creation date.
 
Method Summary
 int compare(Comment o1, Comment 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
 

Field Detail

COMPARATOR

public static final java.util.Comparator<Comment> COMPARATOR
Comparator for sorting comments based on creation date.

Method Detail

compare

public int compare(Comment o1,
                   Comment o2)
Specified by:
compare in interface java.util.Comparator<Comment>


Copyright © 2002-2010 Atlassian. All Rights Reserved.