Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.sample.addressbook.controller.components.search
Class SearchResult  view SearchResult download SearchResult.java

java.lang.Object
  extended bycom.sample.addressbook.controller.components.search.SearchResult
All Implemented Interfaces:
java.io.Serializable

public class SearchResult
extends java.lang.Object
implements java.io.Serializable

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.