|
|||||||||
| Home >> All >> com >> sample >> addressbook >> controller >> components >> [ search overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.sample.addressbook.controller.components.search
Class SearchResult

java.lang.Objectcom.sample.addressbook.controller.components.search.SearchResult
- All Implemented Interfaces:
- java.io.Serializable
- public class SearchResult
- extends java.lang.Object
- implements java.io.Serializable
- extends java.lang.Object
Contains the results of a search:
The total number of result items.
The subset of the result items requested.
A search result may contain only a subset of the query. Each subset typically represents a single "page" of results.
| Field Summary | |
protected java.util.Collection |
items
The subset of the result items. |
protected int |
totalCount
Total number of items in result. |
| Constructor Summary | |
SearchResult(int setTotalCount,
java.util.Collection setItems)
Creates an instance. |
|
| Method Summary | |
java.util.Collection |
getItems()
Returns the subset of the result. |
int |
getTotalCount()
Returns the total number of items. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
totalCount
protected int totalCount
- Total number of items in result.
items
protected java.util.Collection items
- The subset of the result items.
| Constructor Detail |
SearchResult
public SearchResult(int setTotalCount,
java.util.Collection setItems)
- Creates an instance.
| Method Detail |
getTotalCount
public int getTotalCount()
- Returns the total number of items.
getItems
public java.util.Collection getItems()
- Returns the subset of the result.
|
|||||||||
| Home >> All >> com >> sample >> addressbook >> controller >> components >> [ search overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.sample.addressbook.controller.components.search.SearchResult