@Internal public class CascadingOptionFieldSorter extends Object implements LuceneFieldSorter<CascadingOption>
LuceneFieldSorter implementation for CascadingOption.| Modifier and Type | Field and Description |
|---|---|
protected CustomField |
customField |
protected SelectConverter |
selectConverter |
| Constructor and Description |
|---|
CascadingOptionFieldSorter(CustomField customField,
SelectConverter selectConverter) |
| Modifier and Type | Method and Description |
|---|---|
Comparator<CascadingOption> |
getComparator()
A comparator that can be used to order objects returned by
LuceneFieldSorter.getValueFromLuceneField(String). |
String |
getDocumentConstant()
Get the constant that this field is indexed with.
|
CascadingOption |
getValueFromLuceneField(String documentValue)
Convert the lucene document field back to the object that you wish to use to display it.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCodeprotected final CustomField customField
protected final SelectConverter selectConverter
public CascadingOptionFieldSorter(CustomField customField, SelectConverter selectConverter)
public String getDocumentConstant()
LuceneFieldSortergetDocumentConstant in interface LuceneFieldSorter<CascadingOption>CustomFieldSearcherpublic CascadingOption getValueFromLuceneField(String documentValue)
LuceneFieldSortereg. '1000' -> Version 1.
For custom fields, the return value will be passed to
CustomFieldSearcherModuleDescriptor.getStatHtml(com.atlassian.jira.issue.fields.CustomField, Object, String)
getValueFromLuceneField in interface LuceneFieldSorter<CascadingOption>documentValue - The value of the field in the lucene indexpublic Comparator<CascadingOption> getComparator()
LuceneFieldSorterLuceneFieldSorter.getValueFromLuceneField(String).
The Comparator must be reentrant as it could be used by Lucene from multiple threads at once.
getComparator in interface LuceneFieldSorter<CascadingOption>Copyright © 2002-2021 Atlassian. All Rights Reserved.