com.atlassian.jira.issue.search.parameters.lucene.sort
Class UserHistoryFieldComparatorSource

java.lang.Object
  extended by org.apache.lucene.search.FieldComparatorSource
      extended by com.atlassian.jira.issue.search.parameters.lucene.sort.UserHistoryFieldComparatorSource
All Implemented Interfaces:
Serializable

public class UserHistoryFieldComparatorSource
extends org.apache.lucene.search.FieldComparatorSource

Creates a new comparator that sorts based on UserHistory timestamp

See Also:
Serialized Form

Nested Class Summary
 class UserHistoryFieldComparatorSource.UserHistoryFieldComparator
          This compares user history timestamps.
 
Constructor Summary
UserHistoryFieldComparatorSource(List<UserHistoryItem> history)
           
 
Method Summary
 boolean equals(Object o)
           
 int hashCode()
           
 org.apache.lucene.search.FieldComparator newComparator(String fieldname, int numHits, int sortPos, boolean reversed)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserHistoryFieldComparatorSource

public UserHistoryFieldComparatorSource(List<UserHistoryItem> history)
Method Detail

newComparator

public org.apache.lucene.search.FieldComparator newComparator(String fieldname,
                                                              int numHits,
                                                              int sortPos,
                                                              boolean reversed)
                                                       throws IOException
Specified by:
newComparator in class org.apache.lucene.search.FieldComparatorSource
Throws:
IOException

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2002-2014 Atlassian. All Rights Reserved.