From 4288bbe6438865e1f39de4a9942b6292a088b00e Mon Sep 17 00:00:00 2001 From: Daniel Naber Date: Sun, 5 Sep 2004 22:53:37 +0000 Subject: [PATCH] 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 --- src/java/org/apache/lucene/search/Sort.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/java/org/apache/lucene/search/Sort.java b/src/java/org/apache/lucene/search/Sort.java index 3a7095f114d..d3b35340833 100644 --- a/src/java/org/apache/lucene/search/Sort.java +++ b/src/java/org/apache/lucene/search/Sort.java @@ -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();