adding a getSort() method, as suggested by bug 30242, but unlike in the bug report it's called getSort(), not getSortFields(), as the set method is also called setSort(...)

PR: 30242


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150489 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Daniel Naber 2004-09-05 22:53:37 +00:00
parent ce2cd2f194
commit 4288bbe643
1 changed files with 8 additions and 0 deletions

View File

@ -202,6 +202,14 @@ implements Serializable {
public void setSort(SortField[] fields) {
this.fields = fields;
}
/**
* Representation of the sort criteria.
* @return Array of SortField objects used in this sort criteria
*/
public SortField[] getSort() {
return fields;
}
public String toString() {
StringBuffer buffer = new StringBuffer();