dnaber 2004/09/05 15:53:37 Modified: src/java/org/apache/lucene/search Sort.java Log: 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 Revision Changes Path 1.9 +9 -1 jakarta-lucene/src/java/org/apache/lucene/search/Sort.java Index: Sort.java =================================================================== RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/search/Sort.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- Sort.java 5 Sep 2004 22:49:26 -0000 1.8 +++ Sort.java 5 Sep 2004 22:53:37 -0000 1.9 @@ -202,6 +202,14 @@ 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();
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]