@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, wait
equals, hashCode
protected final CustomField customField
protected final SelectConverter selectConverter
public CascadingOptionFieldSorter(CustomField customField, SelectConverter selectConverter)
public String getDocumentConstant()
LuceneFieldSorter
getDocumentConstant
in interface LuceneFieldSorter<CascadingOption>
CustomFieldSearcher
public CascadingOption getValueFromLuceneField(String documentValue)
LuceneFieldSorter
eg. '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()
LuceneFieldSorter
LuceneFieldSorter.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-2017 Atlassian. All Rights Reserved.