public class ResultTemplate extends Object
DEFAULT
. To produce a custom configuration, use
addCategory(Category, int)
.Modifier and Type | Field and Description |
---|---|
static ResultTemplate |
DEFAULT
A default category configuration.
|
Constructor and Description |
---|
ResultTemplate() |
Modifier and Type | Method and Description |
---|---|
void |
addCategory(Category category,
int maxResultCount)
Add a category.
|
boolean |
equals(Object o) |
Set<Category> |
getCategories()
Returns the names of all categories defined in this configuration.
|
int |
getMaximumResults() |
int |
getMaxResultCount(Category category)
The maximum number of results for this category.
|
int |
getNumberOfCategories()
Returns the number of categories defined in this configuration.
|
boolean |
hasCategory(Category category)
Returns true if the specified category is defined, false otherwise.
|
int |
hashCode() |
public static final ResultTemplate DEFAULT
public void addCategory(Category category, int maxResultCount)
category
- name of categorymaxResultCount
- the maximum number of results for the specified categorypublic boolean hasCategory(Category category)
category
- name of categorypublic int getMaxResultCount(Category category)
category
- name of categorypublic int getNumberOfCategories()
public Set<Category> getCategories()
public int getMaximumResults()
Copyright © 2003–2016 Atlassian. All rights reserved.