public class

DateFieldSorter

extends Object
implements LuceneFieldSorter<T>
java.lang.Object
   ↳ com.atlassian.jira.issue.statistics.DateFieldSorter

Summary

Fields
public static final LuceneFieldSorter<Date> ISSUE_CREATED_STATSMAPPER
public static final LuceneFieldSorter<LocalDate> ISSUE_DUEDATE_STATSMAPPER
public static final LuceneFieldSorter<Date> ISSUE_LAST_VIEWED_DATE_STATSMAPPER
public static final LuceneFieldSorter<Date> ISSUE_RESOLUTION_DATE_STATSMAPPER
public static final LuceneFieldSorter<Date> ISSUE_UPDATED_STATSMAPPER
Public Constructors
DateFieldSorter(String documentConstant)
Public Methods
boolean equals(Object o)
Comparator<Date> getComparator()
A comparator that can be used to order objects returned by getValueFromLuceneField(String).
String getDocumentConstant()
Get the constant that this field is indexed with.
Date getValueFromLuceneField(String documentValue)
Convert the lucene document field back to the object that you wish to use to display it.
int hashCode()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.search.LuceneFieldSorter

Fields

public static final LuceneFieldSorter<Date> ISSUE_CREATED_STATSMAPPER

public static final LuceneFieldSorter<LocalDate> ISSUE_DUEDATE_STATSMAPPER

public static final LuceneFieldSorter<Date> ISSUE_LAST_VIEWED_DATE_STATSMAPPER

public static final LuceneFieldSorter<Date> ISSUE_RESOLUTION_DATE_STATSMAPPER

public static final LuceneFieldSorter<Date> ISSUE_UPDATED_STATSMAPPER

Public Constructors

public DateFieldSorter (String documentConstant)

Public Methods

public boolean equals (Object o)

public Comparator<Date> getComparator ()

A comparator that can be used to order objects returned by getValueFromLuceneField(String).

The Comparator must be reentrant as it could be used by Lucene from multiple threads at once.

public String getDocumentConstant ()

Get the constant that this field is indexed with.

public Date getValueFromLuceneField (String documentValue)

Convert the lucene document field back to the object that you wish to use to display it.

eg. '1000' -> Version 1.

For custom fields, the return value will be passed to getStatHtml(com.atlassian.jira.issue.fields.CustomField, Object, String)

Parameters
documentValue The value of the field in the lucene index
Returns
  • The value that will be passed to the display

public int hashCode ()