Author: echatellier Date: 2012-01-19 10:08:21 +0100 (Thu, 19 Jan 2012) New Revision: 1338 Url: http://nuiton.org/repositories/revision/wikitty/1338 Log: Add doc Modified: trunk/wikitty-api/src/main/java/org/nuiton/wikitty/query/WikittyQuery.java Modified: trunk/wikitty-api/src/main/java/org/nuiton/wikitty/query/WikittyQuery.java =================================================================== --- trunk/wikitty-api/src/main/java/org/nuiton/wikitty/query/WikittyQuery.java 2012-01-18 14:20:19 UTC (rev 1337) +++ trunk/wikitty-api/src/main/java/org/nuiton/wikitty/query/WikittyQuery.java 2012-01-19 09:08:21 UTC (rev 1338) @@ -152,7 +152,7 @@ } /** - * Inefficiant hashCode method but necessary with overloading of equals method + * Inefficient hashCode method but necessary with overloading of equals method * This method return hashCode of object class. There is no better way to * compute stable hashCode in time * @@ -201,10 +201,27 @@ return this; } + /** + * Get result limit. + * + * 0 return no result (usefull for facets and result count). -1 return all + * results. + * + * @return result count + */ public int getLimit() { return limit; } + /** + * Set result limit. + * + * 0 return no result (usefull for facets and result count). -1 return all + * results. + * + * @param count new count + * @return this + */ public WikittyQuery setLimit(int count) { this.limit = count; return this;